ActivityLogAlertsOperations Class

Varning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

MonitorManagementClient's

<xref:activity_log_alerts> attribute.

Constructor

Python
ActivityLogAlertsOperations(*args, **kwargs)

Methods

create_or_update

Create a new activity log alert or update an existing one.

delete

Delete an activity log alert.

get

Get an activity log alert.

list_by_resource_group

Get a list of all activity log alerts in a resource group.

list_by_subscription_id

Get a list of all activity log alerts in a subscription.

update

Updates an existing ActivityLogAlertResource's tags. To update other fields use the CreateOrUpdate method.

create_or_update

Create a new activity log alert or update an existing one.

Python
create_or_update(resource_group_name: str, activity_log_alert_name: str, activity_log_alert: _models.ActivityLogAlertResource, *, content_type: str = 'application/json', **kwargs: Any) -> _models.ActivityLogAlertResource

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

activity_log_alert_name
Required
str

The name of the activity log alert. Required.

activity_log_alert
Required

The activity log alert to create or use for the update. Is either a ActivityLogAlertResource type or a IO type. Required.

Keyword-Only Parameters

Name Description
content_type
str

Body Parameter content-type. Known values are: 'application/json'. Default value is None.

cls

A custom type or function that will be passed the direct response

Returns

Type Description

ActivityLogAlertResource or the result of cls(response)

Exceptions

Type Description

delete

Delete an activity log alert.

Python
delete(resource_group_name: str, activity_log_alert_name: str, **kwargs: Any) -> None

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

activity_log_alert_name
Required
str

The name of the activity log alert. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

get

Get an activity log alert.

Python
get(resource_group_name: str, activity_log_alert_name: str, **kwargs: Any) -> ActivityLogAlertResource

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

activity_log_alert_name
Required
str

The name of the activity log alert. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

ActivityLogAlertResource or the result of cls(response)

Exceptions

Type Description

list_by_resource_group

Get a list of all activity log alerts in a resource group.

Python
list_by_resource_group(resource_group_name: str, **kwargs: Any) -> Iterable[ActivityLogAlertResource]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either ActivityLogAlertResource or the result of cls(response)

Exceptions

Type Description

list_by_subscription_id

Get a list of all activity log alerts in a subscription.

Python
list_by_subscription_id(**kwargs: Any) -> Iterable[ActivityLogAlertResource]

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either ActivityLogAlertResource or the result of cls(response)

Exceptions

Type Description

update

Updates an existing ActivityLogAlertResource's tags. To update other fields use the CreateOrUpdate method.

Python
update(resource_group_name: str, activity_log_alert_name: str, activity_log_alert_patch: _models.ActivityLogAlertResourcePatch, *, content_type: str = 'application/json', **kwargs: Any) -> _models.ActivityLogAlertResource

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

activity_log_alert_name
Required
str

The name of the activity log alert. Required.

activity_log_alert_patch
Required

Parameters supplied to the operation. Is either a ActivityLogAlertResourcePatch type or a IO type. Required.

Keyword-Only Parameters

Name Description
content_type
str

Body Parameter content-type. Known values are: 'application/json'. Default value is None.

cls

A custom type or function that will be passed the direct response

Returns

Type Description

ActivityLogAlertResource or the result of cls(response)

Exceptions

Type Description

Attributes

models

Python
models = <module 'azure.mgmt.monitor.v2017_03_01_preview.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.10\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv164\\Lib\\site-packages\\azure\\mgmt\\monitor\\v2017_03_01_preview\\models\\__init__.py'>