From c4229cea73b0cbccb91bfada63eb38c3fc824030 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 23 May 2018 20:17:18 +0000 Subject: [PATCH 1/2] Generated from 35adc5e493c20a57e6e2cb35d87c578133d2b7a6 [Monitor] Deconflict "Action" name in MetricAlert Generates bad SDK. --- .../azure/mgmt/monitor/models/__init__.py | 9 ++++-- .../azure/mgmt/monitor/models/action.py | 10 +----- .../azure/mgmt/monitor/models/action_py3.py | 12 ++----- .../mgmt/monitor/models/alerting_action.py | 10 ++---- .../monitor/models/alerting_action_py3.py | 14 +++----- .../mgmt/monitor/models/az_ns_action_group.py | 11 ++++--- .../monitor/models/az_ns_action_group_py3.py | 11 ++++--- .../monitor/models/metric_alert_action.py | 32 +++++++++++++++++++ .../monitor/models/metric_alert_action_py3.py | 32 +++++++++++++++++++ .../azure/mgmt/monitor/models/source.py | 10 +++--- .../azure/mgmt/monitor/models/source_py3.py | 12 +++---- 11 files changed, 102 insertions(+), 61 deletions(-) create mode 100644 azure-mgmt-monitor/azure/mgmt/monitor/models/metric_alert_action.py create mode 100644 azure-mgmt-monitor/azure/mgmt/monitor/models/metric_alert_action_py3.py diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/__init__.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/__init__.py index 50353acdcea3..6bed30a87dab 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/__init__.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/__init__.py @@ -87,8 +87,9 @@ from .baseline_response_py3 import BaselineResponse from .time_series_information_py3 import TimeSeriesInformation from .calculate_baseline_response_py3 import CalculateBaselineResponse - from .action_py3 import Action + from .metric_alert_action_py3 import MetricAlertAction from .metric_alert_criteria_py3 import MetricAlertCriteria + from .action_py3 import Action from .metric_alert_resource_py3 import MetricAlertResource from .metric_alert_resource_patch_py3 import MetricAlertResourcePatch from .metric_alert_status_properties_py3 import MetricAlertStatusProperties @@ -181,8 +182,9 @@ from .baseline_response import BaselineResponse from .time_series_information import TimeSeriesInformation from .calculate_baseline_response import CalculateBaselineResponse - from .action import Action + from .metric_alert_action import MetricAlertAction from .metric_alert_criteria import MetricAlertCriteria + from .action import Action from .metric_alert_resource import MetricAlertResource from .metric_alert_resource_patch import MetricAlertResourcePatch from .metric_alert_status_properties import MetricAlertStatusProperties @@ -310,8 +312,9 @@ 'BaselineResponse', 'TimeSeriesInformation', 'CalculateBaselineResponse', - 'Action', + 'MetricAlertAction', 'MetricAlertCriteria', + 'Action', 'MetricAlertResource', 'MetricAlertResourcePatch', 'MetricAlertStatusProperties', diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/action.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/action.py index dcb773260063..97c98e4fc86c 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/action.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/action.py @@ -13,17 +13,13 @@ class Action(Model): - """An alert action. + """Action. You probably want to use the sub-classes and not this class directly. Known sub-classes are: AlertingAction All required parameters must be populated in order to send to Azure. - :param action_group_id: the id of the action group to use. - :type action_group_id: str - :param webhook_properties: - :type webhook_properties: dict[str, str] :param odatatype: Required. Constant filled by server. :type odatatype: str """ @@ -33,8 +29,6 @@ class Action(Model): } _attribute_map = { - 'action_group_id': {'key': 'actionGroupId', 'type': 'str'}, - 'webhook_properties': {'key': 'webhookProperties', 'type': '{str}'}, 'odatatype': {'key': 'odata\\.type', 'type': 'str'}, } @@ -44,6 +38,4 @@ class Action(Model): def __init__(self, **kwargs): super(Action, self).__init__(**kwargs) - self.action_group_id = kwargs.get('action_group_id', None) - self.webhook_properties = kwargs.get('webhook_properties', None) self.odatatype = None diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/action_py3.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/action_py3.py index 8f20cdeaafe4..c8217283cc29 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/action_py3.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/action_py3.py @@ -13,17 +13,13 @@ class Action(Model): - """An alert action. + """Action. You probably want to use the sub-classes and not this class directly. Known sub-classes are: AlertingAction All required parameters must be populated in order to send to Azure. - :param action_group_id: the id of the action group to use. - :type action_group_id: str - :param webhook_properties: - :type webhook_properties: dict[str, str] :param odatatype: Required. Constant filled by server. :type odatatype: str """ @@ -33,8 +29,6 @@ class Action(Model): } _attribute_map = { - 'action_group_id': {'key': 'actionGroupId', 'type': 'str'}, - 'webhook_properties': {'key': 'webhookProperties', 'type': '{str}'}, 'odatatype': {'key': 'odata\\.type', 'type': 'str'}, } @@ -42,8 +36,6 @@ class Action(Model): 'odatatype': {'Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction': 'AlertingAction'} } - def __init__(self, *, action_group_id: str=None, webhook_properties=None, **kwargs) -> None: + def __init__(self, **kwargs) -> None: super(Action, self).__init__(**kwargs) - self.action_group_id = action_group_id - self.webhook_properties = webhook_properties self.odatatype = None diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/alerting_action.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/alerting_action.py index 462b180d180f..6df6d93edc5a 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/alerting_action.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/alerting_action.py @@ -17,19 +17,15 @@ class AlertingAction(Action): All required parameters must be populated in order to send to Azure. - :param action_group_id: the id of the action group to use. - :type action_group_id: str - :param webhook_properties: - :type webhook_properties: dict[str, str] :param odatatype: Required. Constant filled by server. :type odatatype: str :param severity: Required. Severity of the alert. Possible values include: '0', '1', '2', '3', '4' :type severity: str or ~azure.mgmt.monitor.models.AlertSeverity - :param azns_action: Required. azns notification group reference. + :param azns_action: Required. Azure action group reference. :type azns_action: ~azure.mgmt.monitor.models.AzNsActionGroup :param throttling_in_min: time (in minutes) for which Alerts should be - throttled + throttled or suppressed. :type throttling_in_min: int :param trigger: Required. The trigger condition that results in the alert rule being. @@ -44,8 +40,6 @@ class AlertingAction(Action): } _attribute_map = { - 'action_group_id': {'key': 'actionGroupId', 'type': 'str'}, - 'webhook_properties': {'key': 'webhookProperties', 'type': '{str}'}, 'odatatype': {'key': 'odata\\.type', 'type': 'str'}, 'severity': {'key': 'severity', 'type': 'str'}, 'azns_action': {'key': 'aznsAction', 'type': 'AzNsActionGroup'}, diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/alerting_action_py3.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/alerting_action_py3.py index 8e1083acad51..558088fa5315 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/alerting_action_py3.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/alerting_action_py3.py @@ -17,19 +17,15 @@ class AlertingAction(Action): All required parameters must be populated in order to send to Azure. - :param action_group_id: the id of the action group to use. - :type action_group_id: str - :param webhook_properties: - :type webhook_properties: dict[str, str] :param odatatype: Required. Constant filled by server. :type odatatype: str :param severity: Required. Severity of the alert. Possible values include: '0', '1', '2', '3', '4' :type severity: str or ~azure.mgmt.monitor.models.AlertSeverity - :param azns_action: Required. azns notification group reference. + :param azns_action: Required. Azure action group reference. :type azns_action: ~azure.mgmt.monitor.models.AzNsActionGroup :param throttling_in_min: time (in minutes) for which Alerts should be - throttled + throttled or suppressed. :type throttling_in_min: int :param trigger: Required. The trigger condition that results in the alert rule being. @@ -44,8 +40,6 @@ class AlertingAction(Action): } _attribute_map = { - 'action_group_id': {'key': 'actionGroupId', 'type': 'str'}, - 'webhook_properties': {'key': 'webhookProperties', 'type': '{str}'}, 'odatatype': {'key': 'odata\\.type', 'type': 'str'}, 'severity': {'key': 'severity', 'type': 'str'}, 'azns_action': {'key': 'aznsAction', 'type': 'AzNsActionGroup'}, @@ -53,8 +47,8 @@ class AlertingAction(Action): 'trigger': {'key': 'trigger', 'type': 'TriggerCondition'}, } - def __init__(self, *, severity, azns_action, trigger, action_group_id: str=None, webhook_properties=None, throttling_in_min: int=None, **kwargs) -> None: - super(AlertingAction, self).__init__(action_group_id=action_group_id, webhook_properties=webhook_properties, **kwargs) + def __init__(self, *, severity, azns_action, trigger, throttling_in_min: int=None, **kwargs) -> None: + super(AlertingAction, self).__init__(**kwargs) self.severity = severity self.azns_action = azns_action self.throttling_in_min = throttling_in_min diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/az_ns_action_group.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/az_ns_action_group.py index 5c5576517664..d98d5546826e 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/az_ns_action_group.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/az_ns_action_group.py @@ -13,14 +13,15 @@ class AzNsActionGroup(Model): - """azns notification group. + """Azure action group. - :param action_group: Azure Group reference. + :param action_group: Azure Action Group reference. :type action_group: list[str] - :param email_subject: Custom subject for Azns email - :type email_subject: str - :param custom_webhook_payload: Custom webhook payload to be send to azns + :param email_subject: Custom subject override for all email ids in Azure action group + :type email_subject: str + :param custom_webhook_payload: Custom payload to be sent for all webook + URI in Azure action group :type custom_webhook_payload: str """ diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/az_ns_action_group_py3.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/az_ns_action_group_py3.py index bd5f281ea775..72bc693ab43d 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/az_ns_action_group_py3.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/az_ns_action_group_py3.py @@ -13,14 +13,15 @@ class AzNsActionGroup(Model): - """azns notification group. + """Azure action group. - :param action_group: Azure Group reference. + :param action_group: Azure Action Group reference. :type action_group: list[str] - :param email_subject: Custom subject for Azns email - :type email_subject: str - :param custom_webhook_payload: Custom webhook payload to be send to azns + :param email_subject: Custom subject override for all email ids in Azure action group + :type email_subject: str + :param custom_webhook_payload: Custom payload to be sent for all webook + URI in Azure action group :type custom_webhook_payload: str """ diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_alert_action.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_alert_action.py new file mode 100644 index 000000000000..426d3cef5664 --- /dev/null +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_alert_action.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class MetricAlertAction(Model): + """An alert action. + + :param action_group_id: the id of the action group to use. + :type action_group_id: str + :param webhook_properties: + :type webhook_properties: dict[str, str] + """ + + _attribute_map = { + 'action_group_id': {'key': 'actionGroupId', 'type': 'str'}, + 'webhook_properties': {'key': 'webhookProperties', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(MetricAlertAction, self).__init__(**kwargs) + self.action_group_id = kwargs.get('action_group_id', None) + self.webhook_properties = kwargs.get('webhook_properties', None) diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_alert_action_py3.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_alert_action_py3.py new file mode 100644 index 000000000000..da06ee03df07 --- /dev/null +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_alert_action_py3.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class MetricAlertAction(Model): + """An alert action. + + :param action_group_id: the id of the action group to use. + :type action_group_id: str + :param webhook_properties: + :type webhook_properties: dict[str, str] + """ + + _attribute_map = { + 'action_group_id': {'key': 'actionGroupId', 'type': 'str'}, + 'webhook_properties': {'key': 'webhookProperties', 'type': '{str}'}, + } + + def __init__(self, *, action_group_id: str=None, webhook_properties=None, **kwargs) -> None: + super(MetricAlertAction, self).__init__(**kwargs) + self.action_group_id = action_group_id + self.webhook_properties = webhook_properties diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/source.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/source.py index 3f3ba2b7687a..00ff167884b7 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/source.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/source.py @@ -21,9 +21,9 @@ class Source(Model): :type query: str :param authorized_resources: List of Resource referred into query :type authorized_resources: list[str] - :param datasource_id: Required. The resource uri over which log search + :param data_source_id: Required. The resource uri over which log search query is to be run. - :type datasource_id: str + :type data_source_id: str :param query_type: Set value to ResultCount if query should be returning search result count. Set it to Number if its a metric query. Possible values include: 'ResultCount' @@ -32,13 +32,13 @@ class Source(Model): _validation = { 'query': {'required': True}, - 'datasource_id': {'required': True}, + 'data_source_id': {'required': True}, } _attribute_map = { 'query': {'key': 'query', 'type': 'str'}, 'authorized_resources': {'key': 'authorizedResources', 'type': '[str]'}, - 'datasource_id': {'key': 'datasourceId', 'type': 'str'}, + 'data_source_id': {'key': 'dataSourceId', 'type': 'str'}, 'query_type': {'key': 'queryType', 'type': 'str'}, } @@ -46,5 +46,5 @@ def __init__(self, **kwargs): super(Source, self).__init__(**kwargs) self.query = kwargs.get('query', None) self.authorized_resources = kwargs.get('authorized_resources', None) - self.datasource_id = kwargs.get('datasource_id', None) + self.data_source_id = kwargs.get('data_source_id', None) self.query_type = kwargs.get('query_type', None) diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/source_py3.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/source_py3.py index aaaba5c0cc01..e06241180a82 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/source_py3.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/source_py3.py @@ -21,9 +21,9 @@ class Source(Model): :type query: str :param authorized_resources: List of Resource referred into query :type authorized_resources: list[str] - :param datasource_id: Required. The resource uri over which log search + :param data_source_id: Required. The resource uri over which log search query is to be run. - :type datasource_id: str + :type data_source_id: str :param query_type: Set value to ResultCount if query should be returning search result count. Set it to Number if its a metric query. Possible values include: 'ResultCount' @@ -32,19 +32,19 @@ class Source(Model): _validation = { 'query': {'required': True}, - 'datasource_id': {'required': True}, + 'data_source_id': {'required': True}, } _attribute_map = { 'query': {'key': 'query', 'type': 'str'}, 'authorized_resources': {'key': 'authorizedResources', 'type': '[str]'}, - 'datasource_id': {'key': 'datasourceId', 'type': 'str'}, + 'data_source_id': {'key': 'dataSourceId', 'type': 'str'}, 'query_type': {'key': 'queryType', 'type': 'str'}, } - def __init__(self, *, query: str, datasource_id: str, authorized_resources=None, query_type=None, **kwargs) -> None: + def __init__(self, *, query: str, data_source_id: str, authorized_resources=None, query_type=None, **kwargs) -> None: super(Source, self).__init__(**kwargs) self.query = query self.authorized_resources = authorized_resources - self.datasource_id = datasource_id + self.data_source_id = data_source_id self.query_type = query_type From b9a906bfb7ea505d33af1199cc4aaa40cd940fc6 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 23 May 2018 21:05:59 +0000 Subject: [PATCH 2/2] Generated from ebfaf0bdd7f2bcf736598d8ec501f490a83d1268 Update reference to MetricAlertAction --- azure-mgmt-monitor/azure/mgmt/monitor/models/__init__.py | 6 +++--- .../azure/mgmt/monitor/models/metric_alert_resource.py | 4 ++-- .../mgmt/monitor/models/metric_alert_resource_patch.py | 4 ++-- .../mgmt/monitor/models/metric_alert_resource_patch_py3.py | 4 ++-- .../azure/mgmt/monitor/models/metric_alert_resource_py3.py | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/__init__.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/__init__.py index 6bed30a87dab..8d68d0a13e4a 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/__init__.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/__init__.py @@ -89,7 +89,6 @@ from .calculate_baseline_response_py3 import CalculateBaselineResponse from .metric_alert_action_py3 import MetricAlertAction from .metric_alert_criteria_py3 import MetricAlertCriteria - from .action_py3 import Action from .metric_alert_resource_py3 import MetricAlertResource from .metric_alert_resource_patch_py3 import MetricAlertResourcePatch from .metric_alert_status_properties_py3 import MetricAlertStatusProperties @@ -100,6 +99,7 @@ from .metric_alert_single_resource_multiple_metric_criteria_py3 import MetricAlertSingleResourceMultipleMetricCriteria from .source_py3 import Source from .schedule_py3 import Schedule + from .action_py3 import Action from .log_search_rule_resource_py3 import LogSearchRuleResource from .trigger_condition_py3 import TriggerCondition from .az_ns_action_group_py3 import AzNsActionGroup @@ -184,7 +184,6 @@ from .calculate_baseline_response import CalculateBaselineResponse from .metric_alert_action import MetricAlertAction from .metric_alert_criteria import MetricAlertCriteria - from .action import Action from .metric_alert_resource import MetricAlertResource from .metric_alert_resource_patch import MetricAlertResourcePatch from .metric_alert_status_properties import MetricAlertStatusProperties @@ -195,6 +194,7 @@ from .metric_alert_single_resource_multiple_metric_criteria import MetricAlertSingleResourceMultipleMetricCriteria from .source import Source from .schedule import Schedule + from .action import Action from .log_search_rule_resource import LogSearchRuleResource from .trigger_condition import TriggerCondition from .az_ns_action_group import AzNsActionGroup @@ -314,7 +314,6 @@ 'CalculateBaselineResponse', 'MetricAlertAction', 'MetricAlertCriteria', - 'Action', 'MetricAlertResource', 'MetricAlertResourcePatch', 'MetricAlertStatusProperties', @@ -325,6 +324,7 @@ 'MetricAlertSingleResourceMultipleMetricCriteria', 'Source', 'Schedule', + 'Action', 'LogSearchRuleResource', 'TriggerCondition', 'AzNsActionGroup', diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_alert_resource.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_alert_resource.py index 5324dcac5a59..98ac70d43bb1 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_alert_resource.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_alert_resource.py @@ -55,7 +55,7 @@ class MetricAlertResource(Resource): :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. - :type actions: list[~azure.mgmt.monitor.models.Action] + :type actions: list[~azure.mgmt.monitor.models.MetricAlertAction] :ivar last_updated_time: Last time the rule was updated in ISO8601 format. :vartype last_updated_time: datetime """ @@ -88,7 +88,7 @@ class MetricAlertResource(Resource): 'window_size': {'key': 'properties.windowSize', 'type': 'duration'}, 'criteria': {'key': 'properties.criteria', 'type': 'MetricAlertCriteria'}, 'auto_mitigate': {'key': 'properties.autoMitigate', 'type': 'bool'}, - 'actions': {'key': 'properties.actions', 'type': '[Action]'}, + 'actions': {'key': 'properties.actions', 'type': '[MetricAlertAction]'}, 'last_updated_time': {'key': 'properties.lastUpdatedTime', 'type': 'iso-8601'}, } diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_alert_resource_patch.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_alert_resource_patch.py index ec51a3f1fdbe..72bca9080e59 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_alert_resource_patch.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_alert_resource_patch.py @@ -47,7 +47,7 @@ class MetricAlertResourcePatch(Model): :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. - :type actions: list[~azure.mgmt.monitor.models.Action] + :type actions: list[~azure.mgmt.monitor.models.MetricAlertAction] :ivar last_updated_time: Last time the rule was updated in ISO8601 format. :vartype last_updated_time: datetime """ @@ -72,7 +72,7 @@ class MetricAlertResourcePatch(Model): 'window_size': {'key': 'properties.windowSize', 'type': 'duration'}, 'criteria': {'key': 'properties.criteria', 'type': 'MetricAlertCriteria'}, 'auto_mitigate': {'key': 'properties.autoMitigate', 'type': 'bool'}, - 'actions': {'key': 'properties.actions', 'type': '[Action]'}, + 'actions': {'key': 'properties.actions', 'type': '[MetricAlertAction]'}, 'last_updated_time': {'key': 'properties.lastUpdatedTime', 'type': 'iso-8601'}, } diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_alert_resource_patch_py3.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_alert_resource_patch_py3.py index 7a4cad2c38e2..c415f69e489b 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_alert_resource_patch_py3.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_alert_resource_patch_py3.py @@ -47,7 +47,7 @@ class MetricAlertResourcePatch(Model): :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. - :type actions: list[~azure.mgmt.monitor.models.Action] + :type actions: list[~azure.mgmt.monitor.models.MetricAlertAction] :ivar last_updated_time: Last time the rule was updated in ISO8601 format. :vartype last_updated_time: datetime """ @@ -72,7 +72,7 @@ class MetricAlertResourcePatch(Model): 'window_size': {'key': 'properties.windowSize', 'type': 'duration'}, 'criteria': {'key': 'properties.criteria', 'type': 'MetricAlertCriteria'}, 'auto_mitigate': {'key': 'properties.autoMitigate', 'type': 'bool'}, - 'actions': {'key': 'properties.actions', 'type': '[Action]'}, + 'actions': {'key': 'properties.actions', 'type': '[MetricAlertAction]'}, 'last_updated_time': {'key': 'properties.lastUpdatedTime', 'type': 'iso-8601'}, } diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_alert_resource_py3.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_alert_resource_py3.py index 06c36b04a910..a116607117c6 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_alert_resource_py3.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_alert_resource_py3.py @@ -55,7 +55,7 @@ class MetricAlertResource(Resource): :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. - :type actions: list[~azure.mgmt.monitor.models.Action] + :type actions: list[~azure.mgmt.monitor.models.MetricAlertAction] :ivar last_updated_time: Last time the rule was updated in ISO8601 format. :vartype last_updated_time: datetime """ @@ -88,7 +88,7 @@ class MetricAlertResource(Resource): 'window_size': {'key': 'properties.windowSize', 'type': 'duration'}, 'criteria': {'key': 'properties.criteria', 'type': 'MetricAlertCriteria'}, 'auto_mitigate': {'key': 'properties.autoMitigate', 'type': 'bool'}, - 'actions': {'key': 'properties.actions', 'type': '[Action]'}, + 'actions': {'key': 'properties.actions', 'type': '[MetricAlertAction]'}, 'last_updated_time': {'key': 'properties.lastUpdatedTime', 'type': 'iso-8601'}, }