Skip to content

AzureMonitorQuery🔗

Constructor🔗

AzureMonitorQuery()

Methods🔗

build🔗

Builds the object.

def build() -> azuremonitor.AzureMonitorQuery

azure_log_analytics🔗

Azure Monitor Logs sub-query properties.

def azure_log_analytics(azure_log_analytics: cogbuilder.Builder[azuremonitor.AzureLogsQuery]) -> typing.Self

azure_monitor🔗

Azure Monitor Metrics sub-query properties.

def azure_monitor(azure_monitor: cogbuilder.Builder[azuremonitor.AzureMetricQuery]) -> typing.Self

azure_resource_graph🔗

Azure Resource Graph sub-query properties.

def azure_resource_graph(azure_resource_graph: cogbuilder.Builder[azuremonitor.AzureResourceGraphQuery]) -> typing.Self

azure_traces🔗

Application Insights Traces sub-query properties.

def azure_traces(azure_traces: cogbuilder.Builder[azuremonitor.AzureTracesQuery]) -> typing.Self

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

def datasource(datasource: dashboard.DataSourceRef) -> typing.Self

grafana_template_variable_fn🔗

@deprecated Legacy template variable support.

def grafana_template_variable_fn(grafana_template_variable_fn: azuremonitor.GrafanaTemplateVariableQuery) -> typing.Self

hide🔗

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

def hide(hide: bool) -> typing.Self

namespace🔗

def namespace(namespace: str) -> typing.Self

query🔗

Used only for exemplar queries from Prometheus

def query(query: str) -> typing.Self

query_type🔗

Specify the query flavor

TODO make this required and give it a default

def query_type(query_type: str) -> typing.Self

ref_id🔗

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.

def ref_id(ref_id: str) -> typing.Self

region🔗

def region(region: str) -> typing.Self

resource🔗

def resource(resource: str) -> typing.Self

resource_group🔗

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

def resource_group(resource_group: str) -> typing.Self

subscription🔗

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

def subscription(subscription: str) -> typing.Self

subscriptions🔗

Subscriptions to be queried via Azure Resource Graph.

def subscriptions(subscriptions: list[str]) -> typing.Self

See also🔗