Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLCRunnerStats ¶
type CLCRunnerStats struct { AverageExecutionTime int `json:"AverageExecutionTime"` MetricSamples int `json:"MetricSamples"` IsClusterCheck bool `json:"IsClusterCheck"` LastExecFailed bool `json:"LastExecFailed"` }
CLCRunnerStats is used to unmarshall the stats of each CLC Runner
type CLCRunnersStats ¶
type CLCRunnersStats map[string]CLCRunnerStats
CLCRunnersStats is used to unmarshall the CLC Runners stats payload
type ConfigResponse ¶
type ConfigResponse struct { LastChange int64 `json:"lastChange"` Configs []integration.Config `json:"configs"` }
ConfigResponse holds the DCA response for a config query
type LeaderIPCallback ¶
LeaderIPCallback describes the leader-election method we need and allows to inject a custom one for tests
type NodeStatus ¶
type NodeStatus struct {
LastChange int64 `json:"lastChange"`
}
NodeStatus holds the status report from the node-agent
type RebalanceResponse ¶
type RebalanceResponse struct { CheckID string `json:"checkId"` CheckWeight int `json:"checkWeight"` SourceNodeName string `json:"sourceNodeName"` SourceDiff int `json:"sourceDiff"` DestNodeName string `json:"destNodeName"` DestDiff int `json:"destDiff"` }
RebalanceResponse holds the DCA response for a rebalancing request
type StateNodeResponse ¶
type StateNodeResponse struct { Name string `json:"name"` Configs []integration.Config `json:"configs"` }
StateNodeResponse is a chunk of StateResponse
type StateResponse ¶
type StateResponse struct { NotRunning string `json:"notRunning"` // Reason why not running, empty if leading Warmup bool `json:"warmup"` Nodes []StateNodeResponse `json:"nodes"` Dangling []integration.Config `json:"dangling"` }
StateResponse holds the DCA response for a dispatching state query
type Stats ¶
type Stats struct { // Following Follower bool LeaderIP string // Leading Leader bool Active bool NodeCount int ActiveConfigs int DanglingConfigs int TotalConfigs int }
Stats holds statistics for the agent status command
type StatusResponse ¶
type StatusResponse struct {
IsUpToDate bool `json:"isuptodate"`
}
StatusResponse holds the DCA response for a status report