ActivityLogAlertsOperations Class

ActivityLogAlertsOperations async operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Inheritance
builtins.object
ActivityLogAlertsOperations

Constructor

ActivityLogAlertsOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

models

Alias to model classes used in this operation group.

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.

async create_or_update(resource_group_name: str, activity_log_alert_name: str, activity_log_alert: azure.mgmt.monitor.v2017_03_01_preview.models._models_py3.ActivityLogAlertResource, **kwargs: Any) -> azure.mgmt.monitor.v2017_03_01_preview.models._models_py3.ActivityLogAlertResource

Parameters

resource_group_name
str
Required

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

activity_log_alert_name
str
Required

The name of the activity log alert.

activity_log_alert
<xref:$>(<xref:python-base-namespace>)ActivityLogAlertResource
Required

The activity log alert to create or use for the update.

cls
callable

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

Returns

ActivityLogAlertResource, or the result of cls(response)

Return type

<xref:$>(<xref:python-base-namespace>)ActivityLogAlertResource

Exceptions

delete

Delete an activity log alert.

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

Parameters

resource_group_name
str
Required

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

activity_log_alert_name
str
Required

The name of the activity log alert.

cls
callable

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

Returns

None, or the result of cls(response)

Return type

Exceptions

get

Get an activity log alert.

async get(resource_group_name: str, activity_log_alert_name: str, **kwargs: Any) -> azure.mgmt.monitor.v2017_03_01_preview.models._models_py3.ActivityLogAlertResource

Parameters

resource_group_name
str
Required

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

activity_log_alert_name
str
Required

The name of the activity log alert.

cls
callable

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

Returns

ActivityLogAlertResource, or the result of cls(response)

Return type

<xref:$>(<xref:python-base-namespace>)ActivityLogAlertResource

Exceptions

list_by_resource_group

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

list_by_resource_group(resource_group_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.monitor.v2017_03_01_preview.models._models_py3.ActivityLogAlertList]

Parameters

resource_group_name
str
Required

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

cls
callable

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

Returns

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

Return type

AsyncItemPaged[<xref:$>(<xref:python-base-namespace>)ActivityLogAlertList]

Exceptions

list_by_subscription_id

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

list_by_subscription_id(**kwargs: Any) -> AsyncIterable[azure.mgmt.monitor.v2017_03_01_preview.models._models_py3.ActivityLogAlertList]

Parameters

cls
callable

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

Returns

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

Return type

AsyncItemPaged[<xref:$>(<xref:python-base-namespace>)ActivityLogAlertList]

Exceptions

update

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

async update(resource_group_name: str, activity_log_alert_name: str, activity_log_alert_patch: azure.mgmt.monitor.v2017_03_01_preview.models._models_py3.ActivityLogAlertResourcePatch, **kwargs: Any) -> azure.mgmt.monitor.v2017_03_01_preview.models._models_py3.ActivityLogAlertResource

Parameters

resource_group_name
str
Required

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

activity_log_alert_name
str
Required

The name of the activity log alert.

activity_log_alert_patch
<xref:$>(<xref:python-base-namespace>)ActivityLogAlertResourcePatch
Required

Parameters supplied to the operation.

cls
callable

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

Returns

ActivityLogAlertResource, or the result of cls(response)

Return type

<xref:$>(<xref:python-base-namespace>)ActivityLogAlertResource

Exceptions

Attributes

models

models = <module 'azure.mgmt.monitor.v2017_03_01_preview.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\monitor\\v2017_03_01_preview\\models\\__init__.py'>