Skip to content

ExprTypeReduceResultAssertions🔗

Definition🔗

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 *expr.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"`
}

Methods🔗

UnmarshalJSONStrict🔗

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 *ExprTypeReduceResultAssertions) UnmarshalJSONStrict(raw []byte) error

Equals🔗

Equals tests the equality of two ExprTypeReduceResultAssertions objects.

func (exprTypeReduceResultAssertions *ExprTypeReduceResultAssertions) Equals(other ExprTypeReduceResultAssertions) bool

Validate🔗

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

func (exprTypeReduceResultAssertions *ExprTypeReduceResultAssertions) Validate() error

See also🔗