MetricQueryBuilder🔗
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.
AllowedTimeGrainsMs🔗
Time grains that are supported by the metric.
func (builder *MetricQueryBuilder) AllowedTimeGrainsMs(allowedTimeGrainsMs []int64) *MetricQueryBuilder
CustomNamespace🔗
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
DimensionFilter🔗
@deprecated This property was migrated to dimensionFilters and should only be accessed in the migration
DimensionFilters🔗
Filters to reduce the set of data returned. Dimensions that can be filtered on are defined by the metric.
func (builder *MetricQueryBuilder) DimensionFilters(dimensionFilters []cog.Builder[azuremonitor.MetricDimension]) *MetricQueryBuilder
MetricDefinition🔗
@deprecated Use metricNamespace instead
MetricName🔗
The metric to query data for within the specified metricNamespace. e.g. UsedCapacity
MetricNamespace🔗
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).
ResourceGroup🔗
@deprecated Use resources instead
ResourceName🔗
@deprecated Use resources instead
ResourceUri🔗
@deprecated Use resourceGroup, resourceName and metricNamespace instead
Resources🔗
Array of resource URIs to be queried.
func (builder *MetricQueryBuilder) Resources(resources []cog.Builder[azuremonitor.MonitorResource]) *MetricQueryBuilder
TimeGrain🔗
The granularity of data points to be queried. Defaults to auto.
TimeGrainUnit🔗
@deprecated
Top🔗
Maximum number of records to return. Defaults to 10.