Documentation
¶
Index ¶
- type AgentStat
- type AgentsStats
- type Environment
- type Stat
- type System
- func (s *System) AddAgentError(companyId, agentId, environmentId string)
- func (s *System) AddAgentSuccess(companyId, agentId, environmentId string)
- func (s *System) GetAgentEnvironmentStats(agentId string, timePeriod int) (*AgentStat, error)
- func (s *System) GetAgentName(agentId string) (string, error)
- func (s *System) GetAgentStats(w http.ResponseWriter, r *http.Request)
- func (s *System) GetAgentsStats(w http.ResponseWriter, r *http.Request)
- func (s *System) GetAgentsStatsFromInflux(companyId string) (*AgentsStats, error)
- func (s *System) GetCompanyStats(w http.ResponseWriter, r *http.Request)
- func (s *System) GetEnvironmentName(environmentId string) (string, error)
- func (s *System) GetEnvironmentStats(w http.ResponseWriter, r *http.Request)
- func (s *System) GetNamesForData(data *AgentStat) (*AgentStat, error)
- func (s *System) GetProjectStats(w http.ResponseWriter, r *http.Request)
- func (s *System) SetContext(ctx context.Context) *System
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentStat ¶
type AgentStat struct {
ID string `json:"id"`
Name string `json:"name"`
Stats []Stat `json:"stats"`
Environments []Environment `json:"environments"`
}
type AgentsStats ¶
type AgentsStats struct {
Agents []AgentStat `json:"agents"`
}
type Environment ¶
type System ¶
type System struct {
Config *ConfigBuilder.Config
Context context.Context
}
func NewSystem ¶
func NewSystem(cfg *ConfigBuilder.Config) *System
func (*System) AddAgentError ¶
func (*System) AddAgentSuccess ¶
func (*System) GetAgentEnvironmentStats ¶
func (*System) GetAgentStats ¶
func (s *System) GetAgentStats(w http.ResponseWriter, r *http.Request)
func (*System) GetAgentsStats ¶
func (s *System) GetAgentsStats(w http.ResponseWriter, r *http.Request)
func (*System) GetAgentsStatsFromInflux ¶
func (s *System) GetAgentsStatsFromInflux(companyId string) (*AgentsStats, error)
func (*System) GetCompanyStats ¶
func (s *System) GetCompanyStats(w http.ResponseWriter, r *http.Request)
func (*System) GetEnvironmentName ¶
func (*System) GetEnvironmentStats ¶
func (s *System) GetEnvironmentStats(w http.ResponseWriter, r *http.Request)
func (*System) GetNamesForData ¶
func (*System) GetProjectStats ¶
func (s *System) GetProjectStats(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.