byteplus-python-sdk-v2 3.0.54__py2.py3-none-any.whl → 3.0.55__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {byteplus_python_sdk_v2-3.0.54.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/METADATA +1 -1
- {byteplus_python_sdk_v2-3.0.54.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/RECORD +33 -14
- {byteplus_python_sdk_v2-3.0.54.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/top_level.txt +1 -0
- byteplussdkcloudmonitor/__init__.py +10 -0
- byteplussdkcloudmonitor/api/cloudmonitor_api.py +97 -0
- byteplussdkcloudmonitor/models/__init__.py +10 -0
- byteplussdkcloudmonitor/models/contact_send_result_for_list_alert_output.py +227 -0
- byteplussdkcloudmonitor/models/data_for_list_alert_group_output.py +27 -1
- byteplussdkcloudmonitor/models/data_for_list_alert_output.py +331 -0
- byteplussdkcloudmonitor/models/get_metric_data_request.py +27 -1
- byteplussdkcloudmonitor/models/list_alert_request.py +228 -0
- byteplussdkcloudmonitor/models/list_alert_response.py +227 -0
- byteplussdkcloudmonitor/models/metric_condition_for_list_alert_output.py +201 -0
- byteplussdkcloudmonitor/models/metric_data_result_for_get_metric_data_output.py +29 -3
- byteplussdkcloudmonitor/models/send_alert_contact_for_list_alert_output.py +175 -0
- byteplussdkcloudmonitor/models/send_alert_notification_for_list_alert_output.py +331 -0
- byteplussdkcloudmonitor/models/send_alert_ooss_for_list_alert_output.py +227 -0
- byteplussdkcloudmonitor/models/send_alert_result_for_list_alert_output.py +201 -0
- byteplussdkcloudmonitor/models/send_alert_webhook_for_list_alert_output.py +253 -0
- byteplussdkcore/api_client.py +1 -1
- byteplussdkcore/configuration.py +1 -1
- byteplussdkvs20260714/__init__.py +26 -0
- byteplussdkvs20260714/api/__init__.py +6 -0
- byteplussdkvs20260714/api/vs20260714_api.py +131 -0
- byteplussdkvs20260714/models/__init__.py +22 -0
- byteplussdkvs20260714/models/create_voice_task_request.py +387 -0
- byteplussdkvs20260714/models/create_voice_task_response.py +175 -0
- byteplussdkvs20260714/models/data_for_create_voice_task_output.py +123 -0
- byteplussdkvs20260714/models/number_info_list_for_create_voice_task_input.py +149 -0
- byteplussdkvs20260714/models/voice_content_for_create_voice_task_input.py +279 -0
- {byteplus_python_sdk_v2-3.0.54.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/WHEEL +0 -0
- {byteplus_python_sdk_v2-3.0.54.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/licenses/LICENSE.txt +0 -0
- {byteplus_python_sdk_v2-3.0.54.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/licenses/NOTICE.md +0 -0
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
cloudmonitor
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: common-version
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import pprint
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
import six
|
|
18
|
+
|
|
19
|
+
from byteplussdkcore.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class ListAlertResponse(object):
|
|
23
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
swagger_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
swagger_types = {
|
|
36
|
+
'alert_group_id': 'str',
|
|
37
|
+
'data': 'list[DataForListAlertOutput]',
|
|
38
|
+
'page_number': 'int',
|
|
39
|
+
'page_size': 'int',
|
|
40
|
+
'total_count': 'int'
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
attribute_map = {
|
|
44
|
+
'alert_group_id': 'AlertGroupId',
|
|
45
|
+
'data': 'Data',
|
|
46
|
+
'page_number': 'PageNumber',
|
|
47
|
+
'page_size': 'PageSize',
|
|
48
|
+
'total_count': 'TotalCount'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, alert_group_id=None, data=None, page_number=None, page_size=None, total_count=None, _configuration=None): # noqa: E501
|
|
52
|
+
"""ListAlertResponse - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
if _configuration is None:
|
|
54
|
+
_configuration = Configuration()
|
|
55
|
+
self._configuration = _configuration
|
|
56
|
+
|
|
57
|
+
self._alert_group_id = None
|
|
58
|
+
self._data = None
|
|
59
|
+
self._page_number = None
|
|
60
|
+
self._page_size = None
|
|
61
|
+
self._total_count = None
|
|
62
|
+
self.discriminator = None
|
|
63
|
+
|
|
64
|
+
if alert_group_id is not None:
|
|
65
|
+
self.alert_group_id = alert_group_id
|
|
66
|
+
if data is not None:
|
|
67
|
+
self.data = data
|
|
68
|
+
if page_number is not None:
|
|
69
|
+
self.page_number = page_number
|
|
70
|
+
if page_size is not None:
|
|
71
|
+
self.page_size = page_size
|
|
72
|
+
if total_count is not None:
|
|
73
|
+
self.total_count = total_count
|
|
74
|
+
|
|
75
|
+
@property
|
|
76
|
+
def alert_group_id(self):
|
|
77
|
+
"""Gets the alert_group_id of this ListAlertResponse. # noqa: E501
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
:return: The alert_group_id of this ListAlertResponse. # noqa: E501
|
|
81
|
+
:rtype: str
|
|
82
|
+
"""
|
|
83
|
+
return self._alert_group_id
|
|
84
|
+
|
|
85
|
+
@alert_group_id.setter
|
|
86
|
+
def alert_group_id(self, alert_group_id):
|
|
87
|
+
"""Sets the alert_group_id of this ListAlertResponse.
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
:param alert_group_id: The alert_group_id of this ListAlertResponse. # noqa: E501
|
|
91
|
+
:type: str
|
|
92
|
+
"""
|
|
93
|
+
|
|
94
|
+
self._alert_group_id = alert_group_id
|
|
95
|
+
|
|
96
|
+
@property
|
|
97
|
+
def data(self):
|
|
98
|
+
"""Gets the data of this ListAlertResponse. # noqa: E501
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
:return: The data of this ListAlertResponse. # noqa: E501
|
|
102
|
+
:rtype: list[DataForListAlertOutput]
|
|
103
|
+
"""
|
|
104
|
+
return self._data
|
|
105
|
+
|
|
106
|
+
@data.setter
|
|
107
|
+
def data(self, data):
|
|
108
|
+
"""Sets the data of this ListAlertResponse.
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
:param data: The data of this ListAlertResponse. # noqa: E501
|
|
112
|
+
:type: list[DataForListAlertOutput]
|
|
113
|
+
"""
|
|
114
|
+
|
|
115
|
+
self._data = data
|
|
116
|
+
|
|
117
|
+
@property
|
|
118
|
+
def page_number(self):
|
|
119
|
+
"""Gets the page_number of this ListAlertResponse. # noqa: E501
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
:return: The page_number of this ListAlertResponse. # noqa: E501
|
|
123
|
+
:rtype: int
|
|
124
|
+
"""
|
|
125
|
+
return self._page_number
|
|
126
|
+
|
|
127
|
+
@page_number.setter
|
|
128
|
+
def page_number(self, page_number):
|
|
129
|
+
"""Sets the page_number of this ListAlertResponse.
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
:param page_number: The page_number of this ListAlertResponse. # noqa: E501
|
|
133
|
+
:type: int
|
|
134
|
+
"""
|
|
135
|
+
|
|
136
|
+
self._page_number = page_number
|
|
137
|
+
|
|
138
|
+
@property
|
|
139
|
+
def page_size(self):
|
|
140
|
+
"""Gets the page_size of this ListAlertResponse. # noqa: E501
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
:return: The page_size of this ListAlertResponse. # noqa: E501
|
|
144
|
+
:rtype: int
|
|
145
|
+
"""
|
|
146
|
+
return self._page_size
|
|
147
|
+
|
|
148
|
+
@page_size.setter
|
|
149
|
+
def page_size(self, page_size):
|
|
150
|
+
"""Sets the page_size of this ListAlertResponse.
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
:param page_size: The page_size of this ListAlertResponse. # noqa: E501
|
|
154
|
+
:type: int
|
|
155
|
+
"""
|
|
156
|
+
|
|
157
|
+
self._page_size = page_size
|
|
158
|
+
|
|
159
|
+
@property
|
|
160
|
+
def total_count(self):
|
|
161
|
+
"""Gets the total_count of this ListAlertResponse. # noqa: E501
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
:return: The total_count of this ListAlertResponse. # noqa: E501
|
|
165
|
+
:rtype: int
|
|
166
|
+
"""
|
|
167
|
+
return self._total_count
|
|
168
|
+
|
|
169
|
+
@total_count.setter
|
|
170
|
+
def total_count(self, total_count):
|
|
171
|
+
"""Sets the total_count of this ListAlertResponse.
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
:param total_count: The total_count of this ListAlertResponse. # noqa: E501
|
|
175
|
+
:type: int
|
|
176
|
+
"""
|
|
177
|
+
|
|
178
|
+
self._total_count = total_count
|
|
179
|
+
|
|
180
|
+
def to_dict(self):
|
|
181
|
+
"""Returns the model properties as a dict"""
|
|
182
|
+
result = {}
|
|
183
|
+
|
|
184
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
185
|
+
value = getattr(self, attr)
|
|
186
|
+
if isinstance(value, list):
|
|
187
|
+
result[attr] = list(map(
|
|
188
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
189
|
+
value
|
|
190
|
+
))
|
|
191
|
+
elif hasattr(value, "to_dict"):
|
|
192
|
+
result[attr] = value.to_dict()
|
|
193
|
+
elif isinstance(value, dict):
|
|
194
|
+
result[attr] = dict(map(
|
|
195
|
+
lambda item: (item[0], item[1].to_dict())
|
|
196
|
+
if hasattr(item[1], "to_dict") else item,
|
|
197
|
+
value.items()
|
|
198
|
+
))
|
|
199
|
+
else:
|
|
200
|
+
result[attr] = value
|
|
201
|
+
if issubclass(ListAlertResponse, dict):
|
|
202
|
+
for key, value in self.items():
|
|
203
|
+
result[key] = value
|
|
204
|
+
|
|
205
|
+
return result
|
|
206
|
+
|
|
207
|
+
def to_str(self):
|
|
208
|
+
"""Returns the string representation of the model"""
|
|
209
|
+
return pprint.pformat(self.to_dict())
|
|
210
|
+
|
|
211
|
+
def __repr__(self):
|
|
212
|
+
"""For `print` and `pprint`"""
|
|
213
|
+
return self.to_str()
|
|
214
|
+
|
|
215
|
+
def __eq__(self, other):
|
|
216
|
+
"""Returns true if both objects are equal"""
|
|
217
|
+
if not isinstance(other, ListAlertResponse):
|
|
218
|
+
return False
|
|
219
|
+
|
|
220
|
+
return self.to_dict() == other.to_dict()
|
|
221
|
+
|
|
222
|
+
def __ne__(self, other):
|
|
223
|
+
"""Returns true if both objects are not equal"""
|
|
224
|
+
if not isinstance(other, ListAlertResponse):
|
|
225
|
+
return True
|
|
226
|
+
|
|
227
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
cloudmonitor
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: common-version
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import pprint
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
import six
|
|
18
|
+
|
|
19
|
+
from byteplussdkcore.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class MetricConditionForListAlertOutput(object):
|
|
23
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
swagger_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
swagger_types = {
|
|
36
|
+
'condition': 'str',
|
|
37
|
+
'current_value': 'str',
|
|
38
|
+
'metric': 'str',
|
|
39
|
+
'trigger_condition': 'str'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
attribute_map = {
|
|
43
|
+
'condition': 'Condition',
|
|
44
|
+
'current_value': 'CurrentValue',
|
|
45
|
+
'metric': 'Metric',
|
|
46
|
+
'trigger_condition': 'TriggerCondition'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self, condition=None, current_value=None, metric=None, trigger_condition=None, _configuration=None): # noqa: E501
|
|
50
|
+
"""MetricConditionForListAlertOutput - a model defined in Swagger""" # noqa: E501
|
|
51
|
+
if _configuration is None:
|
|
52
|
+
_configuration = Configuration()
|
|
53
|
+
self._configuration = _configuration
|
|
54
|
+
|
|
55
|
+
self._condition = None
|
|
56
|
+
self._current_value = None
|
|
57
|
+
self._metric = None
|
|
58
|
+
self._trigger_condition = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
if condition is not None:
|
|
62
|
+
self.condition = condition
|
|
63
|
+
if current_value is not None:
|
|
64
|
+
self.current_value = current_value
|
|
65
|
+
if metric is not None:
|
|
66
|
+
self.metric = metric
|
|
67
|
+
if trigger_condition is not None:
|
|
68
|
+
self.trigger_condition = trigger_condition
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def condition(self):
|
|
72
|
+
"""Gets the condition of this MetricConditionForListAlertOutput. # noqa: E501
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:return: The condition of this MetricConditionForListAlertOutput. # noqa: E501
|
|
76
|
+
:rtype: str
|
|
77
|
+
"""
|
|
78
|
+
return self._condition
|
|
79
|
+
|
|
80
|
+
@condition.setter
|
|
81
|
+
def condition(self, condition):
|
|
82
|
+
"""Sets the condition of this MetricConditionForListAlertOutput.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
:param condition: The condition of this MetricConditionForListAlertOutput. # noqa: E501
|
|
86
|
+
:type: str
|
|
87
|
+
"""
|
|
88
|
+
|
|
89
|
+
self._condition = condition
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def current_value(self):
|
|
93
|
+
"""Gets the current_value of this MetricConditionForListAlertOutput. # noqa: E501
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:return: The current_value of this MetricConditionForListAlertOutput. # noqa: E501
|
|
97
|
+
:rtype: str
|
|
98
|
+
"""
|
|
99
|
+
return self._current_value
|
|
100
|
+
|
|
101
|
+
@current_value.setter
|
|
102
|
+
def current_value(self, current_value):
|
|
103
|
+
"""Sets the current_value of this MetricConditionForListAlertOutput.
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
:param current_value: The current_value of this MetricConditionForListAlertOutput. # noqa: E501
|
|
107
|
+
:type: str
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
self._current_value = current_value
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def metric(self):
|
|
114
|
+
"""Gets the metric of this MetricConditionForListAlertOutput. # noqa: E501
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
:return: The metric of this MetricConditionForListAlertOutput. # noqa: E501
|
|
118
|
+
:rtype: str
|
|
119
|
+
"""
|
|
120
|
+
return self._metric
|
|
121
|
+
|
|
122
|
+
@metric.setter
|
|
123
|
+
def metric(self, metric):
|
|
124
|
+
"""Sets the metric of this MetricConditionForListAlertOutput.
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
:param metric: The metric of this MetricConditionForListAlertOutput. # noqa: E501
|
|
128
|
+
:type: str
|
|
129
|
+
"""
|
|
130
|
+
|
|
131
|
+
self._metric = metric
|
|
132
|
+
|
|
133
|
+
@property
|
|
134
|
+
def trigger_condition(self):
|
|
135
|
+
"""Gets the trigger_condition of this MetricConditionForListAlertOutput. # noqa: E501
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
:return: The trigger_condition of this MetricConditionForListAlertOutput. # noqa: E501
|
|
139
|
+
:rtype: str
|
|
140
|
+
"""
|
|
141
|
+
return self._trigger_condition
|
|
142
|
+
|
|
143
|
+
@trigger_condition.setter
|
|
144
|
+
def trigger_condition(self, trigger_condition):
|
|
145
|
+
"""Sets the trigger_condition of this MetricConditionForListAlertOutput.
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
:param trigger_condition: The trigger_condition of this MetricConditionForListAlertOutput. # noqa: E501
|
|
149
|
+
:type: str
|
|
150
|
+
"""
|
|
151
|
+
|
|
152
|
+
self._trigger_condition = trigger_condition
|
|
153
|
+
|
|
154
|
+
def to_dict(self):
|
|
155
|
+
"""Returns the model properties as a dict"""
|
|
156
|
+
result = {}
|
|
157
|
+
|
|
158
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
159
|
+
value = getattr(self, attr)
|
|
160
|
+
if isinstance(value, list):
|
|
161
|
+
result[attr] = list(map(
|
|
162
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
163
|
+
value
|
|
164
|
+
))
|
|
165
|
+
elif hasattr(value, "to_dict"):
|
|
166
|
+
result[attr] = value.to_dict()
|
|
167
|
+
elif isinstance(value, dict):
|
|
168
|
+
result[attr] = dict(map(
|
|
169
|
+
lambda item: (item[0], item[1].to_dict())
|
|
170
|
+
if hasattr(item[1], "to_dict") else item,
|
|
171
|
+
value.items()
|
|
172
|
+
))
|
|
173
|
+
else:
|
|
174
|
+
result[attr] = value
|
|
175
|
+
if issubclass(MetricConditionForListAlertOutput, dict):
|
|
176
|
+
for key, value in self.items():
|
|
177
|
+
result[key] = value
|
|
178
|
+
|
|
179
|
+
return result
|
|
180
|
+
|
|
181
|
+
def to_str(self):
|
|
182
|
+
"""Returns the string representation of the model"""
|
|
183
|
+
return pprint.pformat(self.to_dict())
|
|
184
|
+
|
|
185
|
+
def __repr__(self):
|
|
186
|
+
"""For `print` and `pprint`"""
|
|
187
|
+
return self.to_str()
|
|
188
|
+
|
|
189
|
+
def __eq__(self, other):
|
|
190
|
+
"""Returns true if both objects are equal"""
|
|
191
|
+
if not isinstance(other, MetricConditionForListAlertOutput):
|
|
192
|
+
return False
|
|
193
|
+
|
|
194
|
+
return self.to_dict() == other.to_dict()
|
|
195
|
+
|
|
196
|
+
def __ne__(self, other):
|
|
197
|
+
"""Returns true if both objects are not equal"""
|
|
198
|
+
if not isinstance(other, MetricConditionForListAlertOutput):
|
|
199
|
+
return True
|
|
200
|
+
|
|
201
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -35,16 +35,18 @@ class MetricDataResultForGetMetricDataOutput(object):
|
|
|
35
35
|
swagger_types = {
|
|
36
36
|
'data_points': 'list[DataPointForGetMetricDataOutput]',
|
|
37
37
|
'dimensions': 'list[DimensionForGetMetricDataOutput]',
|
|
38
|
-
'legend': 'str'
|
|
38
|
+
'legend': 'str',
|
|
39
|
+
'statistics_methods': 'str'
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
attribute_map = {
|
|
42
43
|
'data_points': 'DataPoints',
|
|
43
44
|
'dimensions': 'Dimensions',
|
|
44
|
-
'legend': 'Legend'
|
|
45
|
+
'legend': 'Legend',
|
|
46
|
+
'statistics_methods': 'StatisticsMethods'
|
|
45
47
|
}
|
|
46
48
|
|
|
47
|
-
def __init__(self, data_points=None, dimensions=None, legend=None, _configuration=None): # noqa: E501
|
|
49
|
+
def __init__(self, data_points=None, dimensions=None, legend=None, statistics_methods=None, _configuration=None): # noqa: E501
|
|
48
50
|
"""MetricDataResultForGetMetricDataOutput - a model defined in Swagger""" # noqa: E501
|
|
49
51
|
if _configuration is None:
|
|
50
52
|
_configuration = Configuration()
|
|
@@ -53,6 +55,7 @@ class MetricDataResultForGetMetricDataOutput(object):
|
|
|
53
55
|
self._data_points = None
|
|
54
56
|
self._dimensions = None
|
|
55
57
|
self._legend = None
|
|
58
|
+
self._statistics_methods = None
|
|
56
59
|
self.discriminator = None
|
|
57
60
|
|
|
58
61
|
if data_points is not None:
|
|
@@ -61,6 +64,8 @@ class MetricDataResultForGetMetricDataOutput(object):
|
|
|
61
64
|
self.dimensions = dimensions
|
|
62
65
|
if legend is not None:
|
|
63
66
|
self.legend = legend
|
|
67
|
+
if statistics_methods is not None:
|
|
68
|
+
self.statistics_methods = statistics_methods
|
|
64
69
|
|
|
65
70
|
@property
|
|
66
71
|
def data_points(self):
|
|
@@ -125,6 +130,27 @@ class MetricDataResultForGetMetricDataOutput(object):
|
|
|
125
130
|
|
|
126
131
|
self._legend = legend
|
|
127
132
|
|
|
133
|
+
@property
|
|
134
|
+
def statistics_methods(self):
|
|
135
|
+
"""Gets the statistics_methods of this MetricDataResultForGetMetricDataOutput. # noqa: E501
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
:return: The statistics_methods of this MetricDataResultForGetMetricDataOutput. # noqa: E501
|
|
139
|
+
:rtype: str
|
|
140
|
+
"""
|
|
141
|
+
return self._statistics_methods
|
|
142
|
+
|
|
143
|
+
@statistics_methods.setter
|
|
144
|
+
def statistics_methods(self, statistics_methods):
|
|
145
|
+
"""Sets the statistics_methods of this MetricDataResultForGetMetricDataOutput.
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
:param statistics_methods: The statistics_methods of this MetricDataResultForGetMetricDataOutput. # noqa: E501
|
|
149
|
+
:type: str
|
|
150
|
+
"""
|
|
151
|
+
|
|
152
|
+
self._statistics_methods = statistics_methods
|
|
153
|
+
|
|
128
154
|
def to_dict(self):
|
|
129
155
|
"""Returns the model properties as a dict"""
|
|
130
156
|
result = {}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
cloudmonitor
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: common-version
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import pprint
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
import six
|
|
18
|
+
|
|
19
|
+
from byteplussdkcore.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class SendAlertContactForListAlertOutput(object):
|
|
23
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
swagger_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
swagger_types = {
|
|
36
|
+
'contact_name': 'str',
|
|
37
|
+
'contact_send_results': 'list[ContactSendResultForListAlertOutput]',
|
|
38
|
+
'duty_schedule_id': 'str'
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
attribute_map = {
|
|
42
|
+
'contact_name': 'ContactName',
|
|
43
|
+
'contact_send_results': 'ContactSendResults',
|
|
44
|
+
'duty_schedule_id': 'DutyScheduleId'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
def __init__(self, contact_name=None, contact_send_results=None, duty_schedule_id=None, _configuration=None): # noqa: E501
|
|
48
|
+
"""SendAlertContactForListAlertOutput - a model defined in Swagger""" # noqa: E501
|
|
49
|
+
if _configuration is None:
|
|
50
|
+
_configuration = Configuration()
|
|
51
|
+
self._configuration = _configuration
|
|
52
|
+
|
|
53
|
+
self._contact_name = None
|
|
54
|
+
self._contact_send_results = None
|
|
55
|
+
self._duty_schedule_id = None
|
|
56
|
+
self.discriminator = None
|
|
57
|
+
|
|
58
|
+
if contact_name is not None:
|
|
59
|
+
self.contact_name = contact_name
|
|
60
|
+
if contact_send_results is not None:
|
|
61
|
+
self.contact_send_results = contact_send_results
|
|
62
|
+
if duty_schedule_id is not None:
|
|
63
|
+
self.duty_schedule_id = duty_schedule_id
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def contact_name(self):
|
|
67
|
+
"""Gets the contact_name of this SendAlertContactForListAlertOutput. # noqa: E501
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
:return: The contact_name of this SendAlertContactForListAlertOutput. # noqa: E501
|
|
71
|
+
:rtype: str
|
|
72
|
+
"""
|
|
73
|
+
return self._contact_name
|
|
74
|
+
|
|
75
|
+
@contact_name.setter
|
|
76
|
+
def contact_name(self, contact_name):
|
|
77
|
+
"""Sets the contact_name of this SendAlertContactForListAlertOutput.
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
:param contact_name: The contact_name of this SendAlertContactForListAlertOutput. # noqa: E501
|
|
81
|
+
:type: str
|
|
82
|
+
"""
|
|
83
|
+
|
|
84
|
+
self._contact_name = contact_name
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
def contact_send_results(self):
|
|
88
|
+
"""Gets the contact_send_results of this SendAlertContactForListAlertOutput. # noqa: E501
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
:return: The contact_send_results of this SendAlertContactForListAlertOutput. # noqa: E501
|
|
92
|
+
:rtype: list[ContactSendResultForListAlertOutput]
|
|
93
|
+
"""
|
|
94
|
+
return self._contact_send_results
|
|
95
|
+
|
|
96
|
+
@contact_send_results.setter
|
|
97
|
+
def contact_send_results(self, contact_send_results):
|
|
98
|
+
"""Sets the contact_send_results of this SendAlertContactForListAlertOutput.
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
:param contact_send_results: The contact_send_results of this SendAlertContactForListAlertOutput. # noqa: E501
|
|
102
|
+
:type: list[ContactSendResultForListAlertOutput]
|
|
103
|
+
"""
|
|
104
|
+
|
|
105
|
+
self._contact_send_results = contact_send_results
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def duty_schedule_id(self):
|
|
109
|
+
"""Gets the duty_schedule_id of this SendAlertContactForListAlertOutput. # noqa: E501
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
:return: The duty_schedule_id of this SendAlertContactForListAlertOutput. # noqa: E501
|
|
113
|
+
:rtype: str
|
|
114
|
+
"""
|
|
115
|
+
return self._duty_schedule_id
|
|
116
|
+
|
|
117
|
+
@duty_schedule_id.setter
|
|
118
|
+
def duty_schedule_id(self, duty_schedule_id):
|
|
119
|
+
"""Sets the duty_schedule_id of this SendAlertContactForListAlertOutput.
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
:param duty_schedule_id: The duty_schedule_id of this SendAlertContactForListAlertOutput. # noqa: E501
|
|
123
|
+
:type: str
|
|
124
|
+
"""
|
|
125
|
+
|
|
126
|
+
self._duty_schedule_id = duty_schedule_id
|
|
127
|
+
|
|
128
|
+
def to_dict(self):
|
|
129
|
+
"""Returns the model properties as a dict"""
|
|
130
|
+
result = {}
|
|
131
|
+
|
|
132
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
133
|
+
value = getattr(self, attr)
|
|
134
|
+
if isinstance(value, list):
|
|
135
|
+
result[attr] = list(map(
|
|
136
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
137
|
+
value
|
|
138
|
+
))
|
|
139
|
+
elif hasattr(value, "to_dict"):
|
|
140
|
+
result[attr] = value.to_dict()
|
|
141
|
+
elif isinstance(value, dict):
|
|
142
|
+
result[attr] = dict(map(
|
|
143
|
+
lambda item: (item[0], item[1].to_dict())
|
|
144
|
+
if hasattr(item[1], "to_dict") else item,
|
|
145
|
+
value.items()
|
|
146
|
+
))
|
|
147
|
+
else:
|
|
148
|
+
result[attr] = value
|
|
149
|
+
if issubclass(SendAlertContactForListAlertOutput, dict):
|
|
150
|
+
for key, value in self.items():
|
|
151
|
+
result[key] = value
|
|
152
|
+
|
|
153
|
+
return result
|
|
154
|
+
|
|
155
|
+
def to_str(self):
|
|
156
|
+
"""Returns the string representation of the model"""
|
|
157
|
+
return pprint.pformat(self.to_dict())
|
|
158
|
+
|
|
159
|
+
def __repr__(self):
|
|
160
|
+
"""For `print` and `pprint`"""
|
|
161
|
+
return self.to_str()
|
|
162
|
+
|
|
163
|
+
def __eq__(self, other):
|
|
164
|
+
"""Returns true if both objects are equal"""
|
|
165
|
+
if not isinstance(other, SendAlertContactForListAlertOutput):
|
|
166
|
+
return False
|
|
167
|
+
|
|
168
|
+
return self.to_dict() == other.to_dict()
|
|
169
|
+
|
|
170
|
+
def __ne__(self, other):
|
|
171
|
+
"""Returns true if both objects are not equal"""
|
|
172
|
+
if not isinstance(other, SendAlertContactForListAlertOutput):
|
|
173
|
+
return True
|
|
174
|
+
|
|
175
|
+
return self.to_dict() != other.to_dict()
|