DataQueryKind🔗
Definition🔗
type DataQueryKind struct {
Kind string `json:"kind"`
Group string `json:"group"`
Version string `json:"version"`
Labels map[string]string `json:"labels,omitempty"`
// 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 *dashboardv2.Dashboardv2DataQueryKindDatasource `json:"datasource,omitempty"`
Spec any `json:"spec"`
}
Methods🔗
UnmarshalJSON🔗
UnmarshalJSON implements a custom JSON unmarshalling logic to decode DataQueryKind from JSON.
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, …
Equals🔗
Equals tests the equality of two DataQueryKind objects.
Validate🔗
Validate checks all the validation constraints that may be defined on DataQueryKind fields for violations and returns them.
See also🔗
- athena.QueryV2Builder
- azuremonitor.QueryV2Builder
- bigquery.QueryV2Builder
- cloudwatch.QueryV2Builder
- datasource.QueryV2Builder
- elasticsearch.QueryV2Builder
- expr.QueryV2Builder
- googlecloudmonitoring.QueryV2Builder
- grafanapyroscope.QueryV2Builder
- loki.QueryV2Builder
- parca.QueryV2Builder
- prometheus.QueryV2Builder
- tempo.QueryV2Builder
- testdata.QueryV2Builder