Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metric ¶
type Metric struct { Name string Type MetricType Value Numeric Interval time.Duration Timestamp int64 Attributes map[string]interface{} }
Metric model
func NewCountMetric ¶
Make a count metric. If interval is 0 the counter is cumulative. Otherwise is delta.
type Numeric ¶
Numeric model.
func MakeNumeric ¶
Make a Numeric from either an int, int64 or float64. Other types will cause a panic.
Click to show internal directories.
Click to hide internal directories.