Documentation
¶
Overview ¶
Package metrics contains a client to query RBFS metrics
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // QueryMetric queries a single metric. QueryMetric(ctx rbfs.RbfsContext, metric string) (*Metric, error) }
Client provides access to the switch metrics.
type LabeledValue ¶
type LabeledValue struct { // Value holds the metric value. Value float64 // Labels contains the metric value. Labels map[string]string }
LabeledValue contains a metric value with this assigned labels.
type Metric ¶
type Metric struct { // MetricName holds the metric name. MetricName string // Values holds all metric values. Values []LabeledValue }
Metric describes a single switch metric.
Click to show internal directories.
Click to hide internal directories.