Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Data ¶
type Data struct { // Contextual information related to the metric. If the external service accepts key-value pairs (e.g., identifiers, tags), then this is passed directly to the service. Attributes map[string]string // A short name that describes the metric. This is passed directly to the external service and should use the upper camel case (UpperCamelCase) naming convention. Name string // The metric data point. This value is converted to the correct data type before being sent to the external service. Value interface{} }
Data contains a metric that can be sent to external services.
func (*Data) AddAttributes ¶
AddAttributes is a convenience method for adding attributes to a metric.
Click to show internal directories.
Click to hide internal directories.