Documentation
¶
Overview ¶
Package metric03 holds the structure for the old mskpack cmetrics version 0.3.x.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateMetrics ¶
type CreateMetrics []Metric
func (CreateMetrics) Upgrade ¶
func (in CreateMetrics) Upgrade() (types.CreateMetrics, error)
Upgrade transforms the old mspack cmetrics version 0.3.x to the current version.
type Meta ¶
type Meta struct {
LabelDictionary []string `json:"label_dictionary" msgpack:"label_dictionary"` // ex: ["foo", "bar", "my-label", "my-value", "name", "dummy.0"]
Labels []int `json:"labels" msgpack:"labels"` // Tells which labels are dynamic. Ex: [4]
Opts Opts `json:"opts" msgpack:"opts"`
StaticLabels []int `json:"static_labels" msgpack:"static_labels"` // Tells which labels are static. Ex: [0, 1, 2, 3]
Type MetricType `json:"type" msgpack:"type"`
}
type MetricType ¶
type MetricType int
Click to show internal directories.
Click to hide internal directories.