Documentation ¶
Index ¶
Constants ¶
View Source
const UnknownLabel = "unknown"
UnknownLabel is a constant for when key/tag can not be found in the C JSON
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Closure ¶
type Closure func()
Closure will be returned after Update(), this should be used to update the struct, aka decrement the count
type Interface ¶
type Interface interface { // Update takes the convey JSON to update internal struct, and return a closure to update the struct again, or an // error // // Note: Closure should only be called once. Update(data convey.C) (Closure, error) }
Interface provides a way of updating an internal resource
func NewConveyMetric ¶
NewConveyMetric produces an Interface where gauge is the internal structure to update, tag is the key in the C JSON to update the gauge, and label is the `key` for the gauge cardinality.
Note: The Gauge must have the label as one of the constant labels, (aka. the name of the gauge)
Click to show internal directories.
Click to hide internal directories.