2019-08-14 10:51:42 -06:00
|
|
|
// Copyright 2019 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2020-03-07 16:02:27 -07:00
|
|
|
package event
|
2019-08-14 10:51:42 -06:00
|
|
|
|
2020-03-06 08:28:29 -07:00
|
|
|
// MetricData represents a single point in the time series of a metric.
|
2019-08-14 10:51:42 -06:00
|
|
|
// This provides the common interface to all metrics no matter their data
|
|
|
|
// format.
|
|
|
|
// To get the actual values for the metric you must type assert to a concrete
|
|
|
|
// metric type.
|
|
|
|
type MetricData interface {
|
|
|
|
// Handle returns the metric handle this data is for.
|
|
|
|
Handle() string
|
|
|
|
// Groups reports the rows that currently exist for this metric.
|
2020-03-10 08:13:00 -06:00
|
|
|
Groups() []TagSet
|
2019-08-14 10:51:42 -06:00
|
|
|
}
|