expr

package
v0.0.0-...-83e2e3a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2025 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExprTypeClassicConditionsConditionsConverter

func ExprTypeClassicConditionsConditionsConverter(input ExprTypeClassicConditionsConditions) string

ExprTypeClassicConditionsConditionsConverter accepts a `ExprTypeClassicConditionsConditions` object and generates the Go code to build this object using builders.

func ExprTypeClassicConditionsConditionsEvaluatorConverter

func ExprTypeClassicConditionsConditionsEvaluatorConverter(input ExprTypeClassicConditionsConditionsEvaluator) string

ExprTypeClassicConditionsConditionsEvaluatorConverter accepts a `ExprTypeClassicConditionsConditionsEvaluator` object and generates the Go code to build this object using builders.

func ExprTypeClassicConditionsConditionsOperatorConverter

func ExprTypeClassicConditionsConditionsOperatorConverter(input ExprTypeClassicConditionsConditionsOperator) string

ExprTypeClassicConditionsConditionsOperatorConverter accepts a `ExprTypeClassicConditionsConditionsOperator` object and generates the Go code to build this object using builders.

func ExprTypeClassicConditionsConditionsQueryConverter

func ExprTypeClassicConditionsConditionsQueryConverter(input ExprTypeClassicConditionsConditionsQuery) string

ExprTypeClassicConditionsConditionsQueryConverter accepts a `ExprTypeClassicConditionsConditionsQuery` object and generates the Go code to build this object using builders.

func ExprTypeClassicConditionsConditionsReducerConverter

func ExprTypeClassicConditionsConditionsReducerConverter(input ExprTypeClassicConditionsConditionsReducer) string

ExprTypeClassicConditionsConditionsReducerConverter accepts a `ExprTypeClassicConditionsConditionsReducer` object and generates the Go code to build this object using builders.

func ExprTypeClassicConditionsResultAssertionsConverter

func ExprTypeClassicConditionsResultAssertionsConverter(input ExprTypeClassicConditionsResultAssertions) string

ExprTypeClassicConditionsResultAssertionsConverter accepts a `ExprTypeClassicConditionsResultAssertions` object and generates the Go code to build this object using builders.

func ExprTypeClassicConditionsTimeRangeConverter

func ExprTypeClassicConditionsTimeRangeConverter(input ExprTypeClassicConditionsTimeRange) string

ExprTypeClassicConditionsTimeRangeConverter accepts a `ExprTypeClassicConditionsTimeRange` object and generates the Go code to build this object using builders.

func ExprTypeMathResultAssertionsConverter

func ExprTypeMathResultAssertionsConverter(input ExprTypeMathResultAssertions) string

ExprTypeMathResultAssertionsConverter accepts a `ExprTypeMathResultAssertions` object and generates the Go code to build this object using builders.

func ExprTypeMathTimeRangeConverter

func ExprTypeMathTimeRangeConverter(input ExprTypeMathTimeRange) string

ExprTypeMathTimeRangeConverter accepts a `ExprTypeMathTimeRange` object and generates the Go code to build this object using builders.

func ExprTypeReduceResultAssertionsConverter

func ExprTypeReduceResultAssertionsConverter(input ExprTypeReduceResultAssertions) string

ExprTypeReduceResultAssertionsConverter accepts a `ExprTypeReduceResultAssertions` object and generates the Go code to build this object using builders.

func ExprTypeReduceSettingsConverter

func ExprTypeReduceSettingsConverter(input ExprTypeReduceSettings) string

ExprTypeReduceSettingsConverter accepts a `ExprTypeReduceSettings` object and generates the Go code to build this object using builders.

func ExprTypeReduceTimeRangeConverter

func ExprTypeReduceTimeRangeConverter(input ExprTypeReduceTimeRange) string

ExprTypeReduceTimeRangeConverter accepts a `ExprTypeReduceTimeRange` object and generates the Go code to build this object using builders.

func ExprTypeResampleResultAssertionsConverter

func ExprTypeResampleResultAssertionsConverter(input ExprTypeResampleResultAssertions) string

ExprTypeResampleResultAssertionsConverter accepts a `ExprTypeResampleResultAssertions` object and generates the Go code to build this object using builders.

func ExprTypeResampleTimeRangeConverter

func ExprTypeResampleTimeRangeConverter(input ExprTypeResampleTimeRange) string

ExprTypeResampleTimeRangeConverter accepts a `ExprTypeResampleTimeRange` object and generates the Go code to build this object using builders.

func ExprTypeSqlResultAssertionsConverter

func ExprTypeSqlResultAssertionsConverter(input ExprTypeSqlResultAssertions) string

ExprTypeSqlResultAssertionsConverter accepts a `ExprTypeSqlResultAssertions` object and generates the Go code to build this object using builders.

func ExprTypeSqlTimeRangeConverter

func ExprTypeSqlTimeRangeConverter(input ExprTypeSqlTimeRange) string

ExprTypeSqlTimeRangeConverter accepts a `ExprTypeSqlTimeRange` object and generates the Go code to build this object using builders.

func ExprTypeThresholdConditionsConverter

func ExprTypeThresholdConditionsConverter(input ExprTypeThresholdConditions) string

ExprTypeThresholdConditionsConverter accepts a `ExprTypeThresholdConditions` object and generates the Go code to build this object using builders.

func ExprTypeThresholdConditionsEvaluatorConverter

func ExprTypeThresholdConditionsEvaluatorConverter(input ExprTypeThresholdConditionsEvaluator) string

ExprTypeThresholdConditionsEvaluatorConverter accepts a `ExprTypeThresholdConditionsEvaluator` object and generates the Go code to build this object using builders.

func ExprTypeThresholdConditionsUnloadEvaluatorConverter

func ExprTypeThresholdConditionsUnloadEvaluatorConverter(input ExprTypeThresholdConditionsUnloadEvaluator) string

ExprTypeThresholdConditionsUnloadEvaluatorConverter accepts a `ExprTypeThresholdConditionsUnloadEvaluator` object and generates the Go code to build this object using builders.

func ExprTypeThresholdResultAssertionsConverter

func ExprTypeThresholdResultAssertionsConverter(input ExprTypeThresholdResultAssertions) string

ExprTypeThresholdResultAssertionsConverter accepts a `ExprTypeThresholdResultAssertions` object and generates the Go code to build this object using builders.

func ExprTypeThresholdTimeRangeConverter

func ExprTypeThresholdTimeRangeConverter(input ExprTypeThresholdTimeRange) string

ExprTypeThresholdTimeRangeConverter accepts a `ExprTypeThresholdTimeRange` object and generates the Go code to build this object using builders.

func TypeClassicConditionsConverter

func TypeClassicConditionsConverter(input TypeClassicConditions) string

TypeClassicConditionsConverter accepts a `TypeClassicConditions` object and generates the Go code to build this object using builders.

func TypeMathConverter

func TypeMathConverter(input TypeMath) string

TypeMathConverter accepts a `TypeMath` object and generates the Go code to build this object using builders.

func TypeReduceConverter

func TypeReduceConverter(input TypeReduce) string

TypeReduceConverter accepts a `TypeReduce` object and generates the Go code to build this object using builders.

func TypeResampleConverter

func TypeResampleConverter(input TypeResample) string

TypeResampleConverter accepts a `TypeResample` object and generates the Go code to build this object using builders.

func TypeSqlConverter

func TypeSqlConverter(input TypeSql) string

TypeSqlConverter accepts a `TypeSql` object and generates the Go code to build this object using builders.

func TypeThresholdConverter

func TypeThresholdConverter(input TypeThreshold) string

TypeThresholdConverter accepts a `TypeThreshold` object and generates the Go code to build this object using builders.

func VariantConfig

func VariantConfig() variants.DataqueryConfig

VariantConfig returns the configuration related to __expr__ dataqueries. This configuration describes how to unmarshal it, convert it to code, …

Types

type Expr

func NewExpr

func NewExpr() *Expr

NewExpr creates a new Expr object.

type ExprTypeClassicConditionsConditions

type ExprTypeClassicConditionsConditions struct {
	Evaluator ExprTypeClassicConditionsConditionsEvaluator `json:"evaluator"`
	Operator  ExprTypeClassicConditionsConditionsOperator  `json:"operator"`
	Query     ExprTypeClassicConditionsConditionsQuery     `json:"query"`
	Reducer   ExprTypeClassicConditionsConditionsReducer   `json:"reducer"`
}

func NewExprTypeClassicConditionsConditions

func NewExprTypeClassicConditionsConditions() *ExprTypeClassicConditionsConditions

NewExprTypeClassicConditionsConditions creates a new ExprTypeClassicConditionsConditions object.

func (ExprTypeClassicConditionsConditions) Equals

Equals tests the equality of two `ExprTypeClassicConditionsConditions` objects.

func (*ExprTypeClassicConditionsConditions) UnmarshalJSONStrict

func (resource *ExprTypeClassicConditionsConditions) UnmarshalJSONStrict(raw []byte) error

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode `ExprTypeClassicConditionsConditions` from JSON. Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (ExprTypeClassicConditionsConditions) Validate

func (resource ExprTypeClassicConditionsConditions) Validate() error

Validate checks all the validation constraints that may be defined on `ExprTypeClassicConditionsConditions` fields for violations and returns them.

type ExprTypeClassicConditionsConditionsBuilder

type ExprTypeClassicConditionsConditionsBuilder struct {
	// contains filtered or unexported fields
}

func NewExprTypeClassicConditionsConditionsBuilder

func NewExprTypeClassicConditionsConditionsBuilder() *ExprTypeClassicConditionsConditionsBuilder

func (*ExprTypeClassicConditionsConditionsBuilder) Build

type ExprTypeClassicConditionsConditionsEvaluator

type ExprTypeClassicConditionsConditionsEvaluator struct {
	Params []float64 `json:"params"`
	// e.g. "gt"
	Type string `json:"type"`
}

func NewExprTypeClassicConditionsConditionsEvaluator

func NewExprTypeClassicConditionsConditionsEvaluator() *ExprTypeClassicConditionsConditionsEvaluator

NewExprTypeClassicConditionsConditionsEvaluator creates a new ExprTypeClassicConditionsConditionsEvaluator object.

func (ExprTypeClassicConditionsConditionsEvaluator) Equals

Equals tests the equality of two `ExprTypeClassicConditionsConditionsEvaluator` objects.

func (*ExprTypeClassicConditionsConditionsEvaluator) UnmarshalJSONStrict

func (resource *ExprTypeClassicConditionsConditionsEvaluator) UnmarshalJSONStrict(raw []byte) error

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode `ExprTypeClassicConditionsConditionsEvaluator` from JSON. Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (ExprTypeClassicConditionsConditionsEvaluator) Validate

Validate checks all the validation constraints that may be defined on `ExprTypeClassicConditionsConditionsEvaluator` fields for violations and returns them.

type ExprTypeClassicConditionsConditionsEvaluatorBuilder

type ExprTypeClassicConditionsConditionsEvaluatorBuilder struct {
	// contains filtered or unexported fields
}

func NewExprTypeClassicConditionsConditionsEvaluatorBuilder

func NewExprTypeClassicConditionsConditionsEvaluatorBuilder() *ExprTypeClassicConditionsConditionsEvaluatorBuilder

func (*ExprTypeClassicConditionsConditionsEvaluatorBuilder) Build

func (*ExprTypeClassicConditionsConditionsEvaluatorBuilder) Params

func (*ExprTypeClassicConditionsConditionsEvaluatorBuilder) Type

e.g. "gt"

type ExprTypeClassicConditionsConditionsOperator

type ExprTypeClassicConditionsConditionsOperator struct {
	Type TypeClassicConditionsType `json:"type"`
}

func NewExprTypeClassicConditionsConditionsOperator

func NewExprTypeClassicConditionsConditionsOperator() *ExprTypeClassicConditionsConditionsOperator

NewExprTypeClassicConditionsConditionsOperator creates a new ExprTypeClassicConditionsConditionsOperator object.

func (ExprTypeClassicConditionsConditionsOperator) Equals

Equals tests the equality of two `ExprTypeClassicConditionsConditionsOperator` objects.

func (*ExprTypeClassicConditionsConditionsOperator) UnmarshalJSONStrict

func (resource *ExprTypeClassicConditionsConditionsOperator) UnmarshalJSONStrict(raw []byte) error

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode `ExprTypeClassicConditionsConditionsOperator` from JSON. Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (ExprTypeClassicConditionsConditionsOperator) Validate

Validate checks all the validation constraints that may be defined on `ExprTypeClassicConditionsConditionsOperator` fields for violations and returns them.

type ExprTypeClassicConditionsConditionsOperatorBuilder

type ExprTypeClassicConditionsConditionsOperatorBuilder struct {
	// contains filtered or unexported fields
}

func NewExprTypeClassicConditionsConditionsOperatorBuilder

func NewExprTypeClassicConditionsConditionsOperatorBuilder() *ExprTypeClassicConditionsConditionsOperatorBuilder

func (*ExprTypeClassicConditionsConditionsOperatorBuilder) Build

func (*ExprTypeClassicConditionsConditionsOperatorBuilder) Type

type ExprTypeClassicConditionsConditionsQuery

type ExprTypeClassicConditionsConditionsQuery struct {
	Params []string `json:"params"`
}

func NewExprTypeClassicConditionsConditionsQuery

func NewExprTypeClassicConditionsConditionsQuery() *ExprTypeClassicConditionsConditionsQuery

NewExprTypeClassicConditionsConditionsQuery creates a new ExprTypeClassicConditionsConditionsQuery object.

func (ExprTypeClassicConditionsConditionsQuery) Equals

Equals tests the equality of two `ExprTypeClassicConditionsConditionsQuery` objects.

func (*ExprTypeClassicConditionsConditionsQuery) UnmarshalJSONStrict

func (resource *ExprTypeClassicConditionsConditionsQuery) UnmarshalJSONStrict(raw []byte) error

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode `ExprTypeClassicConditionsConditionsQuery` from JSON. Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (ExprTypeClassicConditionsConditionsQuery) Validate

func (resource ExprTypeClassicConditionsConditionsQuery) Validate() error

Validate checks all the validation constraints that may be defined on `ExprTypeClassicConditionsConditionsQuery` fields for violations and returns them.

type ExprTypeClassicConditionsConditionsQueryBuilder

type ExprTypeClassicConditionsConditionsQueryBuilder struct {
	// contains filtered or unexported fields
}

func NewExprTypeClassicConditionsConditionsQueryBuilder

func NewExprTypeClassicConditionsConditionsQueryBuilder() *ExprTypeClassicConditionsConditionsQueryBuilder

func (*ExprTypeClassicConditionsConditionsQueryBuilder) Build

func (*ExprTypeClassicConditionsConditionsQueryBuilder) Params

type ExprTypeClassicConditionsConditionsReducer

type ExprTypeClassicConditionsConditionsReducer struct {
	Type string `json:"type"`
}

func NewExprTypeClassicConditionsConditionsReducer

func NewExprTypeClassicConditionsConditionsReducer() *ExprTypeClassicConditionsConditionsReducer

NewExprTypeClassicConditionsConditionsReducer creates a new ExprTypeClassicConditionsConditionsReducer object.

func (ExprTypeClassicConditionsConditionsReducer) Equals

Equals tests the equality of two `ExprTypeClassicConditionsConditionsReducer` objects.

func (*ExprTypeClassicConditionsConditionsReducer) UnmarshalJSONStrict

func (resource *ExprTypeClassicConditionsConditionsReducer) UnmarshalJSONStrict(raw []byte) error

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode `ExprTypeClassicConditionsConditionsReducer` from JSON. Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (ExprTypeClassicConditionsConditionsReducer) Validate

Validate checks all the validation constraints that may be defined on `ExprTypeClassicConditionsConditionsReducer` fields for violations and returns them.

type ExprTypeClassicConditionsConditionsReducerBuilder

type ExprTypeClassicConditionsConditionsReducerBuilder struct {
	// contains filtered or unexported fields
}

func NewExprTypeClassicConditionsConditionsReducerBuilder

func NewExprTypeClassicConditionsConditionsReducerBuilder() *ExprTypeClassicConditionsConditionsReducerBuilder

func (*ExprTypeClassicConditionsConditionsReducerBuilder) Build

func (*ExprTypeClassicConditionsConditionsReducerBuilder) Type

type ExprTypeClassicConditionsResultAssertions

type ExprTypeClassicConditionsResultAssertions struct {
	// Maximum frame count
	MaxFrames *int64 `json:"maxFrames,omitempty"`
	// Type asserts that the frame matches a known type structure.
	// Possible enum values:
	//  - `""`
	//  - `"timeseries-wide"`
	//  - `"timeseries-long"`
	//  - `"timeseries-many"`
	//  - `"timeseries-multi"`
	//  - `"directory-listing"`
	//  - `"table"`
	//  - `"numeric-wide"`
	//  - `"numeric-multi"`
	//  - `"numeric-long"`
	//  - `"log-lines"`
	Type *TypeClassicConditionsType `json:"type,omitempty"`
	// TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane
	// contract documentation https://grafana.github.io/dataplane/contract/.
	TypeVersion []int64 `json:"typeVersion"`
}

func NewExprTypeClassicConditionsResultAssertions

func NewExprTypeClassicConditionsResultAssertions() *ExprTypeClassicConditionsResultAssertions

NewExprTypeClassicConditionsResultAssertions creates a new ExprTypeClassicConditionsResultAssertions object.

func (ExprTypeClassicConditionsResultAssertions) Equals

Equals tests the equality of two `ExprTypeClassicConditionsResultAssertions` objects.

func (*ExprTypeClassicConditionsResultAssertions) UnmarshalJSONStrict

func (resource *ExprTypeClassicConditionsResultAssertions) UnmarshalJSONStrict(raw []byte) error

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode `ExprTypeClassicConditionsResultAssertions` from JSON. Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (ExprTypeClassicConditionsResultAssertions) Validate

Validate checks all the validation constraints that may be defined on `ExprTypeClassicConditionsResultAssertions` fields for violations and returns them.

type ExprTypeClassicConditionsResultAssertionsBuilder

type ExprTypeClassicConditionsResultAssertionsBuilder struct {
	// contains filtered or unexported fields
}

func NewExprTypeClassicConditionsResultAssertionsBuilder

func NewExprTypeClassicConditionsResultAssertionsBuilder() *ExprTypeClassicConditionsResultAssertionsBuilder

func (*ExprTypeClassicConditionsResultAssertionsBuilder) Build

func (*ExprTypeClassicConditionsResultAssertionsBuilder) MaxFrames

Maximum frame count

func (*ExprTypeClassicConditionsResultAssertionsBuilder) Type

Type asserts that the frame matches a known type structure. Possible enum values:

  • `""`
  • `"timeseries-wide"`
  • `"timeseries-long"`
  • `"timeseries-many"`
  • `"timeseries-multi"`
  • `"directory-listing"`
  • `"table"`
  • `"numeric-wide"`
  • `"numeric-multi"`
  • `"numeric-long"`
  • `"log-lines"`

func (*ExprTypeClassicConditionsResultAssertionsBuilder) TypeVersion

TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane contract documentation https://grafana.github.io/dataplane/contract/.

type ExprTypeClassicConditionsTimeRange

type ExprTypeClassicConditionsTimeRange struct {
	// From is the start time of the query.
	From string `json:"from"`
	// To is the end time of the query.
	To string `json:"to"`
}

func NewExprTypeClassicConditionsTimeRange

func NewExprTypeClassicConditionsTimeRange() *ExprTypeClassicConditionsTimeRange

NewExprTypeClassicConditionsTimeRange creates a new ExprTypeClassicConditionsTimeRange object.

func (ExprTypeClassicConditionsTimeRange) Equals

Equals tests the equality of two `ExprTypeClassicConditionsTimeRange` objects.

func (*ExprTypeClassicConditionsTimeRange) UnmarshalJSONStrict

func (resource *ExprTypeClassicConditionsTimeRange) UnmarshalJSONStrict(raw []byte) error

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode `ExprTypeClassicConditionsTimeRange` from JSON. Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (ExprTypeClassicConditionsTimeRange) Validate

func (resource ExprTypeClassicConditionsTimeRange) Validate() error

Validate checks all the validation constraints that may be defined on `ExprTypeClassicConditionsTimeRange` fields for violations and returns them.

type ExprTypeClassicConditionsTimeRangeBuilder

type ExprTypeClassicConditionsTimeRangeBuilder struct {
	// contains filtered or unexported fields
}

func NewExprTypeClassicConditionsTimeRangeBuilder

func NewExprTypeClassicConditionsTimeRangeBuilder() *ExprTypeClassicConditionsTimeRangeBuilder

func (*ExprTypeClassicConditionsTimeRangeBuilder) Build

func (*ExprTypeClassicConditionsTimeRangeBuilder) From

From is the start time of the query.

func (*ExprTypeClassicConditionsTimeRangeBuilder) To

To is the end time of the query.

type ExprTypeMathResultAssertions

type ExprTypeMathResultAssertions struct {
	// Maximum frame count
	MaxFrames *int64 `json:"maxFrames,omitempty"`
	// Type asserts that the frame matches a known type structure.
	// Possible enum values:
	//  - `""`
	//  - `"timeseries-wide"`
	//  - `"timeseries-long"`
	//  - `"timeseries-many"`
	//  - `"timeseries-multi"`
	//  - `"directory-listing"`
	//  - `"table"`
	//  - `"numeric-wide"`
	//  - `"numeric-multi"`
	//  - `"numeric-long"`
	//  - `"log-lines"`
	Type *TypeMathType `json:"type,omitempty"`
	// TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane
	// contract documentation https://grafana.github.io/dataplane/contract/.
	TypeVersion []int64 `json:"typeVersion"`
}

func NewExprTypeMathResultAssertions

func NewExprTypeMathResultAssertions() *ExprTypeMathResultAssertions

NewExprTypeMathResultAssertions creates a new ExprTypeMathResultAssertions object.

func (ExprTypeMathResultAssertions) Equals

Equals tests the equality of two `ExprTypeMathResultAssertions` objects.

func (*ExprTypeMathResultAssertions) UnmarshalJSONStrict

func (resource *ExprTypeMathResultAssertions) UnmarshalJSONStrict(raw []byte) error

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode `ExprTypeMathResultAssertions` from JSON. Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (ExprTypeMathResultAssertions) Validate

func (resource ExprTypeMathResultAssertions) Validate() error

Validate checks all the validation constraints that may be defined on `ExprTypeMathResultAssertions` fields for violations and returns them.

type ExprTypeMathResultAssertionsBuilder

type ExprTypeMathResultAssertionsBuilder struct {
	// contains filtered or unexported fields
}

func NewExprTypeMathResultAssertionsBuilder

func NewExprTypeMathResultAssertionsBuilder() *ExprTypeMathResultAssertionsBuilder

func (*ExprTypeMathResultAssertionsBuilder) Build

func (*ExprTypeMathResultAssertionsBuilder) MaxFrames

Maximum frame count

func (*ExprTypeMathResultAssertionsBuilder) Type

Type asserts that the frame matches a known type structure. Possible enum values:

  • `""`
  • `"timeseries-wide"`
  • `"timeseries-long"`
  • `"timeseries-many"`
  • `"timeseries-multi"`
  • `"directory-listing"`
  • `"table"`
  • `"numeric-wide"`
  • `"numeric-multi"`
  • `"numeric-long"`
  • `"log-lines"`

func (*ExprTypeMathResultAssertionsBuilder) TypeVersion

TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane contract documentation https://grafana.github.io/dataplane/contract/.

type ExprTypeMathTimeRange

type ExprTypeMathTimeRange struct {
	// From is the start time of the query.
	From string `json:"from"`
	// To is the end time of the query.
	To string `json:"to"`
}

func NewExprTypeMathTimeRange

func NewExprTypeMathTimeRange() *ExprTypeMathTimeRange

NewExprTypeMathTimeRange creates a new ExprTypeMathTimeRange object.

func (ExprTypeMathTimeRange) Equals

func (resource ExprTypeMathTimeRange) Equals(other ExprTypeMathTimeRange) bool

Equals tests the equality of two `ExprTypeMathTimeRange` objects.

func (*ExprTypeMathTimeRange) UnmarshalJSONStrict

func (resource *ExprTypeMathTimeRange) UnmarshalJSONStrict(raw []byte) error

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode `ExprTypeMathTimeRange` from JSON. Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (ExprTypeMathTimeRange) Validate

func (resource ExprTypeMathTimeRange) Validate() error

Validate checks all the validation constraints that may be defined on `ExprTypeMathTimeRange` fields for violations and returns them.

type ExprTypeMathTimeRangeBuilder

type ExprTypeMathTimeRangeBuilder struct {
	// contains filtered or unexported fields
}

func NewExprTypeMathTimeRangeBuilder

func NewExprTypeMathTimeRangeBuilder() *ExprTypeMathTimeRangeBuilder

func (*ExprTypeMathTimeRangeBuilder) Build

func (*ExprTypeMathTimeRangeBuilder) From

From is the start time of the query.

func (*ExprTypeMathTimeRangeBuilder) To

To is the end time of the query.

type ExprTypeReduceResultAssertions

type ExprTypeReduceResultAssertions struct {
	// Maximum frame count
	MaxFrames *int64 `json:"maxFrames,omitempty"`
	// Type asserts that the frame matches a known type structure.
	// Possible enum values:
	//  - `""`
	//  - `"timeseries-wide"`
	//  - `"timeseries-long"`
	//  - `"timeseries-many"`
	//  - `"timeseries-multi"`
	//  - `"directory-listing"`
	//  - `"table"`
	//  - `"numeric-wide"`
	//  - `"numeric-multi"`
	//  - `"numeric-long"`
	//  - `"log-lines"`
	Type *TypeReduceType `json:"type,omitempty"`
	// TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane
	// contract documentation https://grafana.github.io/dataplane/contract/.
	TypeVersion []int64 `json:"typeVersion"`
}

func NewExprTypeReduceResultAssertions

func NewExprTypeReduceResultAssertions() *ExprTypeReduceResultAssertions

NewExprTypeReduceResultAssertions creates a new ExprTypeReduceResultAssertions object.

func (ExprTypeReduceResultAssertions) Equals

Equals tests the equality of two `ExprTypeReduceResultAssertions` objects.

func (*ExprTypeReduceResultAssertions) UnmarshalJSONStrict

func (resource *ExprTypeReduceResultAssertions) UnmarshalJSONStrict(raw []byte) error

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode `ExprTypeReduceResultAssertions` from JSON. Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (ExprTypeReduceResultAssertions) Validate

func (resource ExprTypeReduceResultAssertions) Validate() error

Validate checks all the validation constraints that may be defined on `ExprTypeReduceResultAssertions` fields for violations and returns them.

type ExprTypeReduceResultAssertionsBuilder

type ExprTypeReduceResultAssertionsBuilder struct {
	// contains filtered or unexported fields
}

func NewExprTypeReduceResultAssertionsBuilder

func NewExprTypeReduceResultAssertionsBuilder() *ExprTypeReduceResultAssertionsBuilder

func (*ExprTypeReduceResultAssertionsBuilder) Build

func (*ExprTypeReduceResultAssertionsBuilder) MaxFrames

Maximum frame count

func (*ExprTypeReduceResultAssertionsBuilder) Type

Type asserts that the frame matches a known type structure. Possible enum values:

  • `""`
  • `"timeseries-wide"`
  • `"timeseries-long"`
  • `"timeseries-many"`
  • `"timeseries-multi"`
  • `"directory-listing"`
  • `"table"`
  • `"numeric-wide"`
  • `"numeric-multi"`
  • `"numeric-long"`
  • `"log-lines"`

func (*ExprTypeReduceResultAssertionsBuilder) TypeVersion

TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane contract documentation https://grafana.github.io/dataplane/contract/.

type ExprTypeReduceSettings

type ExprTypeReduceSettings struct {
	// Non-number reduce behavior
	// Possible enum values:
	//  - `"dropNN"` Drop non-numbers
	//  - `"replaceNN"` Replace non-numbers
	Mode TypeReduceMode `json:"mode"`
	// Only valid when mode is replace
	ReplaceWithValue *float64 `json:"replaceWithValue,omitempty"`
}

func NewExprTypeReduceSettings

func NewExprTypeReduceSettings() *ExprTypeReduceSettings

NewExprTypeReduceSettings creates a new ExprTypeReduceSettings object.

func (ExprTypeReduceSettings) Equals

func (resource ExprTypeReduceSettings) Equals(other ExprTypeReduceSettings) bool

Equals tests the equality of two `ExprTypeReduceSettings` objects.

func (*ExprTypeReduceSettings) UnmarshalJSONStrict

func (resource *ExprTypeReduceSettings) UnmarshalJSONStrict(raw []byte) error

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode `ExprTypeReduceSettings` from JSON. Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (ExprTypeReduceSettings) Validate

func (resource ExprTypeReduceSettings) Validate() error

Validate checks all the validation constraints that may be defined on `ExprTypeReduceSettings` fields for violations and returns them.

type ExprTypeReduceSettingsBuilder

type ExprTypeReduceSettingsBuilder struct {
	// contains filtered or unexported fields
}

func NewExprTypeReduceSettingsBuilder

func NewExprTypeReduceSettingsBuilder() *ExprTypeReduceSettingsBuilder

func (*ExprTypeReduceSettingsBuilder) Build

func (*ExprTypeReduceSettingsBuilder) Mode

Non-number reduce behavior Possible enum values:

  • `"dropNN"` Drop non-numbers
  • `"replaceNN"` Replace non-numbers

func (*ExprTypeReduceSettingsBuilder) ReplaceWithValue

func (builder *ExprTypeReduceSettingsBuilder) ReplaceWithValue(replaceWithValue float64) *ExprTypeReduceSettingsBuilder

Only valid when mode is replace

type ExprTypeReduceTimeRange

type ExprTypeReduceTimeRange struct {
	// From is the start time of the query.
	From string `json:"from"`
	// To is the end time of the query.
	To string `json:"to"`
}

func NewExprTypeReduceTimeRange

func NewExprTypeReduceTimeRange() *ExprTypeReduceTimeRange

NewExprTypeReduceTimeRange creates a new ExprTypeReduceTimeRange object.

func (ExprTypeReduceTimeRange) Equals

func (resource ExprTypeReduceTimeRange) Equals(other ExprTypeReduceTimeRange) bool

Equals tests the equality of two `ExprTypeReduceTimeRange` objects.

func (*ExprTypeReduceTimeRange) UnmarshalJSONStrict

func (resource *ExprTypeReduceTimeRange) UnmarshalJSONStrict(raw []byte) error

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode `ExprTypeReduceTimeRange` from JSON. Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (ExprTypeReduceTimeRange) Validate

func (resource ExprTypeReduceTimeRange) Validate() error

Validate checks all the validation constraints that may be defined on `ExprTypeReduceTimeRange` fields for violations and returns them.

type ExprTypeReduceTimeRangeBuilder

type ExprTypeReduceTimeRangeBuilder struct {
	// contains filtered or unexported fields
}

func NewExprTypeReduceTimeRangeBuilder

func NewExprTypeReduceTimeRangeBuilder() *ExprTypeReduceTimeRangeBuilder

func (*ExprTypeReduceTimeRangeBuilder) Build

func (*ExprTypeReduceTimeRangeBuilder) From

From is the start time of the query.

func (*ExprTypeReduceTimeRangeBuilder) To

To is the end time of the query.

type ExprTypeResampleResultAssertions

type ExprTypeResampleResultAssertions struct {
	// Maximum frame count
	MaxFrames *int64 `json:"maxFrames,omitempty"`
	// Type asserts that the frame matches a known type structure.
	// Possible enum values:
	//  - `""`
	//  - `"timeseries-wide"`
	//  - `"timeseries-long"`
	//  - `"timeseries-many"`
	//  - `"timeseries-multi"`
	//  - `"directory-listing"`
	//  - `"table"`
	//  - `"numeric-wide"`
	//  - `"numeric-multi"`
	//  - `"numeric-long"`
	//  - `"log-lines"`
	Type *TypeResampleType `json:"type,omitempty"`
	// TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane
	// contract documentation https://grafana.github.io/dataplane/contract/.
	TypeVersion []int64 `json:"typeVersion"`
}

func NewExprTypeResampleResultAssertions

func NewExprTypeResampleResultAssertions() *ExprTypeResampleResultAssertions

NewExprTypeResampleResultAssertions creates a new ExprTypeResampleResultAssertions object.

func (ExprTypeResampleResultAssertions) Equals

Equals tests the equality of two `ExprTypeResampleResultAssertions` objects.

func (*ExprTypeResampleResultAssertions) UnmarshalJSONStrict

func (resource *ExprTypeResampleResultAssertions) UnmarshalJSONStrict(raw []byte) error

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode `ExprTypeResampleResultAssertions` from JSON. Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (ExprTypeResampleResultAssertions) Validate

func (resource ExprTypeResampleResultAssertions) Validate() error

Validate checks all the validation constraints that may be defined on `ExprTypeResampleResultAssertions` fields for violations and returns them.

type ExprTypeResampleResultAssertionsBuilder

type ExprTypeResampleResultAssertionsBuilder struct {
	// contains filtered or unexported fields
}

func NewExprTypeResampleResultAssertionsBuilder

func NewExprTypeResampleResultAssertionsBuilder() *ExprTypeResampleResultAssertionsBuilder

func (*ExprTypeResampleResultAssertionsBuilder) Build

func (*ExprTypeResampleResultAssertionsBuilder) MaxFrames

Maximum frame count

func (*ExprTypeResampleResultAssertionsBuilder) Type

Type asserts that the frame matches a known type structure. Possible enum values:

  • `""`
  • `"timeseries-wide"`
  • `"timeseries-long"`
  • `"timeseries-many"`
  • `"timeseries-multi"`
  • `"directory-listing"`
  • `"table"`
  • `"numeric-wide"`
  • `"numeric-multi"`
  • `"numeric-long"`
  • `"log-lines"`

func (*ExprTypeResampleResultAssertionsBuilder) TypeVersion

TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane contract documentation https://grafana.github.io/dataplane/contract/.

type ExprTypeResampleTimeRange

type ExprTypeResampleTimeRange struct {
	// From is the start time of the query.
	From string `json:"from"`
	// To is the end time of the query.
	To string `json:"to"`
}

func NewExprTypeResampleTimeRange

func NewExprTypeResampleTimeRange() *ExprTypeResampleTimeRange

NewExprTypeResampleTimeRange creates a new ExprTypeResampleTimeRange object.

func (ExprTypeResampleTimeRange) Equals

Equals tests the equality of two `ExprTypeResampleTimeRange` objects.

func (*ExprTypeResampleTimeRange) UnmarshalJSONStrict

func (resource *ExprTypeResampleTimeRange) UnmarshalJSONStrict(raw []byte) error

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode `ExprTypeResampleTimeRange` from JSON. Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (ExprTypeResampleTimeRange) Validate

func (resource ExprTypeResampleTimeRange) Validate() error

Validate checks all the validation constraints that may be defined on `ExprTypeResampleTimeRange` fields for violations and returns them.

type ExprTypeResampleTimeRangeBuilder

type ExprTypeResampleTimeRangeBuilder struct {
	// contains filtered or unexported fields
}

func NewExprTypeResampleTimeRangeBuilder

func NewExprTypeResampleTimeRangeBuilder() *ExprTypeResampleTimeRangeBuilder

func (*ExprTypeResampleTimeRangeBuilder) Build

func (*ExprTypeResampleTimeRangeBuilder) From

From is the start time of the query.

func (*ExprTypeResampleTimeRangeBuilder) To

To is the end time of the query.

type ExprTypeSqlResultAssertions

type ExprTypeSqlResultAssertions struct {
	// Maximum frame count
	MaxFrames *int64 `json:"maxFrames,omitempty"`
	// Type asserts that the frame matches a known type structure.
	// Possible enum values:
	//  - `""`
	//  - `"timeseries-wide"`
	//  - `"timeseries-long"`
	//  - `"timeseries-many"`
	//  - `"timeseries-multi"`
	//  - `"directory-listing"`
	//  - `"table"`
	//  - `"numeric-wide"`
	//  - `"numeric-multi"`
	//  - `"numeric-long"`
	//  - `"log-lines"`
	Type *TypeSqlType `json:"type,omitempty"`
	// TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane
	// contract documentation https://grafana.github.io/dataplane/contract/.
	TypeVersion []int64 `json:"typeVersion"`
}

func NewExprTypeSqlResultAssertions

func NewExprTypeSqlResultAssertions() *ExprTypeSqlResultAssertions

NewExprTypeSqlResultAssertions creates a new ExprTypeSqlResultAssertions object.

func (ExprTypeSqlResultAssertions) Equals

Equals tests the equality of two `ExprTypeSqlResultAssertions` objects.

func (*ExprTypeSqlResultAssertions) UnmarshalJSONStrict

func (resource *ExprTypeSqlResultAssertions) UnmarshalJSONStrict(raw []byte) error

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode `ExprTypeSqlResultAssertions` from JSON. Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (ExprTypeSqlResultAssertions) Validate

func (resource ExprTypeSqlResultAssertions) Validate() error

Validate checks all the validation constraints that may be defined on `ExprTypeSqlResultAssertions` fields for violations and returns them.

type ExprTypeSqlResultAssertionsBuilder

type ExprTypeSqlResultAssertionsBuilder struct {
	// contains filtered or unexported fields
}

func NewExprTypeSqlResultAssertionsBuilder

func NewExprTypeSqlResultAssertionsBuilder() *ExprTypeSqlResultAssertionsBuilder

func (*ExprTypeSqlResultAssertionsBuilder) Build

func (*ExprTypeSqlResultAssertionsBuilder) MaxFrames

Maximum frame count

func (*ExprTypeSqlResultAssertionsBuilder) Type

Type asserts that the frame matches a known type structure. Possible enum values:

  • `""`
  • `"timeseries-wide"`
  • `"timeseries-long"`
  • `"timeseries-many"`
  • `"timeseries-multi"`
  • `"directory-listing"`
  • `"table"`
  • `"numeric-wide"`
  • `"numeric-multi"`
  • `"numeric-long"`
  • `"log-lines"`

func (*ExprTypeSqlResultAssertionsBuilder) TypeVersion

TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane contract documentation https://grafana.github.io/dataplane/contract/.

type ExprTypeSqlTimeRange

type ExprTypeSqlTimeRange struct {
	// From is the start time of the query.
	From string `json:"from"`
	// To is the end time of the query.
	To string `json:"to"`
}

func NewExprTypeSqlTimeRange

func NewExprTypeSqlTimeRange() *ExprTypeSqlTimeRange

NewExprTypeSqlTimeRange creates a new ExprTypeSqlTimeRange object.

func (ExprTypeSqlTimeRange) Equals

func (resource ExprTypeSqlTimeRange) Equals(other ExprTypeSqlTimeRange) bool

Equals tests the equality of two `ExprTypeSqlTimeRange` objects.

func (*ExprTypeSqlTimeRange) UnmarshalJSONStrict

func (resource *ExprTypeSqlTimeRange) UnmarshalJSONStrict(raw []byte) error

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode `ExprTypeSqlTimeRange` from JSON. Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (ExprTypeSqlTimeRange) Validate

func (resource ExprTypeSqlTimeRange) Validate() error

Validate checks all the validation constraints that may be defined on `ExprTypeSqlTimeRange` fields for violations and returns them.

type ExprTypeSqlTimeRangeBuilder

type ExprTypeSqlTimeRangeBuilder struct {
	// contains filtered or unexported fields
}

func NewExprTypeSqlTimeRangeBuilder

func NewExprTypeSqlTimeRangeBuilder() *ExprTypeSqlTimeRangeBuilder

func (*ExprTypeSqlTimeRangeBuilder) Build

func (*ExprTypeSqlTimeRangeBuilder) From

From is the start time of the query.

func (*ExprTypeSqlTimeRangeBuilder) To

To is the end time of the query.

type ExprTypeThresholdConditions

type ExprTypeThresholdConditions struct {
	Evaluator        ExprTypeThresholdConditionsEvaluator        `json:"evaluator"`
	LoadedDimensions any                                         `json:"loadedDimensions,omitempty"`
	UnloadEvaluator  *ExprTypeThresholdConditionsUnloadEvaluator `json:"unloadEvaluator,omitempty"`
}

func NewExprTypeThresholdConditions

func NewExprTypeThresholdConditions() *ExprTypeThresholdConditions

NewExprTypeThresholdConditions creates a new ExprTypeThresholdConditions object.

func (ExprTypeThresholdConditions) Equals

Equals tests the equality of two `ExprTypeThresholdConditions` objects.

func (*ExprTypeThresholdConditions) UnmarshalJSONStrict

func (resource *ExprTypeThresholdConditions) UnmarshalJSONStrict(raw []byte) error

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode `ExprTypeThresholdConditions` from JSON. Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (ExprTypeThresholdConditions) Validate

func (resource ExprTypeThresholdConditions) Validate() error

Validate checks all the validation constraints that may be defined on `ExprTypeThresholdConditions` fields for violations and returns them.

type ExprTypeThresholdConditionsBuilder

type ExprTypeThresholdConditionsBuilder struct {
	// contains filtered or unexported fields
}

func NewExprTypeThresholdConditionsBuilder

func NewExprTypeThresholdConditionsBuilder() *ExprTypeThresholdConditionsBuilder

func (*ExprTypeThresholdConditionsBuilder) Build

func (*ExprTypeThresholdConditionsBuilder) Evaluator

func (*ExprTypeThresholdConditionsBuilder) LoadedDimensions

func (builder *ExprTypeThresholdConditionsBuilder) LoadedDimensions(loadedDimensions any) *ExprTypeThresholdConditionsBuilder

func (*ExprTypeThresholdConditionsBuilder) UnloadEvaluator

type ExprTypeThresholdConditionsEvaluator

type ExprTypeThresholdConditionsEvaluator struct {
	Params []float64 `json:"params"`
	// e.g. "gt"
	Type TypeThresholdType `json:"type"`
}

func NewExprTypeThresholdConditionsEvaluator

func NewExprTypeThresholdConditionsEvaluator() *ExprTypeThresholdConditionsEvaluator

NewExprTypeThresholdConditionsEvaluator creates a new ExprTypeThresholdConditionsEvaluator object.

func (ExprTypeThresholdConditionsEvaluator) Equals

Equals tests the equality of two `ExprTypeThresholdConditionsEvaluator` objects.

func (*ExprTypeThresholdConditionsEvaluator) UnmarshalJSONStrict

func (resource *ExprTypeThresholdConditionsEvaluator) UnmarshalJSONStrict(raw []byte) error

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode `ExprTypeThresholdConditionsEvaluator` from JSON. Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (ExprTypeThresholdConditionsEvaluator) Validate

func (resource ExprTypeThresholdConditionsEvaluator) Validate() error

Validate checks all the validation constraints that may be defined on `ExprTypeThresholdConditionsEvaluator` fields for violations and returns them.

type ExprTypeThresholdConditionsEvaluatorBuilder

type ExprTypeThresholdConditionsEvaluatorBuilder struct {
	// contains filtered or unexported fields
}

func NewExprTypeThresholdConditionsEvaluatorBuilder

func NewExprTypeThresholdConditionsEvaluatorBuilder() *ExprTypeThresholdConditionsEvaluatorBuilder

func (*ExprTypeThresholdConditionsEvaluatorBuilder) Build

func (*ExprTypeThresholdConditionsEvaluatorBuilder) Params

func (*ExprTypeThresholdConditionsEvaluatorBuilder) Type

e.g. "gt"

type ExprTypeThresholdConditionsUnloadEvaluator

type ExprTypeThresholdConditionsUnloadEvaluator struct {
	Params []float64 `json:"params"`
	// e.g. "gt"
	Type TypeThresholdType `json:"type"`
}

func NewExprTypeThresholdConditionsUnloadEvaluator

func NewExprTypeThresholdConditionsUnloadEvaluator() *ExprTypeThresholdConditionsUnloadEvaluator

NewExprTypeThresholdConditionsUnloadEvaluator creates a new ExprTypeThresholdConditionsUnloadEvaluator object.

func (ExprTypeThresholdConditionsUnloadEvaluator) Equals

Equals tests the equality of two `ExprTypeThresholdConditionsUnloadEvaluator` objects.

func (*ExprTypeThresholdConditionsUnloadEvaluator) UnmarshalJSONStrict

func (resource *ExprTypeThresholdConditionsUnloadEvaluator) UnmarshalJSONStrict(raw []byte) error

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode `ExprTypeThresholdConditionsUnloadEvaluator` from JSON. Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (ExprTypeThresholdConditionsUnloadEvaluator) Validate

Validate checks all the validation constraints that may be defined on `ExprTypeThresholdConditionsUnloadEvaluator` fields for violations and returns them.

type ExprTypeThresholdConditionsUnloadEvaluatorBuilder

type ExprTypeThresholdConditionsUnloadEvaluatorBuilder struct {
	// contains filtered or unexported fields
}

func NewExprTypeThresholdConditionsUnloadEvaluatorBuilder

func NewExprTypeThresholdConditionsUnloadEvaluatorBuilder() *ExprTypeThresholdConditionsUnloadEvaluatorBuilder

func (*ExprTypeThresholdConditionsUnloadEvaluatorBuilder) Build

func (*ExprTypeThresholdConditionsUnloadEvaluatorBuilder) Params

func (*ExprTypeThresholdConditionsUnloadEvaluatorBuilder) Type

e.g. "gt"

type ExprTypeThresholdResultAssertions

type ExprTypeThresholdResultAssertions struct {
	// Maximum frame count
	MaxFrames *int64 `json:"maxFrames,omitempty"`
	// Type asserts that the frame matches a known type structure.
	// Possible enum values:
	//  - `""`
	//  - `"timeseries-wide"`
	//  - `"timeseries-long"`
	//  - `"timeseries-many"`
	//  - `"timeseries-multi"`
	//  - `"directory-listing"`
	//  - `"table"`
	//  - `"numeric-wide"`
	//  - `"numeric-multi"`
	//  - `"numeric-long"`
	//  - `"log-lines"`
	Type *TypeThresholdType `json:"type,omitempty"`
	// TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane
	// contract documentation https://grafana.github.io/dataplane/contract/.
	TypeVersion []int64 `json:"typeVersion"`
}

func NewExprTypeThresholdResultAssertions

func NewExprTypeThresholdResultAssertions() *ExprTypeThresholdResultAssertions

NewExprTypeThresholdResultAssertions creates a new ExprTypeThresholdResultAssertions object.

func (ExprTypeThresholdResultAssertions) Equals

Equals tests the equality of two `ExprTypeThresholdResultAssertions` objects.

func (*ExprTypeThresholdResultAssertions) UnmarshalJSONStrict

func (resource *ExprTypeThresholdResultAssertions) UnmarshalJSONStrict(raw []byte) error

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode `ExprTypeThresholdResultAssertions` from JSON. Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (ExprTypeThresholdResultAssertions) Validate

func (resource ExprTypeThresholdResultAssertions) Validate() error

Validate checks all the validation constraints that may be defined on `ExprTypeThresholdResultAssertions` fields for violations and returns them.

type ExprTypeThresholdResultAssertionsBuilder

type ExprTypeThresholdResultAssertionsBuilder struct {
	// contains filtered or unexported fields
}

func NewExprTypeThresholdResultAssertionsBuilder

func NewExprTypeThresholdResultAssertionsBuilder() *ExprTypeThresholdResultAssertionsBuilder

func (*ExprTypeThresholdResultAssertionsBuilder) Build

func (*ExprTypeThresholdResultAssertionsBuilder) MaxFrames

Maximum frame count

func (*ExprTypeThresholdResultAssertionsBuilder) Type

Type asserts that the frame matches a known type structure. Possible enum values:

  • `""`
  • `"timeseries-wide"`
  • `"timeseries-long"`
  • `"timeseries-many"`
  • `"timeseries-multi"`
  • `"directory-listing"`
  • `"table"`
  • `"numeric-wide"`
  • `"numeric-multi"`
  • `"numeric-long"`
  • `"log-lines"`

func (*ExprTypeThresholdResultAssertionsBuilder) TypeVersion

TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane contract documentation https://grafana.github.io/dataplane/contract/.

type ExprTypeThresholdTimeRange

type ExprTypeThresholdTimeRange struct {
	// From is the start time of the query.
	From string `json:"from"`
	// To is the end time of the query.
	To string `json:"to"`
}

func NewExprTypeThresholdTimeRange

func NewExprTypeThresholdTimeRange() *ExprTypeThresholdTimeRange

NewExprTypeThresholdTimeRange creates a new ExprTypeThresholdTimeRange object.

func (ExprTypeThresholdTimeRange) Equals

Equals tests the equality of two `ExprTypeThresholdTimeRange` objects.

func (*ExprTypeThresholdTimeRange) UnmarshalJSONStrict

func (resource *ExprTypeThresholdTimeRange) UnmarshalJSONStrict(raw []byte) error

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode `ExprTypeThresholdTimeRange` from JSON. Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (ExprTypeThresholdTimeRange) Validate

func (resource ExprTypeThresholdTimeRange) Validate() error

Validate checks all the validation constraints that may be defined on `ExprTypeThresholdTimeRange` fields for violations and returns them.

type ExprTypeThresholdTimeRangeBuilder

type ExprTypeThresholdTimeRangeBuilder struct {
	// contains filtered or unexported fields
}

func NewExprTypeThresholdTimeRangeBuilder

func NewExprTypeThresholdTimeRangeBuilder() *ExprTypeThresholdTimeRangeBuilder

func (*ExprTypeThresholdTimeRangeBuilder) Build

func (*ExprTypeThresholdTimeRangeBuilder) From

From is the start time of the query.

func (*ExprTypeThresholdTimeRangeBuilder) To

To is the end time of the query.

type TypeClassicConditions

type TypeClassicConditions struct {
	Conditions []ExprTypeClassicConditionsConditions `json:"conditions"`
	// The datasource
	Datasource *dashboard.DataSourceRef `json:"datasource,omitempty"`
	// 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)
	Hide *bool `json:"hide,omitempty"`
	// 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
	IntervalMs *float64 `json:"intervalMs,omitempty"`
	// 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
	MaxDataPoints *int64 `json:"maxDataPoints,omitempty"`
	// QueryType is an optional identifier for the type of query.
	// It can be used to distinguish different types of queries.
	QueryType *string `json:"queryType,omitempty"`
	// RefID is the unique identifier of the query, set by the frontend call.
	RefId string `json:"refId"`
	// Optionally define expected query result behavior
	ResultAssertions *ExprTypeClassicConditionsResultAssertions `json:"resultAssertions,omitempty"`
	// 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
	TimeRange *ExprTypeClassicConditionsTimeRange `json:"timeRange,omitempty"`
	Type      string                              `json:"type"`
}

func NewTypeClassicConditions

func NewTypeClassicConditions() *TypeClassicConditions

NewTypeClassicConditions creates a new TypeClassicConditions object.

func (TypeClassicConditions) DataqueryType

func (resource TypeClassicConditions) DataqueryType() string

func (TypeClassicConditions) Equals

func (resource TypeClassicConditions) Equals(otherCandidate variants.Dataquery) bool

Equals tests the equality of two dataqueries.

func (TypeClassicConditions) ImplementsDataqueryVariant

func (resource TypeClassicConditions) ImplementsDataqueryVariant()

func (*TypeClassicConditions) UnmarshalJSONStrict

func (resource *TypeClassicConditions) UnmarshalJSONStrict(raw []byte) error

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode `TypeClassicConditions` from JSON. Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (TypeClassicConditions) Validate

func (resource TypeClassicConditions) Validate() error

Validate checks all the validation constraints that may be defined on `TypeClassicConditions` fields for violations and returns them.

type TypeClassicConditionsBuilder

type TypeClassicConditionsBuilder struct {
	// contains filtered or unexported fields
}

func NewTypeClassicConditionsBuilder

func NewTypeClassicConditionsBuilder() *TypeClassicConditionsBuilder

func (*TypeClassicConditionsBuilder) Build

func (*TypeClassicConditionsBuilder) Conditions

func (*TypeClassicConditionsBuilder) Datasource

The datasource

func (*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 (*TypeClassicConditionsBuilder) IntervalMs

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

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 (*TypeClassicConditionsBuilder) MaxDataPoints

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

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 (*TypeClassicConditionsBuilder) QueryType

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

QueryType is an optional identifier for the type of query. It can be used to distinguish different types of queries.

func (*TypeClassicConditionsBuilder) RefId

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

func (*TypeClassicConditionsBuilder) ResultAssertions

Optionally define expected query result behavior

func (*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

type TypeClassicConditionsType

type TypeClassicConditionsType string
const (
	TypeClassicConditionsTypeNone             TypeClassicConditionsType = ""
	TypeClassicConditionsTypeTimeseriesWide   TypeClassicConditionsType = "timeseries-wide"
	TypeClassicConditionsTypeTimeseriesLong   TypeClassicConditionsType = "timeseries-long"
	TypeClassicConditionsTypeTimeseriesMany   TypeClassicConditionsType = "timeseries-many"
	TypeClassicConditionsTypeTimeseriesMulti  TypeClassicConditionsType = "timeseries-multi"
	TypeClassicConditionsTypeDirectoryListing TypeClassicConditionsType = "directory-listing"
	TypeClassicConditionsTypeTable            TypeClassicConditionsType = "table"
	TypeClassicConditionsTypeNumericWide      TypeClassicConditionsType = "numeric-wide"
	TypeClassicConditionsTypeNumericMulti     TypeClassicConditionsType = "numeric-multi"
	TypeClassicConditionsTypeNumericLong      TypeClassicConditionsType = "numeric-long"
	TypeClassicConditionsTypeLogLines         TypeClassicConditionsType = "log-lines"
)

type TypeMath

type TypeMath struct {
	// The datasource
	Datasource *dashboard.DataSourceRef `json:"datasource,omitempty"`
	// General math expression
	Expression string `json:"expression"`
	// 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)
	Hide *bool `json:"hide,omitempty"`
	// 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
	IntervalMs *float64 `json:"intervalMs,omitempty"`
	// 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
	MaxDataPoints *int64 `json:"maxDataPoints,omitempty"`
	// QueryType is an optional identifier for the type of query.
	// It can be used to distinguish different types of queries.
	QueryType *string `json:"queryType,omitempty"`
	// RefID is the unique identifier of the query, set by the frontend call.
	RefId string `json:"refId"`
	// Optionally define expected query result behavior
	ResultAssertions *ExprTypeMathResultAssertions `json:"resultAssertions,omitempty"`
	// 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
	TimeRange *ExprTypeMathTimeRange `json:"timeRange,omitempty"`
	Type      string                 `json:"type"`
}

func NewTypeMath

func NewTypeMath() *TypeMath

NewTypeMath creates a new TypeMath object.

func (TypeMath) DataqueryType

func (resource TypeMath) DataqueryType() string

func (TypeMath) Equals

func (resource TypeMath) Equals(otherCandidate variants.Dataquery) bool

Equals tests the equality of two dataqueries.

func (TypeMath) ImplementsDataqueryVariant

func (resource TypeMath) ImplementsDataqueryVariant()

func (*TypeMath) UnmarshalJSONStrict

func (resource *TypeMath) UnmarshalJSONStrict(raw []byte) error

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode `TypeMath` from JSON. Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (TypeMath) Validate

func (resource TypeMath) Validate() error

Validate checks all the validation constraints that may be defined on `TypeMath` fields for violations and returns them.

type TypeMathBuilder

type TypeMathBuilder struct {
	// contains filtered or unexported fields
}

func NewTypeMathBuilder

func NewTypeMathBuilder() *TypeMathBuilder

func (*TypeMathBuilder) Build

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

func (*TypeMathBuilder) Datasource

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

The datasource

func (*TypeMathBuilder) Expression

func (builder *TypeMathBuilder) Expression(expression string) *TypeMathBuilder

General math expression

func (*TypeMathBuilder) Hide

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

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 (*TypeMathBuilder) IntervalMs

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

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 (*TypeMathBuilder) MaxDataPoints

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

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 (*TypeMathBuilder) QueryType

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

QueryType is an optional identifier for the type of query. It can be used to distinguish different types of queries.

func (*TypeMathBuilder) RefId

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

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

func (*TypeMathBuilder) ResultAssertions

func (builder *TypeMathBuilder) ResultAssertions(resultAssertions cog.Builder[ExprTypeMathResultAssertions]) *TypeMathBuilder

Optionally define expected query result behavior

func (*TypeMathBuilder) TimeRange

func (builder *TypeMathBuilder) TimeRange(timeRange cog.Builder[ExprTypeMathTimeRange]) *TypeMathBuilder

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

type TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql

type TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql struct {
	TypeMath              *TypeMath              `json:"TypeMath,omitempty"`
	TypeReduce            *TypeReduce            `json:"TypeReduce,omitempty"`
	TypeResample          *TypeResample          `json:"TypeResample,omitempty"`
	TypeClassicConditions *TypeClassicConditions `json:"TypeClassicConditions,omitempty"`
	TypeThreshold         *TypeThreshold         `json:"TypeThreshold,omitempty"`
	TypeSql               *TypeSql               `json:"TypeSql,omitempty"`
}

func NewTypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql

func NewTypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql() *TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql

NewTypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql creates a new TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql object.

func (TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql) DataqueryType

func (TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql) Equals

Equals tests the equality of two dataqueries.

func (TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql) ImplementsDataqueryVariant

func (TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql) MarshalJSON

MarshalJSON implements a custom JSON marshalling logic to encode `TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql` as JSON.

func (*TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql) UnmarshalJSON

UnmarshalJSON implements a custom JSON unmarshalling logic to decode `TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql` from JSON.

func (*TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql) UnmarshalJSONStrict

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode `TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql` from JSON. Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql) Validate

Validate checks all the validation constraints that may be defined on `TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql` fields for violations and returns them.

type TypeMathType

type TypeMathType string
const (
	TypeMathTypeNone             TypeMathType = ""
	TypeMathTypeTimeseriesWide   TypeMathType = "timeseries-wide"
	TypeMathTypeTimeseriesLong   TypeMathType = "timeseries-long"
	TypeMathTypeTimeseriesMany   TypeMathType = "timeseries-many"
	TypeMathTypeTimeseriesMulti  TypeMathType = "timeseries-multi"
	TypeMathTypeDirectoryListing TypeMathType = "directory-listing"
	TypeMathTypeTable            TypeMathType = "table"
	TypeMathTypeNumericWide      TypeMathType = "numeric-wide"
	TypeMathTypeNumericMulti     TypeMathType = "numeric-multi"
	TypeMathTypeNumericLong      TypeMathType = "numeric-long"
	TypeMathTypeLogLines         TypeMathType = "log-lines"
)

type TypeReduce

type TypeReduce struct {
	// The datasource
	Datasource *dashboard.DataSourceRef `json:"datasource,omitempty"`
	// Reference to single query result
	Expression string `json:"expression"`
	// 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)
	Hide *bool `json:"hide,omitempty"`
	// 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
	IntervalMs *float64 `json:"intervalMs,omitempty"`
	// 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
	MaxDataPoints *int64 `json:"maxDataPoints,omitempty"`
	// QueryType is an optional identifier for the type of query.
	// It can be used to distinguish different types of queries.
	QueryType *string `json:"queryType,omitempty"`
	// The reducer
	// Possible enum values:
	//  - `"sum"`
	//  - `"mean"`
	//  - `"min"`
	//  - `"max"`
	//  - `"count"`
	//  - `"last"`
	//  - `"median"`
	Reducer TypeReduceReducer `json:"reducer"`
	// RefID is the unique identifier of the query, set by the frontend call.
	RefId string `json:"refId"`
	// Optionally define expected query result behavior
	ResultAssertions *ExprTypeReduceResultAssertions `json:"resultAssertions,omitempty"`
	// Reducer Options
	Settings *ExprTypeReduceSettings `json:"settings,omitempty"`
	// 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
	TimeRange *ExprTypeReduceTimeRange `json:"timeRange,omitempty"`
	Type      string                   `json:"type"`
}

func NewTypeReduce

func NewTypeReduce() *TypeReduce

NewTypeReduce creates a new TypeReduce object.

func (TypeReduce) DataqueryType

func (resource TypeReduce) DataqueryType() string

func (TypeReduce) Equals

func (resource TypeReduce) Equals(otherCandidate variants.Dataquery) bool

Equals tests the equality of two dataqueries.

func (TypeReduce) ImplementsDataqueryVariant

func (resource TypeReduce) ImplementsDataqueryVariant()

func (*TypeReduce) UnmarshalJSONStrict

func (resource *TypeReduce) UnmarshalJSONStrict(raw []byte) error

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode `TypeReduce` from JSON. Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (TypeReduce) Validate

func (resource TypeReduce) Validate() error

Validate checks all the validation constraints that may be defined on `TypeReduce` fields for violations and returns them.

type TypeReduceBuilder

type TypeReduceBuilder struct {
	// contains filtered or unexported fields
}

func NewTypeReduceBuilder

func NewTypeReduceBuilder() *TypeReduceBuilder

func (*TypeReduceBuilder) Build

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

func (*TypeReduceBuilder) Datasource

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

The datasource

func (*TypeReduceBuilder) Expression

func (builder *TypeReduceBuilder) Expression(expression string) *TypeReduceBuilder

Reference to single query result

func (*TypeReduceBuilder) Hide

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

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 (*TypeReduceBuilder) IntervalMs

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

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 (*TypeReduceBuilder) MaxDataPoints

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

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 (*TypeReduceBuilder) QueryType

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

QueryType is an optional identifier for the type of query. It can be used to distinguish different types of queries.

func (*TypeReduceBuilder) Reducer

func (builder *TypeReduceBuilder) Reducer(reducer TypeReduceReducer) *TypeReduceBuilder

The reducer Possible enum values:

  • `"sum"`
  • `"mean"`
  • `"min"`
  • `"max"`
  • `"count"`
  • `"last"`
  • `"median"`

func (*TypeReduceBuilder) RefId

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

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

func (*TypeReduceBuilder) ResultAssertions

func (builder *TypeReduceBuilder) ResultAssertions(resultAssertions cog.Builder[ExprTypeReduceResultAssertions]) *TypeReduceBuilder

Optionally define expected query result behavior

func (*TypeReduceBuilder) Settings

Reducer Options

func (*TypeReduceBuilder) TimeRange

func (builder *TypeReduceBuilder) TimeRange(timeRange cog.Builder[ExprTypeReduceTimeRange]) *TypeReduceBuilder

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

type TypeReduceMode

type TypeReduceMode string
const (
	TypeReduceModeDropNN    TypeReduceMode = "dropNN"
	TypeReduceModeReplaceNN TypeReduceMode = "replaceNN"
)

type TypeReduceReducer

type TypeReduceReducer string
const (
	TypeReduceReducerSum    TypeReduceReducer = "sum"
	TypeReduceReducerMean   TypeReduceReducer = "mean"
	TypeReduceReducerMin    TypeReduceReducer = "min"
	TypeReduceReducerMax    TypeReduceReducer = "max"
	TypeReduceReducerCount  TypeReduceReducer = "count"
	TypeReduceReducerLast   TypeReduceReducer = "last"
	TypeReduceReducerMedian TypeReduceReducer = "median"
)

type TypeReduceType

type TypeReduceType string
const (
	TypeReduceTypeNone             TypeReduceType = ""
	TypeReduceTypeTimeseriesWide   TypeReduceType = "timeseries-wide"
	TypeReduceTypeTimeseriesLong   TypeReduceType = "timeseries-long"
	TypeReduceTypeTimeseriesMany   TypeReduceType = "timeseries-many"
	TypeReduceTypeTimeseriesMulti  TypeReduceType = "timeseries-multi"
	TypeReduceTypeDirectoryListing TypeReduceType = "directory-listing"
	TypeReduceTypeTable            TypeReduceType = "table"
	TypeReduceTypeNumericWide      TypeReduceType = "numeric-wide"
	TypeReduceTypeNumericMulti     TypeReduceType = "numeric-multi"
	TypeReduceTypeNumericLong      TypeReduceType = "numeric-long"
	TypeReduceTypeLogLines         TypeReduceType = "log-lines"
)

type TypeResample

type TypeResample struct {
	// The datasource
	Datasource *dashboard.DataSourceRef `json:"datasource,omitempty"`
	// The downsample function
	// Possible enum values:
	//  - `"sum"`
	//  - `"mean"`
	//  - `"min"`
	//  - `"max"`
	//  - `"count"`
	//  - `"last"`
	//  - `"median"`
	Downsampler TypeResampleDownsampler `json:"downsampler"`
	// The math expression
	Expression string `json:"expression"`
	// 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)
	Hide *bool `json:"hide,omitempty"`
	// 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
	IntervalMs *float64 `json:"intervalMs,omitempty"`
	// 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
	MaxDataPoints *int64 `json:"maxDataPoints,omitempty"`
	// QueryType is an optional identifier for the type of query.
	// It can be used to distinguish different types of queries.
	QueryType *string `json:"queryType,omitempty"`
	// RefID is the unique identifier of the query, set by the frontend call.
	RefId string `json:"refId"`
	// Optionally define expected query result behavior
	ResultAssertions *ExprTypeResampleResultAssertions `json:"resultAssertions,omitempty"`
	// 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
	TimeRange *ExprTypeResampleTimeRange `json:"timeRange,omitempty"`
	Type      string                     `json:"type"`
	// The upsample function
	// Possible enum values:
	//  - `"pad"` Use the last seen value
	//  - `"backfilling"` backfill
	//  - `"fillna"` Do not fill values (nill)
	Upsampler TypeResampleUpsampler `json:"upsampler"`
	// The time duration
	Window string `json:"window"`
}

func NewTypeResample

func NewTypeResample() *TypeResample

NewTypeResample creates a new TypeResample object.

func (TypeResample) DataqueryType

func (resource TypeResample) DataqueryType() string

func (TypeResample) Equals

func (resource TypeResample) Equals(otherCandidate variants.Dataquery) bool

Equals tests the equality of two dataqueries.

func (TypeResample) ImplementsDataqueryVariant

func (resource TypeResample) ImplementsDataqueryVariant()

func (*TypeResample) UnmarshalJSONStrict

func (resource *TypeResample) UnmarshalJSONStrict(raw []byte) error

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode `TypeResample` from JSON. Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (TypeResample) Validate

func (resource TypeResample) Validate() error

Validate checks all the validation constraints that may be defined on `TypeResample` fields for violations and returns them.

type TypeResampleBuilder

type TypeResampleBuilder struct {
	// contains filtered or unexported fields
}

func NewTypeResampleBuilder

func NewTypeResampleBuilder() *TypeResampleBuilder

func (*TypeResampleBuilder) Build

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

func (*TypeResampleBuilder) Datasource

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

The datasource

func (*TypeResampleBuilder) Downsampler

func (builder *TypeResampleBuilder) Downsampler(downsampler TypeResampleDownsampler) *TypeResampleBuilder

The downsample function Possible enum values:

  • `"sum"`
  • `"mean"`
  • `"min"`
  • `"max"`
  • `"count"`
  • `"last"`
  • `"median"`

func (*TypeResampleBuilder) Expression

func (builder *TypeResampleBuilder) Expression(expression string) *TypeResampleBuilder

The math expression

func (*TypeResampleBuilder) Hide

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

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 (*TypeResampleBuilder) IntervalMs

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

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 (*TypeResampleBuilder) MaxDataPoints

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

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 (*TypeResampleBuilder) QueryType

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

QueryType is an optional identifier for the type of query. It can be used to distinguish different types of queries.

func (*TypeResampleBuilder) RefId

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

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

func (*TypeResampleBuilder) ResultAssertions

func (builder *TypeResampleBuilder) ResultAssertions(resultAssertions cog.Builder[ExprTypeResampleResultAssertions]) *TypeResampleBuilder

Optionally define expected query result behavior

func (*TypeResampleBuilder) 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 (*TypeResampleBuilder) Upsampler

func (builder *TypeResampleBuilder) Upsampler(upsampler TypeResampleUpsampler) *TypeResampleBuilder

The upsample function Possible enum values:

  • `"pad"` Use the last seen value
  • `"backfilling"` backfill
  • `"fillna"` Do not fill values (nill)

func (*TypeResampleBuilder) Window

func (builder *TypeResampleBuilder) Window(window string) *TypeResampleBuilder

The time duration

type TypeResampleDownsampler

type TypeResampleDownsampler string
const (
	TypeResampleDownsamplerSum    TypeResampleDownsampler = "sum"
	TypeResampleDownsamplerMean   TypeResampleDownsampler = "mean"
	TypeResampleDownsamplerMin    TypeResampleDownsampler = "min"
	TypeResampleDownsamplerMax    TypeResampleDownsampler = "max"
	TypeResampleDownsamplerCount  TypeResampleDownsampler = "count"
	TypeResampleDownsamplerLast   TypeResampleDownsampler = "last"
	TypeResampleDownsamplerMedian TypeResampleDownsampler = "median"
)

type TypeResampleType

type TypeResampleType string
const (
	TypeResampleTypeNone             TypeResampleType = ""
	TypeResampleTypeTimeseriesWide   TypeResampleType = "timeseries-wide"
	TypeResampleTypeTimeseriesLong   TypeResampleType = "timeseries-long"
	TypeResampleTypeTimeseriesMany   TypeResampleType = "timeseries-many"
	TypeResampleTypeTimeseriesMulti  TypeResampleType = "timeseries-multi"
	TypeResampleTypeDirectoryListing TypeResampleType = "directory-listing"
	TypeResampleTypeTable            TypeResampleType = "table"
	TypeResampleTypeNumericWide      TypeResampleType = "numeric-wide"
	TypeResampleTypeNumericMulti     TypeResampleType = "numeric-multi"
	TypeResampleTypeNumericLong      TypeResampleType = "numeric-long"
	TypeResampleTypeLogLines         TypeResampleType = "log-lines"
)

type TypeResampleUpsampler

type TypeResampleUpsampler string
const (
	TypeResampleUpsamplerPad         TypeResampleUpsampler = "pad"
	TypeResampleUpsamplerBackfilling TypeResampleUpsampler = "backfilling"
	TypeResampleUpsamplerFillna      TypeResampleUpsampler = "fillna"
)

type TypeSql

type TypeSql struct {
	// The datasource
	Datasource *dashboard.DataSourceRef `json:"datasource,omitempty"`
	Expression string                   `json:"expression"`
	// 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)
	Hide *bool `json:"hide,omitempty"`
	// 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
	IntervalMs *float64 `json:"intervalMs,omitempty"`
	// 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
	MaxDataPoints *int64 `json:"maxDataPoints,omitempty"`
	// QueryType is an optional identifier for the type of query.
	// It can be used to distinguish different types of queries.
	QueryType *string `json:"queryType,omitempty"`
	// RefID is the unique identifier of the query, set by the frontend call.
	RefId string `json:"refId"`
	// Optionally define expected query result behavior
	ResultAssertions *ExprTypeSqlResultAssertions `json:"resultAssertions,omitempty"`
	// 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
	TimeRange *ExprTypeSqlTimeRange `json:"timeRange,omitempty"`
	Type      string                `json:"type"`
}

func NewTypeSql

func NewTypeSql() *TypeSql

NewTypeSql creates a new TypeSql object.

func (TypeSql) DataqueryType

func (resource TypeSql) DataqueryType() string

func (TypeSql) Equals

func (resource TypeSql) Equals(otherCandidate variants.Dataquery) bool

Equals tests the equality of two dataqueries.

func (TypeSql) ImplementsDataqueryVariant

func (resource TypeSql) ImplementsDataqueryVariant()

func (*TypeSql) UnmarshalJSONStrict

func (resource *TypeSql) UnmarshalJSONStrict(raw []byte) error

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode `TypeSql` from JSON. Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (TypeSql) Validate

func (resource TypeSql) Validate() error

Validate checks all the validation constraints that may be defined on `TypeSql` fields for violations and returns them.

type TypeSqlBuilder

type TypeSqlBuilder struct {
	// contains filtered or unexported fields
}

func NewTypeSqlBuilder

func NewTypeSqlBuilder() *TypeSqlBuilder

func (*TypeSqlBuilder) Build

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

func (*TypeSqlBuilder) Datasource

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

The datasource

func (*TypeSqlBuilder) Expression

func (builder *TypeSqlBuilder) Expression(expression string) *TypeSqlBuilder

func (*TypeSqlBuilder) Hide

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

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 (*TypeSqlBuilder) IntervalMs

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

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 (*TypeSqlBuilder) MaxDataPoints

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

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 (*TypeSqlBuilder) QueryType

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

QueryType is an optional identifier for the type of query. It can be used to distinguish different types of queries.

func (*TypeSqlBuilder) RefId

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

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

func (*TypeSqlBuilder) ResultAssertions

func (builder *TypeSqlBuilder) ResultAssertions(resultAssertions cog.Builder[ExprTypeSqlResultAssertions]) *TypeSqlBuilder

Optionally define expected query result behavior

func (*TypeSqlBuilder) TimeRange

func (builder *TypeSqlBuilder) TimeRange(timeRange cog.Builder[ExprTypeSqlTimeRange]) *TypeSqlBuilder

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

type TypeSqlType

type TypeSqlType string
const (
	TypeSqlTypeNone             TypeSqlType = ""
	TypeSqlTypeTimeseriesWide   TypeSqlType = "timeseries-wide"
	TypeSqlTypeTimeseriesLong   TypeSqlType = "timeseries-long"
	TypeSqlTypeTimeseriesMany   TypeSqlType = "timeseries-many"
	TypeSqlTypeTimeseriesMulti  TypeSqlType = "timeseries-multi"
	TypeSqlTypeDirectoryListing TypeSqlType = "directory-listing"
	TypeSqlTypeTable            TypeSqlType = "table"
	TypeSqlTypeNumericWide      TypeSqlType = "numeric-wide"
	TypeSqlTypeNumericMulti     TypeSqlType = "numeric-multi"
	TypeSqlTypeNumericLong      TypeSqlType = "numeric-long"
	TypeSqlTypeLogLines         TypeSqlType = "log-lines"
)

type TypeThreshold

type TypeThreshold struct {
	// Threshold Conditions
	Conditions []ExprTypeThresholdConditions `json:"conditions"`
	// The datasource
	Datasource *dashboard.DataSourceRef `json:"datasource,omitempty"`
	// Reference to single query result
	Expression string `json:"expression"`
	// 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)
	Hide *bool `json:"hide,omitempty"`
	// 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
	IntervalMs *float64 `json:"intervalMs,omitempty"`
	// 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
	MaxDataPoints *int64 `json:"maxDataPoints,omitempty"`
	// QueryType is an optional identifier for the type of query.
	// It can be used to distinguish different types of queries.
	QueryType *string `json:"queryType,omitempty"`
	// RefID is the unique identifier of the query, set by the frontend call.
	RefId string `json:"refId"`
	// Optionally define expected query result behavior
	ResultAssertions *ExprTypeThresholdResultAssertions `json:"resultAssertions,omitempty"`
	// 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
	TimeRange *ExprTypeThresholdTimeRange `json:"timeRange,omitempty"`
	Type      string                      `json:"type"`
}

func NewTypeThreshold

func NewTypeThreshold() *TypeThreshold

NewTypeThreshold creates a new TypeThreshold object.

func (TypeThreshold) DataqueryType

func (resource TypeThreshold) DataqueryType() string

func (TypeThreshold) Equals

func (resource TypeThreshold) Equals(otherCandidate variants.Dataquery) bool

Equals tests the equality of two dataqueries.

func (TypeThreshold) ImplementsDataqueryVariant

func (resource TypeThreshold) ImplementsDataqueryVariant()

func (*TypeThreshold) UnmarshalJSONStrict

func (resource *TypeThreshold) UnmarshalJSONStrict(raw []byte) error

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode `TypeThreshold` from JSON. Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (TypeThreshold) Validate

func (resource TypeThreshold) Validate() error

Validate checks all the validation constraints that may be defined on `TypeThreshold` fields for violations and returns them.

type TypeThresholdBuilder

type TypeThresholdBuilder struct {
	// contains filtered or unexported fields
}

func NewTypeThresholdBuilder

func NewTypeThresholdBuilder() *TypeThresholdBuilder

func (*TypeThresholdBuilder) Build

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

func (*TypeThresholdBuilder) Conditions

Threshold Conditions

func (*TypeThresholdBuilder) Datasource

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

The datasource

func (*TypeThresholdBuilder) Expression

func (builder *TypeThresholdBuilder) Expression(expression string) *TypeThresholdBuilder

Reference to single query result

func (*TypeThresholdBuilder) Hide

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

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 (*TypeThresholdBuilder) IntervalMs

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

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 (*TypeThresholdBuilder) MaxDataPoints

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

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 (*TypeThresholdBuilder) QueryType

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

QueryType is an optional identifier for the type of query. It can be used to distinguish different types of queries.

func (*TypeThresholdBuilder) RefId

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

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

func (*TypeThresholdBuilder) ResultAssertions

func (builder *TypeThresholdBuilder) ResultAssertions(resultAssertions cog.Builder[ExprTypeThresholdResultAssertions]) *TypeThresholdBuilder

Optionally define expected query result behavior

func (*TypeThresholdBuilder) 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

type TypeThresholdType

type TypeThresholdType string
const (
	TypeThresholdTypeNone             TypeThresholdType = ""
	TypeThresholdTypeTimeseriesWide   TypeThresholdType = "timeseries-wide"
	TypeThresholdTypeTimeseriesLong   TypeThresholdType = "timeseries-long"
	TypeThresholdTypeTimeseriesMany   TypeThresholdType = "timeseries-many"
	TypeThresholdTypeTimeseriesMulti  TypeThresholdType = "timeseries-multi"
	TypeThresholdTypeDirectoryListing TypeThresholdType = "directory-listing"
	TypeThresholdTypeTable            TypeThresholdType = "table"
	TypeThresholdTypeNumericWide      TypeThresholdType = "numeric-wide"
	TypeThresholdTypeNumericMulti     TypeThresholdType = "numeric-multi"
	TypeThresholdTypeNumericLong      TypeThresholdType = "numeric-long"
	TypeThresholdTypeLogLines         TypeThresholdType = "log-lines"
)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL