Skip to main content

alert_rules

Overview

Namealert_rules
TypeResource
Idazure.monitor.alert_rules

Fields

NameDatatypeDescription
idstringAzure resource Id
namestringAzure resource name
locationstringResource location
propertiesobjectAn alert rule.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
tagsobjectGets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters.
typestringAzure resource type

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, ruleName, subscriptionIdGets a classic metric alert rule
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList the classic metric alert rules within a resource group.
list_by_subscriptionSELECTsubscriptionIdList the classic metric alert rules within a subscription.
create_or_updateINSERTresourceGroupName, ruleName, subscriptionId, data__propertiesCreates or updates a classic metric alert rule.
deleteDELETEresourceGroupName, ruleName, subscriptionIdDeletes a classic metric alert rule
_list_by_resource_groupEXECresourceGroupName, subscriptionIdList the classic metric alert rules within a resource group.
_list_by_subscriptionEXECsubscriptionIdList the classic metric alert rules within a subscription.
updateEXECresourceGroupName, ruleName, subscriptionIdUpdates an existing classic metric AlertRuleResource. To update other fields use the CreateOrUpdate method.