Skip to content

Commit 336124b

Browse files
authored
[AutoPR monitor/resource-manager] Minor Updates - description text (#2513)
* Generated from 0c826790271a1be2d4af5905ee0eb089b4260feb Merge pull request #1 from abversqr/MinorUpdates Minor updates * Generated from 1610a74a5c49c73a546972daca1e7a43798a8cea Merge branch 'master' into master
1 parent d19dcb8 commit 336124b

8 files changed

+29
-27
lines changed

azure-mgmt-monitor/azure/mgmt/monitor/models/action_group_resource.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class ActionGroupResource(Resource):
7575
'name': {'readonly': True},
7676
'type': {'readonly': True},
7777
'location': {'required': True},
78-
'group_short_name': {'required': True, 'max_length': 15},
78+
'group_short_name': {'required': True, 'max_length': 12},
7979
'enabled': {'required': True},
8080
}
8181

azure-mgmt-monitor/azure/mgmt/monitor/models/action_group_resource_py3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class ActionGroupResource(Resource):
7575
'name': {'readonly': True},
7676
'type': {'readonly': True},
7777
'location': {'required': True},
78-
'group_short_name': {'required': True, 'max_length': 15},
78+
'group_short_name': {'required': True, 'max_length': 12},
7979
'enabled': {'required': True},
8080
}
8181

azure-mgmt-monitor/azure/mgmt/monitor/models/alerting_action.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ class AlertingAction(Action):
2626
:param severity: Required. Severity of the alert. Possible values include:
2727
'0', '1', '2', '3', '4'
2828
:type severity: str or ~azure.mgmt.monitor.models.AlertSeverity
29-
:param azns_action: Required. azns notification group reference.
29+
:param azns_action: Required. Azure action group reference.
3030
:type azns_action: ~azure.mgmt.monitor.models.AzNsActionGroup
3131
:param throttling_in_min: time (in minutes) for which Alerts should be
32-
throttled
32+
throttled or suppressed.
3333
:type throttling_in_min: int
3434
:param trigger: Required. The trigger condition that results in the alert
3535
rule being.

azure-mgmt-monitor/azure/mgmt/monitor/models/alerting_action_py3.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ class AlertingAction(Action):
2626
:param severity: Required. Severity of the alert. Possible values include:
2727
'0', '1', '2', '3', '4'
2828
:type severity: str or ~azure.mgmt.monitor.models.AlertSeverity
29-
:param azns_action: Required. azns notification group reference.
29+
:param azns_action: Required. Azure action group reference.
3030
:type azns_action: ~azure.mgmt.monitor.models.AzNsActionGroup
3131
:param throttling_in_min: time (in minutes) for which Alerts should be
32-
throttled
32+
throttled or suppressed.
3333
:type throttling_in_min: int
3434
:param trigger: Required. The trigger condition that results in the alert
3535
rule being.

azure-mgmt-monitor/azure/mgmt/monitor/models/az_ns_action_group.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@
1313

1414

1515
class AzNsActionGroup(Model):
16-
"""azns notification group.
16+
"""Azure action group.
1717
18-
:param action_group: Azure Group reference.
18+
:param action_group: Azure Action Group reference.
1919
:type action_group: list[str]
20-
:param email_subject: Custom subject for Azns email
21-
:type email_subject: str
22-
:param custom_webhook_payload: Custom webhook payload to be send to azns
20+
:param email_subject: Custom subject override for all email ids in Azure
2321
action group
22+
:type email_subject: str
23+
:param custom_webhook_payload: Custom payload to be sent for all webook
24+
URI in Azure action group
2425
:type custom_webhook_payload: str
2526
"""
2627

azure-mgmt-monitor/azure/mgmt/monitor/models/az_ns_action_group_py3.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@
1313

1414

1515
class AzNsActionGroup(Model):
16-
"""azns notification group.
16+
"""Azure action group.
1717
18-
:param action_group: Azure Group reference.
18+
:param action_group: Azure Action Group reference.
1919
:type action_group: list[str]
20-
:param email_subject: Custom subject for Azns email
21-
:type email_subject: str
22-
:param custom_webhook_payload: Custom webhook payload to be send to azns
20+
:param email_subject: Custom subject override for all email ids in Azure
2321
action group
22+
:type email_subject: str
23+
:param custom_webhook_payload: Custom payload to be sent for all webook
24+
URI in Azure action group
2425
:type custom_webhook_payload: str
2526
"""
2627

azure-mgmt-monitor/azure/mgmt/monitor/models/source.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ class Source(Model):
2121
:type query: str
2222
:param authorized_resources: List of Resource referred into query
2323
:type authorized_resources: list[str]
24-
:param datasource_id: Required. The resource uri over which log search
24+
:param data_source_id: Required. The resource uri over which log search
2525
query is to be run.
26-
:type datasource_id: str
26+
:type data_source_id: str
2727
:param query_type: Set value to ResultCount if query should be returning
2828
search result count. Set it to Number if its a metric query. Possible
2929
values include: 'ResultCount'
@@ -32,19 +32,19 @@ class Source(Model):
3232

3333
_validation = {
3434
'query': {'required': True},
35-
'datasource_id': {'required': True},
35+
'data_source_id': {'required': True},
3636
}
3737

3838
_attribute_map = {
3939
'query': {'key': 'query', 'type': 'str'},
4040
'authorized_resources': {'key': 'authorizedResources', 'type': '[str]'},
41-
'datasource_id': {'key': 'datasourceId', 'type': 'str'},
41+
'data_source_id': {'key': 'dataSourceId', 'type': 'str'},
4242
'query_type': {'key': 'queryType', 'type': 'str'},
4343
}
4444

4545
def __init__(self, **kwargs):
4646
super(Source, self).__init__(**kwargs)
4747
self.query = kwargs.get('query', None)
4848
self.authorized_resources = kwargs.get('authorized_resources', None)
49-
self.datasource_id = kwargs.get('datasource_id', None)
49+
self.data_source_id = kwargs.get('data_source_id', None)
5050
self.query_type = kwargs.get('query_type', None)

azure-mgmt-monitor/azure/mgmt/monitor/models/source_py3.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ class Source(Model):
2121
:type query: str
2222
:param authorized_resources: List of Resource referred into query
2323
:type authorized_resources: list[str]
24-
:param datasource_id: Required. The resource uri over which log search
24+
:param data_source_id: Required. The resource uri over which log search
2525
query is to be run.
26-
:type datasource_id: str
26+
:type data_source_id: str
2727
:param query_type: Set value to ResultCount if query should be returning
2828
search result count. Set it to Number if its a metric query. Possible
2929
values include: 'ResultCount'
@@ -32,19 +32,19 @@ class Source(Model):
3232

3333
_validation = {
3434
'query': {'required': True},
35-
'datasource_id': {'required': True},
35+
'data_source_id': {'required': True},
3636
}
3737

3838
_attribute_map = {
3939
'query': {'key': 'query', 'type': 'str'},
4040
'authorized_resources': {'key': 'authorizedResources', 'type': '[str]'},
41-
'datasource_id': {'key': 'datasourceId', 'type': 'str'},
41+
'data_source_id': {'key': 'dataSourceId', 'type': 'str'},
4242
'query_type': {'key': 'queryType', 'type': 'str'},
4343
}
4444

45-
def __init__(self, *, query: str, datasource_id: str, authorized_resources=None, query_type=None, **kwargs) -> None:
45+
def __init__(self, *, query: str, data_source_id: str, authorized_resources=None, query_type=None, **kwargs) -> None:
4646
super(Source, self).__init__(**kwargs)
4747
self.query = query
4848
self.authorized_resources = authorized_resources
49-
self.datasource_id = datasource_id
49+
self.data_source_id = data_source_id
5050
self.query_type = query_type

0 commit comments

Comments
 (0)