Skip to content

TypeClassicConditionsBuilder🔗

Constructor🔗

func NewTypeClassicConditionsBuilder() *TypeClassicConditionsBuilder

Methods🔗

Build🔗

Builds the object.

func (builder *TypeClassicConditionsBuilder) Build() (variants.Dataquery, error)

Conditions🔗

func (builder *TypeClassicConditionsBuilder) Conditions(conditions []cog.Builder[expr.ExprTypeClassicConditionsConditions]) *TypeClassicConditionsBuilder

Datasource🔗

The datasource

func (builder *TypeClassicConditionsBuilder) Datasource(datasource dashboard.DataSourceRef) *TypeClassicConditionsBuilder

Hide🔗

true if query is disabled (ie should not be returned to the dashboard)

NOTE: this does not always imply that the query should not be executed since

the results from a hidden query may be used as the input to other queries (SSE etc)

func (builder *TypeClassicConditionsBuilder) Hide(hide bool) *TypeClassicConditionsBuilder

IntervalMs🔗

Interval is the suggested duration between time points in a time series query.

NOTE: the values for intervalMs is not saved in the query model. It is typically calculated

from the interval required to fill a pixels in the visualization

func (builder *TypeClassicConditionsBuilder) IntervalMs(intervalMs float64) *TypeClassicConditionsBuilder

MaxDataPoints🔗

MaxDataPoints is the maximum number of data points that should be returned from a time series query.

NOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated

from the number of pixels visible in a visualization

func (builder *TypeClassicConditionsBuilder) MaxDataPoints(maxDataPoints int64) *TypeClassicConditionsBuilder

QueryType🔗

QueryType is an optional identifier for the type of query.

It can be used to distinguish different types of queries.

func (builder *TypeClassicConditionsBuilder) QueryType(queryType string) *TypeClassicConditionsBuilder

RefId🔗

RefID is the unique identifier of the query, set by the frontend call.

func (builder *TypeClassicConditionsBuilder) RefId(refId string) *TypeClassicConditionsBuilder

ResultAssertions🔗

Optionally define expected query result behavior

func (builder *TypeClassicConditionsBuilder) ResultAssertions(resultAssertions cog.Builder[expr.ExprTypeClassicConditionsResultAssertions]) *TypeClassicConditionsBuilder

TimeRange🔗

TimeRange represents the query range

NOTE: unlike generic /ds/query, we can now send explicit time values in each query

NOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly

func (builder *TypeClassicConditionsBuilder) TimeRange(timeRange cog.Builder[expr.ExprTypeClassicConditionsTimeRange]) *TypeClassicConditionsBuilder

See also🔗