Skip to content

AzureMonitorQueryBuilder🔗

Constructor🔗

new AzureMonitorQueryBuilder()

Methods🔗

build🔗

Builds the object.

build()

azureLogAnalytics🔗

Azure Monitor Logs sub-query properties.

@param \Grafana\Foundation\Cog\Builder<\Grafana\Foundation\Azuremonitor\AzureLogsQuery> $azureLogAnalytics

azureLogAnalytics(\Grafana\Foundation\Cog\Builder $azureLogAnalytics)

azureMonitor🔗

Azure Monitor Metrics sub-query properties.

@param \Grafana\Foundation\Cog\Builder<\Grafana\Foundation\Azuremonitor\AzureMetricQuery> $azureMonitor

azureMonitor(\Grafana\Foundation\Cog\Builder $azureMonitor)

azureResourceGraph🔗

Azure Resource Graph sub-query properties.

@param \Grafana\Foundation\Cog\Builder<\Grafana\Foundation\Azuremonitor\AzureResourceGraphQuery> $azureResourceGraph

azureResourceGraph(\Grafana\Foundation\Cog\Builder $azureResourceGraph)

azureTraces🔗

Application Insights Traces sub-query properties.

@param \Grafana\Foundation\Cog\Builder<\Grafana\Foundation\Azuremonitor\AzureTracesQuery> $azureTraces

azureTraces(\Grafana\Foundation\Cog\Builder $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

datasource(\Grafana\Foundation\Dashboard\DataSourceRef $datasource)

grafanaTemplateVariableFn🔗

@deprecated Legacy template variable support.

@param \Grafana\Foundation\Cog\Builder<\Grafana\Foundation\Azuremonitor\AppInsightsMetricNameQuery>|\Grafana\Foundation\Cog\Builder<\Grafana\Foundation\Azuremonitor\AppInsightsGroupByQuery>|\Grafana\Foundation\Cog\Builder<\Grafana\Foundation\Azuremonitor\SubscriptionsQuery>|\Grafana\Foundation\Cog\Builder<\Grafana\Foundation\Azuremonitor\ResourceGroupsQuery>|\Grafana\Foundation\Cog\Builder<\Grafana\Foundation\Azuremonitor\ResourceNamesQuery>|\Grafana\Foundation\Cog\Builder<\Grafana\Foundation\Azuremonitor\MetricNamespaceQuery>|\Grafana\Foundation\Cog\Builder<\Grafana\Foundation\Azuremonitor\MetricDefinitionsQuery>|\Grafana\Foundation\Cog\Builder<\Grafana\Foundation\Azuremonitor\MetricNamesQuery>|\Grafana\Foundation\Cog\Builder<\Grafana\Foundation\Azuremonitor\WorkspacesQuery>|\Grafana\Foundation\Cog\Builder<\Grafana\Foundation\Azuremonitor\UnknownQuery> $grafanaTemplateVariableFn

grafanaTemplateVariableFn($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.

hide(bool $hide)

namespace🔗

namespace(string $namespace)

query🔗

Used only for exemplar queries from Prometheus

query(string $query)

queryType🔗

Specify the query flavor

TODO make this required and give it a default

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.

refId(string $refId)

region🔗

region(string $region)

resource🔗

resource(string $resource)

resourceGroup🔗

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

resourceGroup(string $resourceGroup)

subscription🔗

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

subscription(string $subscription)

subscriptions🔗

Subscriptions to be queried via Azure Resource Graph.

@param array $subscriptions

subscriptions(array $subscriptions)

See also🔗