AlertRuleResourcePatch Class

The alert rule object for patch operations.

Variables are only populated by the server, and will be ignored when sending a request.

Inheritance
AlertRuleResourcePatch

Constructor

AlertRuleResourcePatch(*, tags: Optional[Dict[str, str]] = None, name: Optional[str] = None, description: Optional[str] = None, provisioning_state: Optional[str] = None, is_enabled: Optional[bool] = None, condition: Optional[azure.mgmt.monitor.v2015_04_01.models._models_py3.RuleCondition] = 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

tags
dict[str, str]

A set of tags. Resource tags.

name
str

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

the flag that indicates whether the alert rule is enabled.

condition
<xref:$>(<xref:python-base-namespace>)RuleCondition

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.