Skip to content

MonitorQueryBuilder🔗

Constructor🔗

new MonitorQueryBuilder()

Methods🔗

build🔗

Builds the object.

public MonitorQuery build()

azureLogAnalytics🔗

Azure Monitor Logs sub-query properties.

public MonitorQueryBuilder azureLogAnalytics(com.grafana.foundation.cog.Builder<LogsQuery> azureLogAnalytics)

azureMonitor🔗

Azure Monitor Metrics sub-query properties.

public MonitorQueryBuilder azureMonitor(com.grafana.foundation.cog.Builder<MetricQuery> azureMonitor)

azureResourceGraph🔗

Azure Resource Graph sub-query properties.

public MonitorQueryBuilder azureResourceGraph(com.grafana.foundation.cog.Builder<ResourceGraphQuery> azureResourceGraph)

azureTraces🔗

Application Insights Traces sub-query properties.

public MonitorQueryBuilder azureTraces(com.grafana.foundation.cog.Builder<TracesQuery> azureTraces)

customNamespace🔗

Custom namespace used in template variable queries

public MonitorQueryBuilder customNamespace(String customNamespace)

datasource🔗

For mixed data sources the selected datasource is on the query level.

For non mixed scenarios this is undefined.

TODO find a better way to do this ^ that's friendly to schema

TODO this shouldn't be unknown but DataSourceRef | null

public MonitorQueryBuilder datasource(Object datasource)

grafanaTemplateVariableFn🔗

@deprecated Legacy template variable support.

public MonitorQueryBuilder grafanaTemplateVariableFn(GrafanaTemplateVariableQuery grafanaTemplateVariableFn)

hide🔗

If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.

public MonitorQueryBuilder hide(Boolean hide)

namespace🔗

Namespace used in template variable queries

public MonitorQueryBuilder namespace(String namespace)

query🔗

Used only for exemplar queries from Prometheus

public MonitorQueryBuilder query(String query)

queryType🔗

Specify the query flavor

TODO make this required and give it a default

public MonitorQueryBuilder queryType(String queryType)

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.

public MonitorQueryBuilder refId(String refId)

region🔗

Region used in template variable queries

public MonitorQueryBuilder region(String region)

resource🔗

Resource used in template variable queries

public MonitorQueryBuilder resource(String resource)

resourceGroup🔗

Resource group used in template variable queries

public MonitorQueryBuilder resourceGroup(String resourceGroup)

subscription🔗

Azure subscription containing the resource(s) to be queried.

Also used for template variable queries

public MonitorQueryBuilder subscription(String subscription)

subscriptions🔗

Subscriptions to be queried via Azure Resource Graph.

public MonitorQueryBuilder subscriptions(List<String> subscriptions)

See also🔗