-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR monitor/resource-manager] Adding patch support for SQR API (#…
…2596) * Generated from f53526896e5c001f79bd46ca892f825172b53abf Merge branch 'master' into patchsupport * Generated from f53526896e5c001f79bd46ca892f825172b53abf Merge branch 'master' into patchsupport * Generated from b37d3ace14508e3bc3f87ee29b7f2ad0b7025f67 Resolving multiple model issue Changes - 1. Renamed "MetricTrigger" to "LogMetricTrigger" 2. Aligned "Resources" to other specs
- Loading branch information
1 parent
7d3085e
commit eac2d5c
Showing
11 changed files
with
259 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
azure-mgmt-monitor/azure/mgmt/monitor/models/log_metric_trigger.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# 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 LogMetricTrigger(Model): | ||
"""LogMetricTrigger. | ||
:param threshold_operator: Evaluation operation for Metric -'GreaterThan' | ||
or 'LessThan' or 'Equal'. Possible values include: 'GreaterThan', | ||
'LessThan', 'Equal' | ||
:type threshold_operator: str or | ||
~azure.mgmt.monitor.models.ConditionalOperator | ||
:param threshold: | ||
:type threshold: float | ||
:param metric_trigger_type: Metric Trigger Type - 'Consecutive' or | ||
'Total'. Possible values include: 'Consecutive', 'Total' | ||
:type metric_trigger_type: str or | ||
~azure.mgmt.monitor.models.MetricTriggerType | ||
:param metric_column: Evaluation of metric on a particular column | ||
:type metric_column: str | ||
""" | ||
|
||
_attribute_map = { | ||
'threshold_operator': {'key': 'thresholdOperator', 'type': 'str'}, | ||
'threshold': {'key': 'threshold', 'type': 'float'}, | ||
'metric_trigger_type': {'key': 'metricTriggerType', 'type': 'str'}, | ||
'metric_column': {'key': 'metricColumn', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(LogMetricTrigger, self).__init__(**kwargs) | ||
self.threshold_operator = kwargs.get('threshold_operator', None) | ||
self.threshold = kwargs.get('threshold', None) | ||
self.metric_trigger_type = kwargs.get('metric_trigger_type', None) | ||
self.metric_column = kwargs.get('metric_column', None) |
45 changes: 45 additions & 0 deletions
45
azure-mgmt-monitor/azure/mgmt/monitor/models/log_metric_trigger_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# 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 LogMetricTrigger(Model): | ||
"""LogMetricTrigger. | ||
:param threshold_operator: Evaluation operation for Metric -'GreaterThan' | ||
or 'LessThan' or 'Equal'. Possible values include: 'GreaterThan', | ||
'LessThan', 'Equal' | ||
:type threshold_operator: str or | ||
~azure.mgmt.monitor.models.ConditionalOperator | ||
:param threshold: | ||
:type threshold: float | ||
:param metric_trigger_type: Metric Trigger Type - 'Consecutive' or | ||
'Total'. Possible values include: 'Consecutive', 'Total' | ||
:type metric_trigger_type: str or | ||
~azure.mgmt.monitor.models.MetricTriggerType | ||
:param metric_column: Evaluation of metric on a particular column | ||
:type metric_column: str | ||
""" | ||
|
||
_attribute_map = { | ||
'threshold_operator': {'key': 'thresholdOperator', 'type': 'str'}, | ||
'threshold': {'key': 'threshold', 'type': 'float'}, | ||
'metric_trigger_type': {'key': 'metricTriggerType', 'type': 'str'}, | ||
'metric_column': {'key': 'metricColumn', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, threshold_operator=None, threshold: float=None, metric_trigger_type=None, metric_column: str=None, **kwargs) -> None: | ||
super(LogMetricTrigger, self).__init__(**kwargs) | ||
self.threshold_operator = threshold_operator | ||
self.threshold = threshold | ||
self.metric_trigger_type = metric_trigger_type | ||
self.metric_column = metric_column |
34 changes: 34 additions & 0 deletions
34
azure-mgmt-monitor/azure/mgmt/monitor/models/log_search_rule_resource_patch.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# 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 LogSearchRuleResourcePatch(Model): | ||
"""The log search rule resource for patch operations. | ||
:param tags: Resource tags | ||
:type tags: dict[str, str] | ||
:param enabled: The flag which indicates whether the Log Search rule is | ||
enabled. Value should be true or false. Possible values include: 'true', | ||
'false' | ||
:type enabled: str or ~azure.mgmt.monitor.models.Enabled | ||
""" | ||
|
||
_attribute_map = { | ||
'tags': {'key': 'tags', 'type': '{str}'}, | ||
'enabled': {'key': 'properties.enabled', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(LogSearchRuleResourcePatch, self).__init__(**kwargs) | ||
self.tags = kwargs.get('tags', None) | ||
self.enabled = kwargs.get('enabled', None) |
34 changes: 34 additions & 0 deletions
34
azure-mgmt-monitor/azure/mgmt/monitor/models/log_search_rule_resource_patch_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# 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 LogSearchRuleResourcePatch(Model): | ||
"""The log search rule resource for patch operations. | ||
:param tags: Resource tags | ||
:type tags: dict[str, str] | ||
:param enabled: The flag which indicates whether the Log Search rule is | ||
enabled. Value should be true or false. Possible values include: 'true', | ||
'false' | ||
:type enabled: str or ~azure.mgmt.monitor.models.Enabled | ||
""" | ||
|
||
_attribute_map = { | ||
'tags': {'key': 'tags', 'type': '{str}'}, | ||
'enabled': {'key': 'properties.enabled', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, tags=None, enabled=None, **kwargs) -> None: | ||
super(LogSearchRuleResourcePatch, self).__init__(**kwargs) | ||
self.tags = tags | ||
self.enabled = enabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.