MetricAlertResourcePatch Class
The metric alert resource for patch operations.
Variables are only populated by the server, and will be ignored when sending a request.
Constructor
MetricAlertResourcePatch(*, tags: Dict[str, str] | None = None, description: str | None = None, severity: int | None = None, enabled: bool | None = None, scopes: List[str] | None = None, evaluation_frequency: timedelta | None = None, window_size: timedelta | None = None, target_resource_type: str | None = None, target_resource_region: str | None = None, criteria: _models.MetricAlertCriteria | None = None, auto_mitigate: bool | None = None, actions: List[_models.MetricAlertAction] | None = None, **kwargs: Any)
Keyword-Only Parameters
| Name | Description |
|---|---|
|
tags
|
Resource tags. Default value: None
|
|
description
|
the description of the metric alert that will be included in the alert email. Default value: None
|
|
severity
|
Alert severity {0, 1, 2, 3, 4}. Default value: None
|
|
enabled
|
the flag that indicates whether the metric alert is enabled. Default value: None
|
|
scopes
|
the list of resource id's that this metric alert is scoped to. Default value: None
|
|
evaluation_frequency
|
how often the metric alert is evaluated represented in ISO 8601 duration format. Default value: None
|
|
window_size
|
the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. Default value: None
|
|
target_resource_type
|
the resource type of the target resource(s) on which the alert is created/updated. Mandatory for MultipleResourceMultipleMetricCriteria. Default value: None
|
|
target_resource_region
|
the region of the target resource(s) on which the alert is created/updated. Mandatory for MultipleResourceMultipleMetricCriteria. Default value: None
|
|
criteria
|
defines the specific alert criteria information. Default value: None
|
|
auto_mitigate
|
the flag that indicates whether the alert should be auto resolved or not. The default is true. Default value: None
|
|
actions
|
the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved. Default value: None
|
Variables
| Name | Description |
|---|---|
|
tags
|
Resource tags. |
|
description
|
the description of the metric alert that will be included in the alert email. |
|
severity
|
Alert severity {0, 1, 2, 3, 4}. |
|
enabled
|
the flag that indicates whether the metric alert is enabled. |
|
scopes
|
the list of resource id's that this metric alert is scoped to. |
|
evaluation_frequency
|
how often the metric alert is evaluated represented in ISO 8601 duration format. |
|
window_size
|
the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. |
|
target_resource_type
|
the resource type of the target resource(s) on which the alert is created/updated. Mandatory for MultipleResourceMultipleMetricCriteria. |
|
target_resource_region
|
the region of the target resource(s) on which the alert is created/updated. Mandatory for MultipleResourceMultipleMetricCriteria. |
|
criteria
|
defines the specific alert criteria information. |
|
auto_mitigate
|
the flag that indicates whether the alert should be auto resolved or not. The default is true. |
|
actions
|
the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved. |
|
last_updated_time
|
Last time the rule was updated in ISO8601 format. |
|
is_migrated
|
the value indicating whether this alert rule is migrated. |