ActivityLogAlertResource Class

An Activity Log Alert rule resource.

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

Constructor

ActivityLogAlertResource(*, location: str = 'global', tags: Dict[str, str] | None = None, scopes: List[str] | None = None, condition: _models.AlertRuleAllOfCondition | None = None, actions: _models.ActionList | None = None, enabled: bool = True, description: str | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
location
str

The location of the resource. Azure Activity Log Alert rules are supported on Global, West Europe and North Europe regions.

Default value: global
tags

The tags of the resource.

Default value: None
scopes

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.

Default value: None
condition

The condition that will cause this alert to activate.

Default value: None
actions

The actions that will activate when the condition is met.

Default value: None
enabled

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.

Default value: True
description
str

A description of this Activity Log Alert rule.

Default value: None

Variables

Name Description
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. Azure Activity Log Alert rules are supported on Global, West Europe and North Europe regions.

tags

The tags of the resource.

scopes

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

The condition that will cause this alert to activate.

actions

The actions that will activate when the condition is met.

enabled

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.