grafana/pkg/services/live/telemetry/converter.go
2021-06-09 11:15:42 -07:00

17 lines
409 B
Go

package telemetry
import "github.com/grafana/grafana-plugin-sdk-go/data"
// Converter can convert input to Grafana Data Frames.
type Converter interface {
Convert(data []byte) ([]FrameWrapper, error)
}
// FrameWrapper is a wrapper over data.Frame.
type FrameWrapper interface {
// Key returns a key which describes Frame metrics.
Key() string
// Frame allows getting data.Frame.
Frame() *data.Frame
}