Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(self, client, config, serializer, deserializer):

def create_or_update(
self, resource_group_name, rule_name, parameters, custom_headers=None, raw=False, **operation_config):
"""Creates or updates an alert rule.
"""Creates or updates a classic metric alert rule.

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
Expand Down Expand Up @@ -110,7 +110,7 @@ def create_or_update(

def delete(
self, resource_group_name, rule_name, custom_headers=None, raw=False, **operation_config):
"""Deletes an alert rule.
"""Deletes a classic metric alert rule.

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
Expand Down Expand Up @@ -163,7 +163,7 @@ def delete(

def get(
self, resource_group_name, rule_name, custom_headers=None, raw=False, **operation_config):
"""Gets an alert rule.
"""Gets a classic metric alert rule.

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
Expand Down Expand Up @@ -224,8 +224,8 @@ def get(

def update(
self, resource_group_name, rule_name, alert_rules_resource, custom_headers=None, raw=False, **operation_config):
"""Updates an existing AlertRuleResource. To update other fields use the
CreateOrUpdate method.
"""Updates an existing classic metric AlertRuleResource. To update other
fields use the CreateOrUpdate method.

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
Expand Down Expand Up @@ -294,7 +294,7 @@ def update(

def list_by_resource_group(
self, resource_group_name, custom_headers=None, raw=False, **operation_config):
"""List the alert rules within a resource group.
"""List the classic metric alert rules within a resource group.

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
Expand Down Expand Up @@ -363,7 +363,7 @@ def internal_paging(next_link=None):

def list_by_subscription(
self, custom_headers=None, raw=False, **operation_config):
"""List the alert rules within a subscription.
"""List the classic metric alert rules within a subscription.

:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ class MetricAlertResource(Resource):
information.
:type criteria: ~azure.mgmt.monitor.v2018_03_01.models.MetricAlertCriteria
:param auto_mitigate: the flag that indicates whether the alert should be
auto resolved or not.
auto resolved or not. The default is true.
:type auto_mitigate: bool
:param actions: the array of actions that are performed when the alert
rule becomes active, and when an alert condition is resolved.
Expand Down Expand Up @@ -883,7 +883,7 @@ class MetricAlertResourcePatch(Model):
information.
:type criteria: ~azure.mgmt.monitor.v2018_03_01.models.MetricAlertCriteria
:param auto_mitigate: the flag that indicates whether the alert should be
auto resolved or not.
auto resolved or not. The default is true.
:type auto_mitigate: bool
:param actions: the array of actions that are performed when the alert
rule becomes active, and when an alert condition is resolved.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ class MetricAlertResource(Resource):
information.
:type criteria: ~azure.mgmt.monitor.v2018_03_01.models.MetricAlertCriteria
:param auto_mitigate: the flag that indicates whether the alert should be
auto resolved or not.
auto resolved or not. The default is true.
:type auto_mitigate: bool
:param actions: the array of actions that are performed when the alert
rule becomes active, and when an alert condition is resolved.
Expand Down Expand Up @@ -883,7 +883,7 @@ class MetricAlertResourcePatch(Model):
information.
:type criteria: ~azure.mgmt.monitor.v2018_03_01.models.MetricAlertCriteria
:param auto_mitigate: the flag that indicates whether the alert should be
auto resolved or not.
auto resolved or not. The default is true.
:type auto_mitigate: bool
:param actions: the array of actions that are performed when the alert
rule becomes active, and when an alert condition is resolved.
Expand Down