MetricAlertResource Class
The metric alert resource.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Inheritance
-
azure.mgmt.monitor.v2018_03_01.models._models_py3.ResourceMetricAlertResource
Constructor
MetricAlertResource(*, location: str, severity: int, enabled: bool, scopes: List[str], evaluation_frequency: datetime.timedelta, window_size: datetime.timedelta, criteria: azure.mgmt.monitor.v2018_03_01.models._models_py3.MetricAlertCriteria, tags: Optional[Dict[str, str]] = None, description: Optional[str] = None, target_resource_type: Optional[str] = None, target_resource_region: Optional[str] = None, auto_mitigate: Optional[bool] = None, actions: Optional[List[azure.mgmt.monitor.v2018_03_01.models._models_py3.MetricAlertAction]] = None, **kwargs)
Variables
- id
- str
Azure resource Id.
- name
- str
Azure resource name.
- type
- str
Azure resource type.
- location
- str
Required. Resource location.
- description
- str
the description of the metric alert that will be included in the alert email.
- severity
- int
Required. Alert severity {0, 1, 2, 3, 4}.
- enabled
- bool
Required. the flag that indicates whether the metric alert is enabled.
- evaluation_frequency
- timedelta
Required. how often the metric alert is evaluated represented in ISO 8601 duration format.
- window_size
- timedelta
Required. 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 if the scope contains a subscription, resource group, or more than one resource.
- target_resource_region
- str
the region of the target resource(s) on which the alert is created/updated. Mandatory if the scope contains a subscription, resource group, or more than one resource.
- criteria
- <xref:$>(<xref:python-base-namespace>)MetricAlertCriteria
Required. 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