You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
409 B
16 lines
409 B
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
|
|
}
|
|
|