Share via


az monitor metrics alert dimension

Manage near-realtime metric alert rule dimensions.

Commands

Name Description Type Status
az monitor metrics alert dimension create

Build a metric alert rule dimension.

Core Preview

az monitor metrics alert dimension create

Preview

This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Build a metric alert rule dimension.

az monitor metrics alert dimension create --name
                                          --value
                                          [--op --operator {Exclude, Include}]

Examples

Build a metric alert rule dimension.

$dim = az monitor metrics alert dimension create -n dimName --op Include -v GetBlob PutBlob

Required Parameters

--name -n

Name of the dimension.

--value -v

The values to apply on the operation.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--op --operator

Dimension operator.

Property Value
Default value: Include
Accepted values: Exclude, Include
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False