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