Documentation ¶
Index ¶
- func ExprTypeClassicConditionsConditionsConverter(input ExprTypeClassicConditionsConditions) string
- func ExprTypeClassicConditionsConditionsEvaluatorConverter(input ExprTypeClassicConditionsConditionsEvaluator) string
- func ExprTypeClassicConditionsConditionsOperatorConverter(input ExprTypeClassicConditionsConditionsOperator) string
- func ExprTypeClassicConditionsConditionsQueryConverter(input ExprTypeClassicConditionsConditionsQuery) string
- func ExprTypeClassicConditionsConditionsReducerConverter(input ExprTypeClassicConditionsConditionsReducer) string
- func ExprTypeClassicConditionsResultAssertionsConverter(input ExprTypeClassicConditionsResultAssertions) string
- func ExprTypeClassicConditionsTimeRangeConverter(input ExprTypeClassicConditionsTimeRange) string
- func ExprTypeMathResultAssertionsConverter(input ExprTypeMathResultAssertions) string
- func ExprTypeMathTimeRangeConverter(input ExprTypeMathTimeRange) string
- func ExprTypeReduceResultAssertionsConverter(input ExprTypeReduceResultAssertions) string
- func ExprTypeReduceSettingsConverter(input ExprTypeReduceSettings) string
- func ExprTypeReduceTimeRangeConverter(input ExprTypeReduceTimeRange) string
- func ExprTypeResampleResultAssertionsConverter(input ExprTypeResampleResultAssertions) string
- func ExprTypeResampleTimeRangeConverter(input ExprTypeResampleTimeRange) string
- func ExprTypeSqlResultAssertionsConverter(input ExprTypeSqlResultAssertions) string
- func ExprTypeSqlTimeRangeConverter(input ExprTypeSqlTimeRange) string
- func ExprTypeThresholdConditionsConverter(input ExprTypeThresholdConditions) string
- func ExprTypeThresholdConditionsEvaluatorConverter(input ExprTypeThresholdConditionsEvaluator) string
- func ExprTypeThresholdConditionsUnloadEvaluatorConverter(input ExprTypeThresholdConditionsUnloadEvaluator) string
- func ExprTypeThresholdResultAssertionsConverter(input ExprTypeThresholdResultAssertions) string
- func ExprTypeThresholdTimeRangeConverter(input ExprTypeThresholdTimeRange) string
- func TypeClassicConditionsConverter(input TypeClassicConditions) string
- func TypeMathConverter(input TypeMath) string
- func TypeReduceConverter(input TypeReduce) string
- func TypeResampleConverter(input TypeResample) string
- func TypeSqlConverter(input TypeSql) string
- func TypeThresholdConverter(input TypeThreshold) string
- func VariantConfig() variants.DataqueryConfig
- type Expr
- type ExprTypeClassicConditionsConditions
- type ExprTypeClassicConditionsConditionsBuilder
- func (builder *ExprTypeClassicConditionsConditionsBuilder) Build() (ExprTypeClassicConditionsConditions, error)
- func (builder *ExprTypeClassicConditionsConditionsBuilder) Evaluator(evaluator cog.Builder[ExprTypeClassicConditionsConditionsEvaluator]) *ExprTypeClassicConditionsConditionsBuilder
- func (builder *ExprTypeClassicConditionsConditionsBuilder) Operator(operator cog.Builder[ExprTypeClassicConditionsConditionsOperator]) *ExprTypeClassicConditionsConditionsBuilder
- func (builder *ExprTypeClassicConditionsConditionsBuilder) Query(query cog.Builder[ExprTypeClassicConditionsConditionsQuery]) *ExprTypeClassicConditionsConditionsBuilder
- func (builder *ExprTypeClassicConditionsConditionsBuilder) Reducer(reducer cog.Builder[ExprTypeClassicConditionsConditionsReducer]) *ExprTypeClassicConditionsConditionsBuilder
- type ExprTypeClassicConditionsConditionsEvaluator
- func (resource ExprTypeClassicConditionsConditionsEvaluator) Equals(other ExprTypeClassicConditionsConditionsEvaluator) bool
- func (resource *ExprTypeClassicConditionsConditionsEvaluator) UnmarshalJSONStrict(raw []byte) error
- func (resource ExprTypeClassicConditionsConditionsEvaluator) Validate() error
- type ExprTypeClassicConditionsConditionsEvaluatorBuilder
- func (builder *ExprTypeClassicConditionsConditionsEvaluatorBuilder) Build() (ExprTypeClassicConditionsConditionsEvaluator, error)
- func (builder *ExprTypeClassicConditionsConditionsEvaluatorBuilder) Params(params []float64) *ExprTypeClassicConditionsConditionsEvaluatorBuilder
- func (builder *ExprTypeClassicConditionsConditionsEvaluatorBuilder) Type(typeArg string) *ExprTypeClassicConditionsConditionsEvaluatorBuilder
- type ExprTypeClassicConditionsConditionsOperator
- type ExprTypeClassicConditionsConditionsOperatorBuilder
- type ExprTypeClassicConditionsConditionsQuery
- type ExprTypeClassicConditionsConditionsQueryBuilder
- type ExprTypeClassicConditionsConditionsReducer
- type ExprTypeClassicConditionsConditionsReducerBuilder
- type ExprTypeClassicConditionsResultAssertions
- type ExprTypeClassicConditionsResultAssertionsBuilder
- func (builder *ExprTypeClassicConditionsResultAssertionsBuilder) Build() (ExprTypeClassicConditionsResultAssertions, error)
- func (builder *ExprTypeClassicConditionsResultAssertionsBuilder) MaxFrames(maxFrames int64) *ExprTypeClassicConditionsResultAssertionsBuilder
- func (builder *ExprTypeClassicConditionsResultAssertionsBuilder) Type(typeArg TypeClassicConditionsType) *ExprTypeClassicConditionsResultAssertionsBuilder
- func (builder *ExprTypeClassicConditionsResultAssertionsBuilder) TypeVersion(typeVersion []int64) *ExprTypeClassicConditionsResultAssertionsBuilder
- type ExprTypeClassicConditionsTimeRange
- type ExprTypeClassicConditionsTimeRangeBuilder
- func (builder *ExprTypeClassicConditionsTimeRangeBuilder) Build() (ExprTypeClassicConditionsTimeRange, error)
- func (builder *ExprTypeClassicConditionsTimeRangeBuilder) From(from string) *ExprTypeClassicConditionsTimeRangeBuilder
- func (builder *ExprTypeClassicConditionsTimeRangeBuilder) To(to string) *ExprTypeClassicConditionsTimeRangeBuilder
- type ExprTypeMathResultAssertions
- type ExprTypeMathResultAssertionsBuilder
- func (builder *ExprTypeMathResultAssertionsBuilder) Build() (ExprTypeMathResultAssertions, error)
- func (builder *ExprTypeMathResultAssertionsBuilder) MaxFrames(maxFrames int64) *ExprTypeMathResultAssertionsBuilder
- func (builder *ExprTypeMathResultAssertionsBuilder) Type(typeArg TypeMathType) *ExprTypeMathResultAssertionsBuilder
- func (builder *ExprTypeMathResultAssertionsBuilder) TypeVersion(typeVersion []int64) *ExprTypeMathResultAssertionsBuilder
- type ExprTypeMathTimeRange
- type ExprTypeMathTimeRangeBuilder
- type ExprTypeReduceResultAssertions
- type ExprTypeReduceResultAssertionsBuilder
- func (builder *ExprTypeReduceResultAssertionsBuilder) Build() (ExprTypeReduceResultAssertions, error)
- func (builder *ExprTypeReduceResultAssertionsBuilder) MaxFrames(maxFrames int64) *ExprTypeReduceResultAssertionsBuilder
- func (builder *ExprTypeReduceResultAssertionsBuilder) Type(typeArg TypeReduceType) *ExprTypeReduceResultAssertionsBuilder
- func (builder *ExprTypeReduceResultAssertionsBuilder) TypeVersion(typeVersion []int64) *ExprTypeReduceResultAssertionsBuilder
- type ExprTypeReduceSettings
- type ExprTypeReduceSettingsBuilder
- func (builder *ExprTypeReduceSettingsBuilder) Build() (ExprTypeReduceSettings, error)
- func (builder *ExprTypeReduceSettingsBuilder) Mode(mode TypeReduceMode) *ExprTypeReduceSettingsBuilder
- func (builder *ExprTypeReduceSettingsBuilder) ReplaceWithValue(replaceWithValue float64) *ExprTypeReduceSettingsBuilder
- type ExprTypeReduceTimeRange
- type ExprTypeReduceTimeRangeBuilder
- type ExprTypeResampleResultAssertions
- type ExprTypeResampleResultAssertionsBuilder
- func (builder *ExprTypeResampleResultAssertionsBuilder) Build() (ExprTypeResampleResultAssertions, error)
- func (builder *ExprTypeResampleResultAssertionsBuilder) MaxFrames(maxFrames int64) *ExprTypeResampleResultAssertionsBuilder
- func (builder *ExprTypeResampleResultAssertionsBuilder) Type(typeArg TypeResampleType) *ExprTypeResampleResultAssertionsBuilder
- func (builder *ExprTypeResampleResultAssertionsBuilder) TypeVersion(typeVersion []int64) *ExprTypeResampleResultAssertionsBuilder
- type ExprTypeResampleTimeRange
- type ExprTypeResampleTimeRangeBuilder
- type ExprTypeSqlResultAssertions
- type ExprTypeSqlResultAssertionsBuilder
- func (builder *ExprTypeSqlResultAssertionsBuilder) Build() (ExprTypeSqlResultAssertions, error)
- func (builder *ExprTypeSqlResultAssertionsBuilder) MaxFrames(maxFrames int64) *ExprTypeSqlResultAssertionsBuilder
- func (builder *ExprTypeSqlResultAssertionsBuilder) Type(typeArg TypeSqlType) *ExprTypeSqlResultAssertionsBuilder
- func (builder *ExprTypeSqlResultAssertionsBuilder) TypeVersion(typeVersion []int64) *ExprTypeSqlResultAssertionsBuilder
- type ExprTypeSqlTimeRange
- type ExprTypeSqlTimeRangeBuilder
- type ExprTypeThresholdConditions
- type ExprTypeThresholdConditionsBuilder
- func (builder *ExprTypeThresholdConditionsBuilder) Build() (ExprTypeThresholdConditions, error)
- func (builder *ExprTypeThresholdConditionsBuilder) Evaluator(evaluator cog.Builder[ExprTypeThresholdConditionsEvaluator]) *ExprTypeThresholdConditionsBuilder
- func (builder *ExprTypeThresholdConditionsBuilder) LoadedDimensions(loadedDimensions any) *ExprTypeThresholdConditionsBuilder
- func (builder *ExprTypeThresholdConditionsBuilder) UnloadEvaluator(unloadEvaluator cog.Builder[ExprTypeThresholdConditionsUnloadEvaluator]) *ExprTypeThresholdConditionsBuilder
- type ExprTypeThresholdConditionsEvaluator
- type ExprTypeThresholdConditionsEvaluatorBuilder
- func (builder *ExprTypeThresholdConditionsEvaluatorBuilder) Build() (ExprTypeThresholdConditionsEvaluator, error)
- func (builder *ExprTypeThresholdConditionsEvaluatorBuilder) Params(params []float64) *ExprTypeThresholdConditionsEvaluatorBuilder
- func (builder *ExprTypeThresholdConditionsEvaluatorBuilder) Type(typeArg TypeThresholdType) *ExprTypeThresholdConditionsEvaluatorBuilder
- type ExprTypeThresholdConditionsUnloadEvaluator
- type ExprTypeThresholdConditionsUnloadEvaluatorBuilder
- func (builder *ExprTypeThresholdConditionsUnloadEvaluatorBuilder) Build() (ExprTypeThresholdConditionsUnloadEvaluator, error)
- func (builder *ExprTypeThresholdConditionsUnloadEvaluatorBuilder) Params(params []float64) *ExprTypeThresholdConditionsUnloadEvaluatorBuilder
- func (builder *ExprTypeThresholdConditionsUnloadEvaluatorBuilder) Type(typeArg TypeThresholdType) *ExprTypeThresholdConditionsUnloadEvaluatorBuilder
- type ExprTypeThresholdResultAssertions
- type ExprTypeThresholdResultAssertionsBuilder
- func (builder *ExprTypeThresholdResultAssertionsBuilder) Build() (ExprTypeThresholdResultAssertions, error)
- func (builder *ExprTypeThresholdResultAssertionsBuilder) MaxFrames(maxFrames int64) *ExprTypeThresholdResultAssertionsBuilder
- func (builder *ExprTypeThresholdResultAssertionsBuilder) Type(typeArg TypeThresholdType) *ExprTypeThresholdResultAssertionsBuilder
- func (builder *ExprTypeThresholdResultAssertionsBuilder) TypeVersion(typeVersion []int64) *ExprTypeThresholdResultAssertionsBuilder
- type ExprTypeThresholdTimeRange
- type ExprTypeThresholdTimeRangeBuilder
- type TypeClassicConditions
- func (resource TypeClassicConditions) DataqueryType() string
- func (resource TypeClassicConditions) Equals(otherCandidate variants.Dataquery) bool
- func (resource TypeClassicConditions) ImplementsDataqueryVariant()
- func (resource *TypeClassicConditions) UnmarshalJSONStrict(raw []byte) error
- func (resource TypeClassicConditions) Validate() error
- type TypeClassicConditionsBuilder
- func (builder *TypeClassicConditionsBuilder) Build() (variants.Dataquery, error)
- func (builder *TypeClassicConditionsBuilder) Conditions(conditions []cog.Builder[ExprTypeClassicConditionsConditions]) *TypeClassicConditionsBuilder
- func (builder *TypeClassicConditionsBuilder) Datasource(datasource dashboard.DataSourceRef) *TypeClassicConditionsBuilder
- func (builder *TypeClassicConditionsBuilder) Hide(hide bool) *TypeClassicConditionsBuilder
- func (builder *TypeClassicConditionsBuilder) IntervalMs(intervalMs float64) *TypeClassicConditionsBuilder
- func (builder *TypeClassicConditionsBuilder) MaxDataPoints(maxDataPoints int64) *TypeClassicConditionsBuilder
- func (builder *TypeClassicConditionsBuilder) QueryType(queryType string) *TypeClassicConditionsBuilder
- func (builder *TypeClassicConditionsBuilder) RefId(refId string) *TypeClassicConditionsBuilder
- func (builder *TypeClassicConditionsBuilder) ResultAssertions(resultAssertions cog.Builder[ExprTypeClassicConditionsResultAssertions]) *TypeClassicConditionsBuilder
- func (builder *TypeClassicConditionsBuilder) TimeRange(timeRange cog.Builder[ExprTypeClassicConditionsTimeRange]) *TypeClassicConditionsBuilder
- type TypeClassicConditionsType
- type TypeMath
- type TypeMathBuilder
- func (builder *TypeMathBuilder) Build() (variants.Dataquery, error)
- func (builder *TypeMathBuilder) Datasource(datasource dashboard.DataSourceRef) *TypeMathBuilder
- func (builder *TypeMathBuilder) Expression(expression string) *TypeMathBuilder
- func (builder *TypeMathBuilder) Hide(hide bool) *TypeMathBuilder
- func (builder *TypeMathBuilder) IntervalMs(intervalMs float64) *TypeMathBuilder
- func (builder *TypeMathBuilder) MaxDataPoints(maxDataPoints int64) *TypeMathBuilder
- func (builder *TypeMathBuilder) QueryType(queryType string) *TypeMathBuilder
- func (builder *TypeMathBuilder) RefId(refId string) *TypeMathBuilder
- func (builder *TypeMathBuilder) ResultAssertions(resultAssertions cog.Builder[ExprTypeMathResultAssertions]) *TypeMathBuilder
- func (builder *TypeMathBuilder) TimeRange(timeRange cog.Builder[ExprTypeMathTimeRange]) *TypeMathBuilder
- type TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql
- func (resource TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql) DataqueryType() string
- func (resource TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql) Equals(otherCandidate variants.Dataquery) bool
- func (resource TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql) ImplementsDataqueryVariant()
- func (resource TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql) MarshalJSON() ([]byte, error)
- func (resource *TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql) UnmarshalJSON(raw []byte) error
- func (resource *TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql) UnmarshalJSONStrict(raw []byte) error
- func (resource TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql) Validate() error
- type TypeMathType
- type TypeReduce
- type TypeReduceBuilder
- func (builder *TypeReduceBuilder) Build() (variants.Dataquery, error)
- func (builder *TypeReduceBuilder) Datasource(datasource dashboard.DataSourceRef) *TypeReduceBuilder
- func (builder *TypeReduceBuilder) Expression(expression string) *TypeReduceBuilder
- func (builder *TypeReduceBuilder) Hide(hide bool) *TypeReduceBuilder
- func (builder *TypeReduceBuilder) IntervalMs(intervalMs float64) *TypeReduceBuilder
- func (builder *TypeReduceBuilder) MaxDataPoints(maxDataPoints int64) *TypeReduceBuilder
- func (builder *TypeReduceBuilder) QueryType(queryType string) *TypeReduceBuilder
- func (builder *TypeReduceBuilder) Reducer(reducer TypeReduceReducer) *TypeReduceBuilder
- func (builder *TypeReduceBuilder) RefId(refId string) *TypeReduceBuilder
- func (builder *TypeReduceBuilder) ResultAssertions(resultAssertions cog.Builder[ExprTypeReduceResultAssertions]) *TypeReduceBuilder
- func (builder *TypeReduceBuilder) Settings(settings cog.Builder[ExprTypeReduceSettings]) *TypeReduceBuilder
- func (builder *TypeReduceBuilder) TimeRange(timeRange cog.Builder[ExprTypeReduceTimeRange]) *TypeReduceBuilder
- type TypeReduceMode
- type TypeReduceReducer
- type TypeReduceType
- type TypeResample
- type TypeResampleBuilder
- func (builder *TypeResampleBuilder) Build() (variants.Dataquery, error)
- func (builder *TypeResampleBuilder) Datasource(datasource dashboard.DataSourceRef) *TypeResampleBuilder
- func (builder *TypeResampleBuilder) Downsampler(downsampler TypeResampleDownsampler) *TypeResampleBuilder
- func (builder *TypeResampleBuilder) Expression(expression string) *TypeResampleBuilder
- func (builder *TypeResampleBuilder) Hide(hide bool) *TypeResampleBuilder
- func (builder *TypeResampleBuilder) IntervalMs(intervalMs float64) *TypeResampleBuilder
- func (builder *TypeResampleBuilder) MaxDataPoints(maxDataPoints int64) *TypeResampleBuilder
- func (builder *TypeResampleBuilder) QueryType(queryType string) *TypeResampleBuilder
- func (builder *TypeResampleBuilder) RefId(refId string) *TypeResampleBuilder
- func (builder *TypeResampleBuilder) ResultAssertions(resultAssertions cog.Builder[ExprTypeResampleResultAssertions]) *TypeResampleBuilder
- func (builder *TypeResampleBuilder) TimeRange(timeRange cog.Builder[ExprTypeResampleTimeRange]) *TypeResampleBuilder
- func (builder *TypeResampleBuilder) Upsampler(upsampler TypeResampleUpsampler) *TypeResampleBuilder
- func (builder *TypeResampleBuilder) Window(window string) *TypeResampleBuilder
- type TypeResampleDownsampler
- type TypeResampleType
- type TypeResampleUpsampler
- type TypeSql
- type TypeSqlBuilder
- func (builder *TypeSqlBuilder) Build() (variants.Dataquery, error)
- func (builder *TypeSqlBuilder) Datasource(datasource dashboard.DataSourceRef) *TypeSqlBuilder
- func (builder *TypeSqlBuilder) Expression(expression string) *TypeSqlBuilder
- func (builder *TypeSqlBuilder) Hide(hide bool) *TypeSqlBuilder
- func (builder *TypeSqlBuilder) IntervalMs(intervalMs float64) *TypeSqlBuilder
- func (builder *TypeSqlBuilder) MaxDataPoints(maxDataPoints int64) *TypeSqlBuilder
- func (builder *TypeSqlBuilder) QueryType(queryType string) *TypeSqlBuilder
- func (builder *TypeSqlBuilder) RefId(refId string) *TypeSqlBuilder
- func (builder *TypeSqlBuilder) ResultAssertions(resultAssertions cog.Builder[ExprTypeSqlResultAssertions]) *TypeSqlBuilder
- func (builder *TypeSqlBuilder) TimeRange(timeRange cog.Builder[ExprTypeSqlTimeRange]) *TypeSqlBuilder
- type TypeSqlType
- type TypeThreshold
- func (resource TypeThreshold) DataqueryType() string
- func (resource TypeThreshold) Equals(otherCandidate variants.Dataquery) bool
- func (resource TypeThreshold) ImplementsDataqueryVariant()
- func (resource *TypeThreshold) UnmarshalJSONStrict(raw []byte) error
- func (resource TypeThreshold) Validate() error
- type TypeThresholdBuilder
- func (builder *TypeThresholdBuilder) Build() (variants.Dataquery, error)
- func (builder *TypeThresholdBuilder) Conditions(conditions []cog.Builder[ExprTypeThresholdConditions]) *TypeThresholdBuilder
- func (builder *TypeThresholdBuilder) Datasource(datasource dashboard.DataSourceRef) *TypeThresholdBuilder
- func (builder *TypeThresholdBuilder) Expression(expression string) *TypeThresholdBuilder
- func (builder *TypeThresholdBuilder) Hide(hide bool) *TypeThresholdBuilder
- func (builder *TypeThresholdBuilder) IntervalMs(intervalMs float64) *TypeThresholdBuilder
- func (builder *TypeThresholdBuilder) MaxDataPoints(maxDataPoints int64) *TypeThresholdBuilder
- func (builder *TypeThresholdBuilder) QueryType(queryType string) *TypeThresholdBuilder
- func (builder *TypeThresholdBuilder) RefId(refId string) *TypeThresholdBuilder
- func (builder *TypeThresholdBuilder) ResultAssertions(resultAssertions cog.Builder[ExprTypeThresholdResultAssertions]) *TypeThresholdBuilder
- func (builder *TypeThresholdBuilder) TimeRange(timeRange cog.Builder[ExprTypeThresholdTimeRange]) *TypeThresholdBuilder
- type TypeThresholdType
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 ¶
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 ¶
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 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 ¶
func (resource ExprTypeClassicConditionsConditions) Equals(other ExprTypeClassicConditionsConditions) bool
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 ¶
func (builder *ExprTypeClassicConditionsConditionsBuilder) Build() (ExprTypeClassicConditionsConditions, error)
func (*ExprTypeClassicConditionsConditionsBuilder) Evaluator ¶
func (builder *ExprTypeClassicConditionsConditionsBuilder) Evaluator(evaluator cog.Builder[ExprTypeClassicConditionsConditionsEvaluator]) *ExprTypeClassicConditionsConditionsBuilder
func (*ExprTypeClassicConditionsConditionsBuilder) Operator ¶
func (builder *ExprTypeClassicConditionsConditionsBuilder) Operator(operator cog.Builder[ExprTypeClassicConditionsConditionsOperator]) *ExprTypeClassicConditionsConditionsBuilder
func (*ExprTypeClassicConditionsConditionsBuilder) Query ¶
func (builder *ExprTypeClassicConditionsConditionsBuilder) Query(query cog.Builder[ExprTypeClassicConditionsConditionsQuery]) *ExprTypeClassicConditionsConditionsBuilder
func (*ExprTypeClassicConditionsConditionsBuilder) Reducer ¶
func (builder *ExprTypeClassicConditionsConditionsBuilder) Reducer(reducer cog.Builder[ExprTypeClassicConditionsConditionsReducer]) *ExprTypeClassicConditionsConditionsBuilder
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 ¶
func (resource ExprTypeClassicConditionsConditionsEvaluator) Equals(other ExprTypeClassicConditionsConditionsEvaluator) bool
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 ¶
func (resource ExprTypeClassicConditionsConditionsEvaluator) Validate() error
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 (builder *ExprTypeClassicConditionsConditionsEvaluatorBuilder) Build() (ExprTypeClassicConditionsConditionsEvaluator, error)
func (*ExprTypeClassicConditionsConditionsEvaluatorBuilder) Params ¶
func (builder *ExprTypeClassicConditionsConditionsEvaluatorBuilder) Params(params []float64) *ExprTypeClassicConditionsConditionsEvaluatorBuilder
func (*ExprTypeClassicConditionsConditionsEvaluatorBuilder) Type ¶
func (builder *ExprTypeClassicConditionsConditionsEvaluatorBuilder) Type(typeArg string) *ExprTypeClassicConditionsConditionsEvaluatorBuilder
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 ¶
func (resource ExprTypeClassicConditionsConditionsOperator) Equals(other ExprTypeClassicConditionsConditionsOperator) bool
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 ¶
func (resource ExprTypeClassicConditionsConditionsOperator) Validate() error
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 (builder *ExprTypeClassicConditionsConditionsOperatorBuilder) Build() (ExprTypeClassicConditionsConditionsOperator, error)
func (*ExprTypeClassicConditionsConditionsOperatorBuilder) Type ¶
func (builder *ExprTypeClassicConditionsConditionsOperatorBuilder) Type(typeArg TypeClassicConditionsType) *ExprTypeClassicConditionsConditionsOperatorBuilder
type ExprTypeClassicConditionsConditionsQuery ¶
type ExprTypeClassicConditionsConditionsQuery struct {
Params []string `json:"params"`
}
func NewExprTypeClassicConditionsConditionsQuery ¶
func NewExprTypeClassicConditionsConditionsQuery() *ExprTypeClassicConditionsConditionsQuery
NewExprTypeClassicConditionsConditionsQuery creates a new ExprTypeClassicConditionsConditionsQuery object.
func (ExprTypeClassicConditionsConditionsQuery) Equals ¶
func (resource ExprTypeClassicConditionsConditionsQuery) Equals(other ExprTypeClassicConditionsConditionsQuery) bool
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 (builder *ExprTypeClassicConditionsConditionsQueryBuilder) Build() (ExprTypeClassicConditionsConditionsQuery, error)
func (*ExprTypeClassicConditionsConditionsQueryBuilder) Params ¶
func (builder *ExprTypeClassicConditionsConditionsQueryBuilder) Params(params []string) *ExprTypeClassicConditionsConditionsQueryBuilder
type ExprTypeClassicConditionsConditionsReducer ¶
type ExprTypeClassicConditionsConditionsReducer struct {
Type string `json:"type"`
}
func NewExprTypeClassicConditionsConditionsReducer ¶
func NewExprTypeClassicConditionsConditionsReducer() *ExprTypeClassicConditionsConditionsReducer
NewExprTypeClassicConditionsConditionsReducer creates a new ExprTypeClassicConditionsConditionsReducer object.
func (ExprTypeClassicConditionsConditionsReducer) Equals ¶
func (resource ExprTypeClassicConditionsConditionsReducer) Equals(other ExprTypeClassicConditionsConditionsReducer) bool
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 ¶
func (resource ExprTypeClassicConditionsConditionsReducer) Validate() error
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 (builder *ExprTypeClassicConditionsConditionsReducerBuilder) Build() (ExprTypeClassicConditionsConditionsReducer, error)
func (*ExprTypeClassicConditionsConditionsReducerBuilder) Type ¶
func (builder *ExprTypeClassicConditionsConditionsReducerBuilder) Type(typeArg string) *ExprTypeClassicConditionsConditionsReducerBuilder
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 ¶
func (resource ExprTypeClassicConditionsResultAssertions) Equals(other ExprTypeClassicConditionsResultAssertions) bool
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 ¶
func (resource ExprTypeClassicConditionsResultAssertions) Validate() error
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 (builder *ExprTypeClassicConditionsResultAssertionsBuilder) Build() (ExprTypeClassicConditionsResultAssertions, error)
func (*ExprTypeClassicConditionsResultAssertionsBuilder) MaxFrames ¶
func (builder *ExprTypeClassicConditionsResultAssertionsBuilder) MaxFrames(maxFrames int64) *ExprTypeClassicConditionsResultAssertionsBuilder
Maximum frame count
func (*ExprTypeClassicConditionsResultAssertionsBuilder) Type ¶
func (builder *ExprTypeClassicConditionsResultAssertionsBuilder) Type(typeArg TypeClassicConditionsType) *ExprTypeClassicConditionsResultAssertionsBuilder
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 ¶
func (builder *ExprTypeClassicConditionsResultAssertionsBuilder) TypeVersion(typeVersion []int64) *ExprTypeClassicConditionsResultAssertionsBuilder
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 ¶
func (resource ExprTypeClassicConditionsTimeRange) Equals(other ExprTypeClassicConditionsTimeRange) bool
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 (builder *ExprTypeClassicConditionsTimeRangeBuilder) Build() (ExprTypeClassicConditionsTimeRange, error)
func (*ExprTypeClassicConditionsTimeRangeBuilder) From ¶
func (builder *ExprTypeClassicConditionsTimeRangeBuilder) From(from string) *ExprTypeClassicConditionsTimeRangeBuilder
From is the start time of the query.
func (*ExprTypeClassicConditionsTimeRangeBuilder) To ¶
func (builder *ExprTypeClassicConditionsTimeRangeBuilder) To(to string) *ExprTypeClassicConditionsTimeRangeBuilder
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 ¶
func (resource ExprTypeMathResultAssertions) Equals(other ExprTypeMathResultAssertions) bool
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 (builder *ExprTypeMathResultAssertionsBuilder) Build() (ExprTypeMathResultAssertions, error)
func (*ExprTypeMathResultAssertionsBuilder) MaxFrames ¶
func (builder *ExprTypeMathResultAssertionsBuilder) MaxFrames(maxFrames int64) *ExprTypeMathResultAssertionsBuilder
Maximum frame count
func (*ExprTypeMathResultAssertionsBuilder) Type ¶
func (builder *ExprTypeMathResultAssertionsBuilder) Type(typeArg TypeMathType) *ExprTypeMathResultAssertionsBuilder
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 ¶
func (builder *ExprTypeMathResultAssertionsBuilder) TypeVersion(typeVersion []int64) *ExprTypeMathResultAssertionsBuilder
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 (builder *ExprTypeMathTimeRangeBuilder) Build() (ExprTypeMathTimeRange, error)
func (*ExprTypeMathTimeRangeBuilder) From ¶
func (builder *ExprTypeMathTimeRangeBuilder) From(from string) *ExprTypeMathTimeRangeBuilder
From is the start time of the query.
func (*ExprTypeMathTimeRangeBuilder) To ¶
func (builder *ExprTypeMathTimeRangeBuilder) To(to string) *ExprTypeMathTimeRangeBuilder
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 ¶
func (resource ExprTypeReduceResultAssertions) Equals(other ExprTypeReduceResultAssertions) bool
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 (builder *ExprTypeReduceResultAssertionsBuilder) Build() (ExprTypeReduceResultAssertions, error)
func (*ExprTypeReduceResultAssertionsBuilder) MaxFrames ¶
func (builder *ExprTypeReduceResultAssertionsBuilder) MaxFrames(maxFrames int64) *ExprTypeReduceResultAssertionsBuilder
Maximum frame count
func (*ExprTypeReduceResultAssertionsBuilder) Type ¶
func (builder *ExprTypeReduceResultAssertionsBuilder) Type(typeArg TypeReduceType) *ExprTypeReduceResultAssertionsBuilder
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 ¶
func (builder *ExprTypeReduceResultAssertionsBuilder) TypeVersion(typeVersion []int64) *ExprTypeReduceResultAssertionsBuilder
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 (builder *ExprTypeReduceSettingsBuilder) Build() (ExprTypeReduceSettings, error)
func (*ExprTypeReduceSettingsBuilder) Mode ¶
func (builder *ExprTypeReduceSettingsBuilder) Mode(mode TypeReduceMode) *ExprTypeReduceSettingsBuilder
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 (builder *ExprTypeReduceTimeRangeBuilder) Build() (ExprTypeReduceTimeRange, error)
func (*ExprTypeReduceTimeRangeBuilder) From ¶
func (builder *ExprTypeReduceTimeRangeBuilder) From(from string) *ExprTypeReduceTimeRangeBuilder
From is the start time of the query.
func (*ExprTypeReduceTimeRangeBuilder) To ¶
func (builder *ExprTypeReduceTimeRangeBuilder) To(to string) *ExprTypeReduceTimeRangeBuilder
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 ¶
func (resource ExprTypeResampleResultAssertions) Equals(other ExprTypeResampleResultAssertions) bool
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 (builder *ExprTypeResampleResultAssertionsBuilder) Build() (ExprTypeResampleResultAssertions, error)
func (*ExprTypeResampleResultAssertionsBuilder) MaxFrames ¶
func (builder *ExprTypeResampleResultAssertionsBuilder) MaxFrames(maxFrames int64) *ExprTypeResampleResultAssertionsBuilder
Maximum frame count
func (*ExprTypeResampleResultAssertionsBuilder) Type ¶
func (builder *ExprTypeResampleResultAssertionsBuilder) Type(typeArg TypeResampleType) *ExprTypeResampleResultAssertionsBuilder
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 ¶
func (builder *ExprTypeResampleResultAssertionsBuilder) TypeVersion(typeVersion []int64) *ExprTypeResampleResultAssertionsBuilder
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 ¶
func (resource ExprTypeResampleTimeRange) Equals(other ExprTypeResampleTimeRange) bool
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 (builder *ExprTypeResampleTimeRangeBuilder) Build() (ExprTypeResampleTimeRange, error)
func (*ExprTypeResampleTimeRangeBuilder) From ¶
func (builder *ExprTypeResampleTimeRangeBuilder) From(from string) *ExprTypeResampleTimeRangeBuilder
From is the start time of the query.
func (*ExprTypeResampleTimeRangeBuilder) To ¶
func (builder *ExprTypeResampleTimeRangeBuilder) To(to string) *ExprTypeResampleTimeRangeBuilder
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 ¶
func (resource ExprTypeSqlResultAssertions) Equals(other ExprTypeSqlResultAssertions) bool
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 (builder *ExprTypeSqlResultAssertionsBuilder) Build() (ExprTypeSqlResultAssertions, error)
func (*ExprTypeSqlResultAssertionsBuilder) MaxFrames ¶
func (builder *ExprTypeSqlResultAssertionsBuilder) MaxFrames(maxFrames int64) *ExprTypeSqlResultAssertionsBuilder
Maximum frame count
func (*ExprTypeSqlResultAssertionsBuilder) Type ¶
func (builder *ExprTypeSqlResultAssertionsBuilder) Type(typeArg TypeSqlType) *ExprTypeSqlResultAssertionsBuilder
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 ¶
func (builder *ExprTypeSqlResultAssertionsBuilder) TypeVersion(typeVersion []int64) *ExprTypeSqlResultAssertionsBuilder
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 (builder *ExprTypeSqlTimeRangeBuilder) Build() (ExprTypeSqlTimeRange, error)
func (*ExprTypeSqlTimeRangeBuilder) From ¶
func (builder *ExprTypeSqlTimeRangeBuilder) From(from string) *ExprTypeSqlTimeRangeBuilder
From is the start time of the query.
func (*ExprTypeSqlTimeRangeBuilder) To ¶
func (builder *ExprTypeSqlTimeRangeBuilder) To(to string) *ExprTypeSqlTimeRangeBuilder
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 ¶
func (resource ExprTypeThresholdConditions) Equals(other ExprTypeThresholdConditions) bool
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 (builder *ExprTypeThresholdConditionsBuilder) Build() (ExprTypeThresholdConditions, error)
func (*ExprTypeThresholdConditionsBuilder) Evaluator ¶
func (builder *ExprTypeThresholdConditionsBuilder) Evaluator(evaluator cog.Builder[ExprTypeThresholdConditionsEvaluator]) *ExprTypeThresholdConditionsBuilder
func (*ExprTypeThresholdConditionsBuilder) LoadedDimensions ¶
func (builder *ExprTypeThresholdConditionsBuilder) LoadedDimensions(loadedDimensions any) *ExprTypeThresholdConditionsBuilder
func (*ExprTypeThresholdConditionsBuilder) UnloadEvaluator ¶
func (builder *ExprTypeThresholdConditionsBuilder) UnloadEvaluator(unloadEvaluator cog.Builder[ExprTypeThresholdConditionsUnloadEvaluator]) *ExprTypeThresholdConditionsBuilder
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 ¶
func (resource ExprTypeThresholdConditionsEvaluator) Equals(other ExprTypeThresholdConditionsEvaluator) bool
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 (builder *ExprTypeThresholdConditionsEvaluatorBuilder) Build() (ExprTypeThresholdConditionsEvaluator, error)
func (*ExprTypeThresholdConditionsEvaluatorBuilder) Params ¶
func (builder *ExprTypeThresholdConditionsEvaluatorBuilder) Params(params []float64) *ExprTypeThresholdConditionsEvaluatorBuilder
func (*ExprTypeThresholdConditionsEvaluatorBuilder) Type ¶
func (builder *ExprTypeThresholdConditionsEvaluatorBuilder) Type(typeArg TypeThresholdType) *ExprTypeThresholdConditionsEvaluatorBuilder
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 ¶
func (resource ExprTypeThresholdConditionsUnloadEvaluator) Equals(other ExprTypeThresholdConditionsUnloadEvaluator) bool
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 ¶
func (resource ExprTypeThresholdConditionsUnloadEvaluator) Validate() error
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 (builder *ExprTypeThresholdConditionsUnloadEvaluatorBuilder) Build() (ExprTypeThresholdConditionsUnloadEvaluator, error)
func (*ExprTypeThresholdConditionsUnloadEvaluatorBuilder) Params ¶
func (builder *ExprTypeThresholdConditionsUnloadEvaluatorBuilder) Params(params []float64) *ExprTypeThresholdConditionsUnloadEvaluatorBuilder
func (*ExprTypeThresholdConditionsUnloadEvaluatorBuilder) Type ¶
func (builder *ExprTypeThresholdConditionsUnloadEvaluatorBuilder) Type(typeArg TypeThresholdType) *ExprTypeThresholdConditionsUnloadEvaluatorBuilder
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 ¶
func (resource ExprTypeThresholdResultAssertions) Equals(other ExprTypeThresholdResultAssertions) bool
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 (builder *ExprTypeThresholdResultAssertionsBuilder) Build() (ExprTypeThresholdResultAssertions, error)
func (*ExprTypeThresholdResultAssertionsBuilder) MaxFrames ¶
func (builder *ExprTypeThresholdResultAssertionsBuilder) MaxFrames(maxFrames int64) *ExprTypeThresholdResultAssertionsBuilder
Maximum frame count
func (*ExprTypeThresholdResultAssertionsBuilder) Type ¶
func (builder *ExprTypeThresholdResultAssertionsBuilder) Type(typeArg TypeThresholdType) *ExprTypeThresholdResultAssertionsBuilder
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 ¶
func (builder *ExprTypeThresholdResultAssertionsBuilder) TypeVersion(typeVersion []int64) *ExprTypeThresholdResultAssertionsBuilder
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 ¶
func (resource ExprTypeThresholdTimeRange) Equals(other ExprTypeThresholdTimeRange) bool
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 (builder *ExprTypeThresholdTimeRangeBuilder) Build() (ExprTypeThresholdTimeRange, error)
func (*ExprTypeThresholdTimeRangeBuilder) From ¶
func (builder *ExprTypeThresholdTimeRangeBuilder) From(from string) *ExprTypeThresholdTimeRangeBuilder
From is the start time of the query.
func (*ExprTypeThresholdTimeRangeBuilder) To ¶
func (builder *ExprTypeThresholdTimeRangeBuilder) To(to string) *ExprTypeThresholdTimeRangeBuilder
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 (builder *TypeClassicConditionsBuilder) Build() (variants.Dataquery, error)
func (*TypeClassicConditionsBuilder) Conditions ¶
func (builder *TypeClassicConditionsBuilder) Conditions(conditions []cog.Builder[ExprTypeClassicConditionsConditions]) *TypeClassicConditionsBuilder
func (*TypeClassicConditionsBuilder) Datasource ¶
func (builder *TypeClassicConditionsBuilder) Datasource(datasource dashboard.DataSourceRef) *TypeClassicConditionsBuilder
The datasource
func (*TypeClassicConditionsBuilder) Hide ¶
func (builder *TypeClassicConditionsBuilder) Hide(hide bool) *TypeClassicConditionsBuilder
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 ¶
func (builder *TypeClassicConditionsBuilder) RefId(refId string) *TypeClassicConditionsBuilder
RefID is the unique identifier of the query, set by the frontend call.
func (*TypeClassicConditionsBuilder) ResultAssertions ¶
func (builder *TypeClassicConditionsBuilder) ResultAssertions(resultAssertions cog.Builder[ExprTypeClassicConditionsResultAssertions]) *TypeClassicConditionsBuilder
Optionally define expected query result behavior
func (*TypeClassicConditionsBuilder) TimeRange ¶
func (builder *TypeClassicConditionsBuilder) TimeRange(timeRange cog.Builder[ExprTypeClassicConditionsTimeRange]) *TypeClassicConditionsBuilder
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 (TypeMath) DataqueryType ¶
func (TypeMath) ImplementsDataqueryVariant ¶
func (resource TypeMath) ImplementsDataqueryVariant()
func (*TypeMath) UnmarshalJSONStrict ¶
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, …
type TypeMathBuilder ¶
type TypeMathBuilder struct {
// contains filtered or unexported fields
}
func NewTypeMathBuilder ¶
func NewTypeMathBuilder() *TypeMathBuilder
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 (resource TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql) DataqueryType() string
func (TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql) Equals ¶
func (resource TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql) Equals(otherCandidate variants.Dataquery) bool
Equals tests the equality of two dataqueries.
func (TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql) ImplementsDataqueryVariant ¶
func (resource TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql) ImplementsDataqueryVariant()
func (TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql) MarshalJSON ¶
func (resource TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql) MarshalJSON() ([]byte, error)
MarshalJSON implements a custom JSON marshalling logic to encode `TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql` as JSON.
func (*TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql) UnmarshalJSON ¶
func (resource *TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql) UnmarshalJSON(raw []byte) error
UnmarshalJSON implements a custom JSON unmarshalling logic to decode `TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql` from JSON.
func (*TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql) UnmarshalJSONStrict ¶
func (resource *TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql) UnmarshalJSONStrict(raw []byte) error
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 ¶
func (resource TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql) Validate() error
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 ¶
func (builder *TypeReduceBuilder) Settings(settings cog.Builder[ExprTypeReduceSettings]) *TypeReduceBuilder
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 ¶
func (builder *TypeResampleBuilder) TimeRange(timeRange cog.Builder[ExprTypeResampleTimeRange]) *TypeResampleBuilder
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 (TypeSql) DataqueryType ¶
func (TypeSql) ImplementsDataqueryVariant ¶
func (resource TypeSql) ImplementsDataqueryVariant()
func (*TypeSql) UnmarshalJSONStrict ¶
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, …
type TypeSqlBuilder ¶
type TypeSqlBuilder struct {
// contains filtered or unexported fields
}
func NewTypeSqlBuilder ¶
func NewTypeSqlBuilder() *TypeSqlBuilder
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 ¶
func (builder *TypeThresholdBuilder) Conditions(conditions []cog.Builder[ExprTypeThresholdConditions]) *TypeThresholdBuilder
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 ¶
func (builder *TypeThresholdBuilder) TimeRange(timeRange cog.Builder[ExprTypeThresholdTimeRange]) *TypeThresholdBuilder
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 ¶
- exprtypeclassicconditionsconditions_builder_gen.go
- exprtypeclassicconditionsconditions_converter_gen.go
- exprtypeclassicconditionsconditionsevaluator_builder_gen.go
- exprtypeclassicconditionsconditionsevaluator_converter_gen.go
- exprtypeclassicconditionsconditionsoperator_builder_gen.go
- exprtypeclassicconditionsconditionsoperator_converter_gen.go
- exprtypeclassicconditionsconditionsquery_builder_gen.go
- exprtypeclassicconditionsconditionsquery_converter_gen.go
- exprtypeclassicconditionsconditionsreducer_builder_gen.go
- exprtypeclassicconditionsconditionsreducer_converter_gen.go
- exprtypeclassicconditionsresultassertions_builder_gen.go
- exprtypeclassicconditionsresultassertions_converter_gen.go
- exprtypeclassicconditionstimerange_builder_gen.go
- exprtypeclassicconditionstimerange_converter_gen.go
- exprtypemathresultassertions_builder_gen.go
- exprtypemathresultassertions_converter_gen.go
- exprtypemathtimerange_builder_gen.go
- exprtypemathtimerange_converter_gen.go
- exprtypereduceresultassertions_builder_gen.go
- exprtypereduceresultassertions_converter_gen.go
- exprtypereducesettings_builder_gen.go
- exprtypereducesettings_converter_gen.go
- exprtypereducetimerange_builder_gen.go
- exprtypereducetimerange_converter_gen.go
- exprtyperesampleresultassertions_builder_gen.go
- exprtyperesampleresultassertions_converter_gen.go
- exprtyperesampletimerange_builder_gen.go
- exprtyperesampletimerange_converter_gen.go
- exprtypesqlresultassertions_builder_gen.go
- exprtypesqlresultassertions_converter_gen.go
- exprtypesqltimerange_builder_gen.go
- exprtypesqltimerange_converter_gen.go
- exprtypethresholdconditions_builder_gen.go
- exprtypethresholdconditions_converter_gen.go
- exprtypethresholdconditionsevaluator_builder_gen.go
- exprtypethresholdconditionsevaluator_converter_gen.go
- exprtypethresholdconditionsunloadevaluator_builder_gen.go
- exprtypethresholdconditionsunloadevaluator_converter_gen.go
- exprtypethresholdresultassertions_builder_gen.go
- exprtypethresholdresultassertions_converter_gen.go
- exprtypethresholdtimerange_builder_gen.go
- exprtypethresholdtimerange_converter_gen.go
- typeclassicconditions_builder_gen.go
- typeclassicconditions_converter_gen.go
- typemath_builder_gen.go
- typemath_converter_gen.go
- typereduce_builder_gen.go
- typereduce_converter_gen.go
- typeresample_builder_gen.go
- typeresample_converter_gen.go
- types_gen.go
- typesql_builder_gen.go
- typesql_converter_gen.go
- typethreshold_builder_gen.go
- typethreshold_converter_gen.go