Prometheus: Refactor exemplar sampler (#60278)
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
package models
|
||||
|
||||
import "github.com/grafana/grafana-plugin-sdk-go/data"
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/grafana/grafana-plugin-sdk-go/data"
|
||||
)
|
||||
|
||||
type ResultType string
|
||||
|
||||
@@ -40,3 +44,10 @@ func ResultTypeFromFrame(frame *data.Frame) ResultType {
|
||||
func (r ResultType) String() string {
|
||||
return string(r)
|
||||
}
|
||||
|
||||
type Exemplar struct {
|
||||
SeriesLabels map[string]string
|
||||
Labels map[string]string
|
||||
Value float64
|
||||
Timestamp time.Time
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user