Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MetricsToMap ¶
MetricsToMap converts metrics to map.
Types ¶
type Metric ¶
type Metric struct { // Name is the name of the metric. Name string // Value is the value of the metric. Value float64 // Labels is the tags of the metric. Labels map[string]string // Description is the description of the metric. Description string // Purge is the purge of the metric. Purge bool `default:"false"` // PurgeLabels is the purge labels of the metric. PurgeLabels []string // PurgeAfter is the purge after of the metric. PurgeAfter time.Duration }
Metric represents a metric.
Click to show internal directories.
Click to hide internal directories.