Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertAPIError ¶
func IsAPIError ¶
IsAPIError returns whether err is or wraps a Prometheus error.
Types ¶
type DatasourceInfo ¶
type ExemplarEvent ¶
type PrometheusQuery ¶
type QueryModel ¶
type QueryModel struct { Expr string `json:"expr"` LegendFormat string `json:"legendFormat"` Interval string `json:"interval"` IntervalMS int64 `json:"intervalMS"` StepMode string `json:"stepMode"` RangeQuery bool `json:"range"` InstantQuery bool `json:"instant"` ExemplarQuery bool `json:"exemplar"` IntervalFactor int64 `json:"intervalFactor"` UtcOffsetSec int64 `json:"utcOffsetSec"` }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func ProvideService ¶
func ProvideService(httpClientProvider httpclient.Provider, registrar plugins.CoreBackendRegistrar) (*Service, error)
func (*Service) QueryData ¶
func (s *Service) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error)
type TimeSeriesQueryType ¶
type TimeSeriesQueryType string
const ( RangeQueryType TimeSeriesQueryType = "range" InstantQueryType TimeSeriesQueryType = "instant" ExemplarQueryType TimeSeriesQueryType = "exemplar" )
Click to show internal directories.
Click to hide internal directories.