diff --git a/go.sum b/go.sum index 1240537a46f..e5f38e49551 100644 --- a/go.sum +++ b/go.sum @@ -1419,7 +1419,6 @@ github.com/prometheus/prometheus v1.8.2-0.20210217141258-a6be548dbc17 h1:VN3p3Nb github.com/prometheus/prometheus v1.8.2-0.20210217141258-a6be548dbc17/go.mod h1:dv3B1syqmkrkmo665MPCU6L8PbTXIiUeg/OEQULLNxA= github.com/prometheus/statsd_exporter v0.15.0/go.mod h1:Dv8HnkoLQkeEjkIE4/2ndAA7WL1zHKK7WMqFQqu72rw= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/quasilyte/go-ruleguard/dsl/fluent v0.0.0-20201222093424-5d7e62a465d3 h1:eL7x4/zMnlquMxYe7V078BD7MGskZ0daGln+SJCVzuY= github.com/quasilyte/go-ruleguard/dsl/fluent v0.0.0-20201222093424-5d7e62a465d3/go.mod h1:P7JlQWFT7jDcFZMtUPQbtGzzzxva3rBn6oIF+LPwFcM= github.com/rafaeljusto/redigomock v0.0.0-20190202135759-257e089e14a1/go.mod h1:JaY6n2sDr+z2WTsXkOmNRUfDy6FN0L6Nk7x06ndm4tY= github.com/rainycape/unidecode v0.0.0-20150907023854-cb7f23ec59be h1:ta7tUOvsPHVHGom5hKW5VXNc2xZIkfCKP8iaqOyYtUQ= diff --git a/pkg/models/measurement.go b/pkg/models/measurement.go deleted file mode 100644 index 3ae94844826..00000000000 --- a/pkg/models/measurement.go +++ /dev/null @@ -1,39 +0,0 @@ -package models - -import "github.com/grafana/grafana-plugin-sdk-go/data" - -// NOTE: -// this likely should go in the Plugin SDK since it will be useful from plugins - -// Measurement is a single measurement value. -type Measurement struct { - // Name of the measurement. - Name string `json:"name,omitempty"` - - // Time is the measurement time. Units are usually ms, but depends on the channel - Time int64 `json:"time,omitempty"` - - // Values is the measurement's values. The value type is typically number or string. - Values map[string]interface{} `json:"values,omitempty"` - - // Config is an optional list of field configs. - Config map[string]data.FieldConfig `json:"config,omitempty"` - - // Labels are applied to all values. - Labels map[string]string `json:"labels,omitempty"` -} - -// MeasurementAction defines what should happen when you send a list of measurements. -type MeasurementAction string - -// MeasurementBatch is a collection of measurements all sent at once. -type MeasurementBatch struct { - // Action is the action in question, the default is append. - Action MeasurementAction `json:"action,omitempty"` - - // Measurements is the array of measurements. - Measurements []Measurement `json:"measurements,omitempty"` - - // Capacity is the suggested size of the client buffer - Capacity int64 `json:"capacity,omitempty"` -}