Skip to content

AzureMonitorQueryBuilder🔗

Constructor🔗

new AzureMonitorQueryBuilder()

Methods🔗

build🔗

Builds the object.

public AzureMonitorQuery build()

azureLogAnalytics🔗

Azure Monitor Logs sub-query properties.

public AzureMonitorQueryBuilder azureLogAnalytics(com.grafana.foundation.cog.Builder<AzureLogsQuery> azureLogAnalytics)

azureMonitor🔗

Azure Monitor Metrics sub-query properties.

public AzureMonitorQueryBuilder azureMonitor(com.grafana.foundation.cog.Builder<AzureMetricQuery> azureMonitor)

azureResourceGraph🔗

Azure Resource Graph sub-query properties.

public AzureMonitorQueryBuilder azureResourceGraph(com.grafana.foundation.cog.Builder<AzureResourceGraphQuery> azureResourceGraph)

azureTraces🔗

Application Insights Traces sub-query properties.

public AzureMonitorQueryBuilder azureTraces(com.grafana.foundation.cog.Builder<AzureTracesQuery> azureTraces)

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 AzureMonitorQueryBuilder datasource(DataSourceRef datasource)

grafanaTemplateVariableFn🔗

@deprecated Legacy template variable support.

public AzureMonitorQueryBuilder grafanaTemplateVariableFn(GrafanaTemplateVariableQuery grafanaTemplateVariableFn)

hide🔗

true if query is disabled (ie should not be returned to the dashboard)

Note this does not always imply that the query should not be executed since

the results from a hidden query may be used as the input to other queries (SSE etc)

public AzureMonitorQueryBuilder hide(Boolean hide)

namespace🔗

public AzureMonitorQueryBuilder namespace(String namespace)

queryType🔗

Specify the query flavor

TODO make this required and give it a default

public AzureMonitorQueryBuilder 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 AzureMonitorQueryBuilder refId(String refId)

region🔗

Azure Monitor query type.

queryType: #AzureQueryType

public AzureMonitorQueryBuilder region(String region)

resource🔗

public AzureMonitorQueryBuilder resource(String resource)

resourceGroup🔗

Template variables params. These exist for backwards compatiblity with legacy template variables.

public AzureMonitorQueryBuilder resourceGroup(String resourceGroup)

subscription🔗

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

public AzureMonitorQueryBuilder subscription(String subscription)

subscriptions🔗

Subscriptions to be queried via Azure Resource Graph.

public AzureMonitorQueryBuilder subscriptions(List<String> subscriptions)

See also🔗