Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metric ¶
Metric wraps a model.Metric and copies it upon modification if Copied is false.
func (*Metric) Del ¶
Del deletes a given label name from the wrapped Metric and copies the Metric initially, if it is not already a copy.
func (*Metric) Get ¶
func (m *Metric) Get(ln model.LabelName) model.LabelValue
Get the value for the given label name. An empty value is returned if the label does not exist in the metric.
func (*Metric) Gets ¶
Gets behaves as Get but the returned boolean is false iff the label does not exist.
Click to show internal directories.
Click to hide internal directories.