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.objectActivityLogAlertsOperations
Constructor
ActivityLogAlertsOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
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 rule or update an existing one. |
| delete |
Delete an Activity Log Alert rule. |
| get |
Get an Activity Log Alert rule. |
| list_by_resource_group |
Get a list of all Activity Log Alert rules in a resource group. |
| list_by_subscription_id |
Get a list of all Activity Log Alert rules in a subscription. |
| update |
Updates 'tags' and 'enabled' fields in an existing Alert rule. This method is used to update the Alert rule tags, and to enable or disable the Alert rule. To update other fields use CreateOrUpdate operation. |
create_or_update
Create a new Activity Log Alert rule or update an existing one.
async create_or_update(resource_group_name: str, activity_log_alert_name: str, activity_log_alert_rule: azure.mgmt.monitor.v2020_10_01.models._models_py3.ActivityLogAlertResource, **kwargs: Any) -> azure.mgmt.monitor.v2020_10_01.models._models_py3.ActivityLogAlertResource
Parameters
- activity_log_alert_rule
- <xref:$>(<xref:python-base-namespace>)ActivityLogAlertResource
The Activity Log Alert rule 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
Exceptions
delete
Delete an Activity Log Alert rule.
async delete(resource_group_name: str, activity_log_alert_name: str, **kwargs: Any) -> None
Parameters
- 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 rule.
async get(resource_group_name: str, activity_log_alert_name: str, **kwargs: Any) -> azure.mgmt.monitor.v2020_10_01.models._models_py3.ActivityLogAlertResource
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
ActivityLogAlertResource, or the result of cls(response)
Return type
Exceptions
list_by_resource_group
Get a list of all Activity Log Alert rules in a resource group.
list_by_resource_group(resource_group_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.monitor.v2020_10_01.models._models_py3.AlertRuleList]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either AlertRuleList or the result of cls(response)
Return type
Exceptions
list_by_subscription_id
Get a list of all Activity Log Alert rules in a subscription.
list_by_subscription_id(**kwargs: Any) -> AsyncIterable[azure.mgmt.monitor.v2020_10_01.models._models_py3.AlertRuleList]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either AlertRuleList or the result of cls(response)
Return type
Exceptions
update
Updates 'tags' and 'enabled' fields in an existing Alert rule. This method is used to update the Alert rule tags, and to enable or disable the Alert rule. To update other fields use CreateOrUpdate operation.
async update(resource_group_name: str, activity_log_alert_name: str, activity_log_alert_rule_patch: azure.mgmt.monitor.v2020_10_01.models._models_py3.AlertRulePatchObject, **kwargs: Any) -> azure.mgmt.monitor.v2020_10_01.models._models_py3.ActivityLogAlertResource
Parameters
- activity_log_alert_rule_patch
- <xref:$>(<xref:python-base-namespace>)AlertRulePatchObject
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
Exceptions
Attributes
models
models = <module 'azure.mgmt.monitor.v2020_10_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\monitor\\v2020_10_01\\models\\__init__.py'>
Feedback
Submit and view feedback for