Documentation ¶ Index ¶ func MetricsToMap(metrics []*Metric) map[string]float64 type Metric Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func MetricsToMap ¶ func MetricsToMap(metrics []*Metric) map[string]float64 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 } Metric represents a metric. Source Files ¶ View all Source files metric.go Click to show internal directories. Click to hide internal directories.