1
0
mirror of https://github.com/golang/go synced 2024-10-01 16:18:32 -06:00
go/internal/telemetry/metric.go

18 lines
612 B
Go
Raw Normal View History

// 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.
package telemetry
// Data represents a single point in the time series of a metric.
// 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.
Groups() []TagList
}