QueryV2Builder🔗
Constructor🔗
Methods🔗
Build🔗
Builds the object.
Datasource🔗
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.
func (builder *QueryV2Builder) Datasource(datasource cog.Builder[dashboardv2.Dashboardv2DataQueryKindDatasource]) *QueryV2Builder
Hide🔗
If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.
Labels🔗
PanelId🔗
Panel ID from wich the queries will be reused.
QueryType🔗
Specify the query flavor
TODO make this required and give it a default
RefId🔗
A unique identifier for the query within the list of targets.
In server side expressions, the refId is used as a variable name to identify results.
By default, the UI will assign A->Z; however setting meaningful names may be useful.