Documentation ¶
Overview ¶
Package health implements the health statistic aggregation.
// Total aggregationInterval // Health aggregation interval, 300s (5min) numIndexTotal // Number of metric indexes total. numClients // Number of detector clients. // Aggregation detectionCost // Average of detection time cost (in milliseconds) in last interval. numMetricIncomed // Number of metrics incomed in last interval. numMetricDetected // Number of metrics detected in last interval. numAlertingEvents // Number of alerting events in last interval.
Index ¶
Constants ¶
View Source
const AggregationInterval int = 5 * 60
AggregationInterval in seconds, default: 5min
Variables ¶
This section is empty.
Functions ¶
func AddDetectionCost ¶
func AddDetectionCost(n float64)
AddDetectionCost appends cost to DetectionCosts.
func IncrNumAlertingEvents ¶
func IncrNumAlertingEvents(n int64)
IncrNumAlertingEvents increments NumAlertingsEvents by n.
func IncrNumMetricDetected ¶
func IncrNumMetricDetected(n int64)
IncrNumMetricDetected increments NumMetricDetected by n.
func IncrNumMetricIncomed ¶
func IncrNumMetricIncomed(n int64)
IncrNumMetricIncomed increments NumMetricIncomed by n.
Types ¶
type Info ¶
type Info struct { // Total AggregationInterval int `json:"aggregationInterval"` NumIndexTotal int `json:"numIndexTotal"` NumClients int64 `json:"numClients"` NumRules int `json:"numRules"` // Aggregation DetectionCost float64 `json:"detectionCost"` // ms FilterCost float64 `json:"filterCost"` // ms NumMetricIncomed int64 `json:"numMetricIncomed"` NumMetricDetected int64 `json:"numMetricDetected"` NumAlertingEvents int64 `json:"numAlertingEvents"` // contains filtered or unexported fields }
Info is the stats container.
Click to show internal directories.
Click to hide internal directories.