ActivityLogAlertResource Class

An Activity Log Alert rule resource.

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

Inheritance
azure.mgmt.monitor.v2020_10_01.models._models_py3.AzureResource
ActivityLogAlertResource

Constructor

ActivityLogAlertResource(*, location: Optional[str] = 'global', tags: Optional[Dict[str, str]] = None, scopes: Optional[List[str]] = None, condition: Optional[azure.mgmt.monitor.v2020_10_01.models._models_py3.AlertRuleAllOfCondition] = None, actions: Optional[azure.mgmt.monitor.v2020_10_01.models._models_py3.ActionList] = None, enabled: Optional[bool] = True, description: Optional[str] = None, **kwargs)

Variables

id
str

The resource Id.

name
str

The name of the resource.

type
str

The type of the resource.

location
str

The location of the resource. Since Azure Activity Log Alerts is a global service, the location of the rules should always be 'global'.

tags
dict[str, str]

A set of tags. The tags of the resource.

scopes
list[str]

A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item.

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

The condition that will cause this alert to activate.

actions
<xref:$>(<xref:python-base-namespace>)ActionList

The actions that will activate when the condition is met.

enabled
bool

Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.

description
str

A description of this Activity Log Alert rule.