Skip to content

DataQueryKind🔗

Definition🔗

type DataQueryKind struct {
    Kind string `json:"kind"`
    Group string `json:"group"`
    Version string `json:"version"`
    // New type for datasource reference
    // Not creating a new type until we figure out how to handle DS refs for group by, adhoc, and every place that uses DataSourceRef in TS.
    Datasource *dashboardv2beta1.Dashboardv2beta1DataQueryKindDatasource `json:"datasource,omitempty"`
    Spec any `json:"spec"`
}

Methods🔗

UnmarshalJSON🔗

UnmarshalJSON implements a custom JSON unmarshalling logic to decode DataQueryKind from JSON.

func (dataQueryKind *DataQueryKind) UnmarshalJSON(raw []byte) error

UnmarshalJSONStrict🔗

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode DataQueryKind 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 (dataQueryKind *DataQueryKind) UnmarshalJSONStrict(raw []byte) error

Equals🔗

Equals tests the equality of two DataQueryKind objects.

func (dataQueryKind *DataQueryKind) Equals(other DataQueryKind) bool

Validate🔗

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

func (dataQueryKind *DataQueryKind) Validate() error

See also🔗