AzureMetricQueryBuilder🔗
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 *AzureMetricQueryBuilder) AllowedTimeGrainsMs(allowedTimeGrainsMs []int64) *AzureMetricQueryBuilder
CustomNamespace🔗
Used as the value for the metricNamespace property when it's different from the resource namespace.
func (builder *AzureMetricQueryBuilder) CustomNamespace(customNamespace string) *AzureMetricQueryBuilder
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
func (builder *AzureMetricQueryBuilder) DimensionFilter(dimensionFilter string) *AzureMetricQueryBuilder
DimensionFilters🔗
Filters to reduce the set of data returned. Dimensions that can be filtered on are defined by the metric.
func (builder *AzureMetricQueryBuilder) DimensionFilters(dimensionFilters []cog.Builder[azuremonitor.AzureMetricDimension]) *AzureMetricQueryBuilder
MetricDefinition🔗
@deprecated Use metricNamespace instead
func (builder *AzureMetricQueryBuilder) MetricDefinition(metricDefinition string) *AzureMetricQueryBuilder
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.
func (builder *AzureMetricQueryBuilder) MetricNamespace(metricNamespace string) *AzureMetricQueryBuilder
Region🔗
The Azure region containing the resource(s).
ResourceGroup🔗
@deprecated Use resources instead
func (builder *AzureMetricQueryBuilder) ResourceGroup(resourceGroup string) *AzureMetricQueryBuilder
ResourceName🔗
@deprecated Use resources instead
ResourceUri🔗
@deprecated Use resourceGroup, resourceName and metricNamespace instead
Resources🔗
Array of resource URIs to be queried.
func (builder *AzureMetricQueryBuilder) Resources(resources []cog.Builder[azuremonitor.AzureMonitorResource]) *AzureMetricQueryBuilder
TimeGrain🔗
The granularity of data points to be queried. Defaults to auto.
TimeGrainUnit🔗
@deprecated
func (builder *AzureMetricQueryBuilder) TimeGrainUnit(timeGrainUnit string) *AzureMetricQueryBuilder
Top🔗
Maximum number of records to return. Defaults to 10.