AlertRuleResource Class
The alert rule 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.v2015_04_01.models._models_py3.ResourceAlertRuleResource
Constructor
AlertRuleResource(*, location: str, name_properties_name: str, is_enabled: bool, condition: azure.mgmt.monitor.v2015_04_01.models._models_py3.RuleCondition, tags: Optional[Dict[str, str]] = None, description: Optional[str] = None, provisioning_state: Optional[str] = None, action: Optional[azure.mgmt.monitor.v2015_04_01.models._models_py3.RuleAction] = None, actions: Optional[List[azure.mgmt.monitor.v2015_04_01.models._models_py3.RuleAction]] = None, **kwargs)
Variables
- id
- str
Azure resource Id.
- name
- str
Azure resource name.
- type
- str
Azure resource type.
- location
- str
Required. Resource location.
- name_properties_name
- str
Required. the name of the alert rule.
- description
- str
the description of the alert rule that will be included in the alert email.
- provisioning_state
- str
the provisioning state.
- is_enabled
- bool
Required. the flag that indicates whether the alert rule is enabled.
- condition
- <xref:$>(<xref:python-base-namespace>)RuleCondition
Required. the condition that results in the alert rule being activated.
- action
- <xref:$>(<xref:python-base-namespace>)RuleAction
action that is performed when the alert rule becomes active, and when an alert condition is resolved.
- actions
- list[<xref:$>(<xref:python-base-namespace>)RuleAction]
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.
Feedback
Submit and view feedback for