Skip to content

Commit 230a044

Browse files
author
SDKAuto
committed
CodeGen from PR 12234 in Azure/azure-rest-api-specs
Merge 2b0823617f8758f2f3be719edffe0a9b8bf23e44 into 9b8310b
1 parent e188de6 commit 230a044

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2017_11_01_preview/models/_models.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ class Baseline(Model):
2626
:type low_thresholds: list[float]
2727
:param high_thresholds: Required. The high thresholds of the baseline.
2828
:type high_thresholds: list[float]
29+
:param timestamps: the array of timestamps of the baselines.
30+
:type timestamps: list[datetime]
2931
"""
3032

3133
_validation = {
@@ -38,13 +40,15 @@ class Baseline(Model):
3840
'sensitivity': {'key': 'sensitivity', 'type': 'Sensitivity'},
3941
'low_thresholds': {'key': 'lowThresholds', 'type': '[float]'},
4042
'high_thresholds': {'key': 'highThresholds', 'type': '[float]'},
43+
'timestamps': {'key': 'timestamps', 'type': '[iso-8601]'},
4144
}
4245

4346
def __init__(self, **kwargs):
4447
super(Baseline, self).__init__(**kwargs)
4548
self.sensitivity = kwargs.get('sensitivity', None)
4649
self.low_thresholds = kwargs.get('low_thresholds', None)
4750
self.high_thresholds = kwargs.get('high_thresholds', None)
51+
self.timestamps = kwargs.get('timestamps', None)
4852

4953

5054
class BaselineMetadataValue(Model):

sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2017_11_01_preview/models/_models_py3.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ class Baseline(Model):
2626
:type low_thresholds: list[float]
2727
:param high_thresholds: Required. The high thresholds of the baseline.
2828
:type high_thresholds: list[float]
29+
:param timestamps: the array of timestamps of the baselines.
30+
:type timestamps: list[datetime]
2931
"""
3032

3133
_validation = {
@@ -38,13 +40,15 @@ class Baseline(Model):
3840
'sensitivity': {'key': 'sensitivity', 'type': 'Sensitivity'},
3941
'low_thresholds': {'key': 'lowThresholds', 'type': '[float]'},
4042
'high_thresholds': {'key': 'highThresholds', 'type': '[float]'},
43+
'timestamps': {'key': 'timestamps', 'type': '[iso-8601]'},
4144
}
4245

43-
def __init__(self, *, sensitivity, low_thresholds, high_thresholds, **kwargs) -> None:
46+
def __init__(self, *, sensitivity, low_thresholds, high_thresholds, timestamps=None, **kwargs) -> None:
4447
super(Baseline, self).__init__(**kwargs)
4548
self.sensitivity = sensitivity
4649
self.low_thresholds = low_thresholds
4750
self.high_thresholds = high_thresholds
51+
self.timestamps = timestamps
4852

4953

5054
class BaselineMetadataValue(Model):

sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2017_11_01_preview/operations/_metric_baseline_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def get(
127127
return client_raw_response
128128

129129
return deserialized
130-
get.metadata = {'url': '/{resourceUri}/providers/microsoft.insights/baseline/{metricName}'}
130+
get.metadata = {'url': '/{resourceUri}/providers/Microsoft.Insights/baseline/{metricName}'}
131131

132132
def calculate_baseline(
133133
self, resource_uri, time_series_information, custom_headers=None, raw=False, **operation_config):

sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2019_03_01/operations/_baselines_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,4 @@ def internal_paging(next_link=None):
152152
deserialized = models.SingleMetricBaselinePaged(internal_paging, self._deserialize.dependencies, header_dict)
153153

154154
return deserialized
155-
list.metadata = {'url': '/{resourceUri}/providers/microsoft.insights/metricBaselines'}
155+
list.metadata = {'url': '/{resourceUri}/providers/Microsoft.Insights/metricBaselines'}

0 commit comments

Comments
 (0)