Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Query ¶
type Query struct { Expr string Step time.Duration LegendFormat string Start time.Time End time.Time RefId string InstantQuery bool RangeQuery bool ExemplarQuery bool UtcOffsetSec int64 }
func Parse ¶
func Parse(query backend.DataQuery, timeInterval string, intervalCalculator intervalv2.Calculator, fromAlert bool) (*Query, error)
func (*Query) Type ¶
func (query *Query) Type() TimeSeriesQueryType
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 ResultType ¶
type ResultType string
const ( ResultTypeMatrix ResultType = "matrix" ResultTypeExemplar ResultType = "exemplar" ResultTypeVector ResultType = "vector" ResultTypeUnknown ResultType = "" )
func ResultTypeFromFrame ¶
func ResultTypeFromFrame(frame *data.Frame) ResultType
func (ResultType) String ¶
func (r ResultType) String() string
type TimeSeriesQueryType ¶
type TimeSeriesQueryType string
const ( RangeQueryType TimeSeriesQueryType = "range" InstantQueryType TimeSeriesQueryType = "instant" ExemplarQueryType TimeSeriesQueryType = "exemplar" UnknownQueryType TimeSeriesQueryType = "unknown" )
Click to show internal directories.
Click to hide internal directories.