AzureMetricQuery🔗
Constructor🔗
Methods🔗
build🔗
Builds the object.
aggregation🔗
The aggregation to be used within the query. Defaults to the primaryAggregationType defined by the metric.
alias🔗
Aliases can be set to modify the legend labels. e.g. {{ resourceGroup }}. See docs for more detail.
allowed_time_grains_ms🔗
Time grains that are supported by the metric.
custom_namespace🔗
Used as the value for the metricNamespace property when it's different from the resource namespace.
dimension🔗
@deprecated This property was migrated to dimensionFilters and should only be accessed in the migration
dimension_filter🔗
@deprecated This property was migrated to dimensionFilters and should only be accessed in the migration
dimension_filters🔗
Filters to reduce the set of data returned. Dimensions that can be filtered on are defined by the metric.
def dimension_filters(dimension_filters: list[cogbuilder.Builder[azuremonitor.AzureMetricDimension]]) -> typing.Self
metric_definition🔗
@deprecated Use metricNamespace instead
metric_name🔗
The metric to query data for within the specified metricNamespace. e.g. UsedCapacity
metric_namespace🔗
metricNamespace is used as the resource type (or resource namespace).
It's usually equal to the target metric namespace. e.g. microsoft.storage/storageaccounts
Kept the name of the variable as metricNamespace to avoid backward incompatibility issues.
region🔗
The Azure region containing the resource(s).
resource_group🔗
@deprecated Use resources instead
resource_name🔗
@deprecated Use resources instead
resource_uri🔗
@deprecated Use resourceGroup, resourceName and metricNamespace instead
resources🔗
Array of resource URIs to be queried.
def resources(resources: list[cogbuilder.Builder[azuremonitor.AzureMonitorResource]]) -> typing.Self
time_grain🔗
The granularity of data points to be queried. Defaults to auto.
time_grain_unit🔗
@deprecated
top🔗
Maximum number of records to return. Defaults to 10.