SmartDetectorAlertRulesOperations Class
SmartDetectorAlertRulesOperations 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.objectSmartDetectorAlertRulesOperations
Constructor
SmartDetectorAlertRulesOperations(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 or update a Smart Detector alert rule. |
| delete |
Delete an existing Smart Detector alert rule. |
| get |
Get a specific Smart Detector alert rule. |
| list |
List all the existing Smart Detector alert rules within the subscription. |
| list_by_resource_group |
List all the existing Smart Detector alert rules within the subscription and resource group. |
| patch |
Patch a specific Smart Detector alert rule. |
create_or_update
Create or update a Smart Detector alert rule.
async create_or_update(resource_group_name: str, alert_rule_name: str, parameters: azure.mgmt.alertsmanagement.models._models_py3.AlertRule, **kwargs) -> azure.mgmt.alertsmanagement.models._models_py3.AlertRule
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
AlertRule, or the result of cls(response)
Return type
Exceptions
delete
Delete an existing Smart Detector alert rule.
async delete(resource_group_name: str, alert_rule_name: str, **kwargs) -> 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 a specific Smart Detector alert rule.
async get(resource_group_name: str, alert_rule_name: str, expand_detector: Optional[bool] = None, **kwargs) -> azure.mgmt.alertsmanagement.models._models_py3.AlertRule
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
AlertRule, or the result of cls(response)
Return type
Exceptions
list
List all the existing Smart Detector alert rules within the subscription.
list(expand_detector: Optional[bool] = None, **kwargs) -> AsyncIterable[azure.mgmt.alertsmanagement.models._models_py3.AlertRulesList]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either AlertRulesList or the result of cls(response)
Return type
Exceptions
list_by_resource_group
List all the existing Smart Detector alert rules within the subscription and resource group.
list_by_resource_group(resource_group_name: str, expand_detector: Optional[bool] = None, **kwargs) -> AsyncIterable[azure.mgmt.alertsmanagement.models._models_py3.AlertRulesList]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either AlertRulesList or the result of cls(response)
Return type
Exceptions
patch
Patch a specific Smart Detector alert rule.
async patch(resource_group_name: str, alert_rule_name: str, parameters: azure.mgmt.alertsmanagement.models._models_py3.AlertRulePatchObject, **kwargs) -> azure.mgmt.alertsmanagement.models._models_py3.AlertRule
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
AlertRule, or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.alertsmanagement.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\alertsmanagement\\models\\__init__.py'>
Feedback
Submit and view feedback for