byteplus-python-sdk-v2 3.0.53__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.53.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/METADATA +1 -1
- {byteplus_python_sdk_v2-3.0.53.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/RECORD +63 -33
- {byteplus_python_sdk_v2-3.0.53.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/top_level.txt +2 -0
- byteplussdkclawsentry/__init__.py +24 -0
- byteplussdkclawsentry/api/__init__.py +6 -0
- byteplussdkclawsentry/api/clawsentry_api.py +131 -0
- byteplussdkclawsentry/models/__init__.py +20 -0
- byteplussdkclawsentry/models/base_for_create_claw_input.py +126 -0
- byteplussdkclawsentry/models/create_claw_request.py +251 -0
- byteplussdkclawsentry/models/create_claw_response.py +279 -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
- byteplussdkcore/endpoint/providers/default_provider.py +7 -0
- byteplussdkcore/endpoint/providers/standard_provider.py +1 -0
- byteplussdkcpaas/__init__.py +4 -0
- byteplussdkcpaas/models/__init__.py +4 -0
- byteplussdkcpaas/models/create_template_v2_request.py +27 -1
- byteplussdkcpaas/models/data_for_get_template_v2_output.py +79 -1
- byteplussdkcpaas/models/element_style_for_create_template_v2_input.py +497 -3
- byteplussdkcpaas/models/element_style_for_get_template_v2_output.py +497 -3
- byteplussdkcpaas/models/extend_attrs_for_create_template_v2_input.py +79 -1
- byteplussdkcpaas/models/extend_attrs_for_get_template_v2_output.py +79 -1
- byteplussdkcpaas/models/item_for_create_template_v2_input.py +149 -0
- byteplussdkcpaas/models/item_for_get_template_v2_output.py +149 -0
- byteplussdkcpaas/models/page_dto_list_for_create_template_v2_input.py +29 -3
- byteplussdkcpaas/models/page_dto_list_for_get_template_v2_output.py +29 -3
- byteplussdkcpaas/models/page_element_dto_list_for_create_template_v2_input.py +29 -3
- byteplussdkcpaas/models/page_element_dto_list_for_get_template_v2_output.py +29 -3
- byteplussdkcpaas/models/template_button_list_for_create_template_v2_input.py +227 -0
- byteplussdkcpaas/models/template_button_list_for_get_template_v2_output.py +227 -0
- byteplussdkcpaas/models/template_list_for_create_template_v2_input.py +235 -1
- byteplussdkcpaas/models/template_list_for_get_template_v2_output.py +235 -1
- byteplussdkcpaas/models/template_status_for_list_template_v2_output.py +79 -1
- byteplussdkcpaas/models/variables_dto_list_for_create_template_v2_input.py +27 -1
- byteplussdkcpaas/models/variables_dto_list_for_get_template_v2_output.py +27 -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.53.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/WHEEL +0 -0
- {byteplus_python_sdk_v2-3.0.53.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/licenses/LICENSE.txt +0 -0
- {byteplus_python_sdk_v2-3.0.53.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/licenses/NOTICE.md +0 -0
|
@@ -32,6 +32,7 @@ from byteplussdkcloudmonitor.models.condition_for_update_rule_input import Condi
|
|
|
32
32
|
from byteplussdkcloudmonitor.models.contact_for_list_contact_group_by_ids_output import ContactForListContactGroupByIdsOutput
|
|
33
33
|
from byteplussdkcloudmonitor.models.contact_for_list_contact_groups_output import ContactForListContactGroupsOutput
|
|
34
34
|
from byteplussdkcloudmonitor.models.contact_group_for_list_contacts_output import ContactGroupForListContactsOutput
|
|
35
|
+
from byteplussdkcloudmonitor.models.contact_send_result_for_list_alert_output import ContactSendResultForListAlertOutput
|
|
35
36
|
from byteplussdkcloudmonitor.models.convert_condition_for_update_rule_input import ConvertConditionForUpdateRuleInput
|
|
36
37
|
from byteplussdkcloudmonitor.models.convert_tag_for_create_rule_input import ConvertTagForCreateRuleInput
|
|
37
38
|
from byteplussdkcloudmonitor.models.convert_tag_for_list_rules_by_ids_output import ConvertTagForListRulesByIdsOutput
|
|
@@ -66,6 +67,7 @@ from byteplussdkcloudmonitor.models.data_for_enable_event_rule_output import Dat
|
|
|
66
67
|
from byteplussdkcloudmonitor.models.data_for_get_metric_data_output import DataForGetMetricDataOutput
|
|
67
68
|
from byteplussdkcloudmonitor.models.data_for_get_top_data_output import DataForGetTopDataOutput
|
|
68
69
|
from byteplussdkcloudmonitor.models.data_for_list_alert_group_output import DataForListAlertGroupOutput
|
|
70
|
+
from byteplussdkcloudmonitor.models.data_for_list_alert_output import DataForListAlertOutput
|
|
69
71
|
from byteplussdkcloudmonitor.models.data_for_list_alert_templates_output import DataForListAlertTemplatesOutput
|
|
70
72
|
from byteplussdkcloudmonitor.models.data_for_list_contact_group_by_ids_output import DataForListContactGroupByIdsOutput
|
|
71
73
|
from byteplussdkcloudmonitor.models.data_for_list_contact_groups_output import DataForListContactGroupsOutput
|
|
@@ -152,6 +154,8 @@ from byteplussdkcloudmonitor.models.level_condition_for_update_alert_template_in
|
|
|
152
154
|
from byteplussdkcloudmonitor.models.level_condition_for_update_rule_input import LevelConditionForUpdateRuleInput
|
|
153
155
|
from byteplussdkcloudmonitor.models.list_alert_group_request import ListAlertGroupRequest
|
|
154
156
|
from byteplussdkcloudmonitor.models.list_alert_group_response import ListAlertGroupResponse
|
|
157
|
+
from byteplussdkcloudmonitor.models.list_alert_request import ListAlertRequest
|
|
158
|
+
from byteplussdkcloudmonitor.models.list_alert_response import ListAlertResponse
|
|
155
159
|
from byteplussdkcloudmonitor.models.list_alert_templates_request import ListAlertTemplatesRequest
|
|
156
160
|
from byteplussdkcloudmonitor.models.list_alert_templates_response import ListAlertTemplatesResponse
|
|
157
161
|
from byteplussdkcloudmonitor.models.list_contact_group_by_ids_request import ListContactGroupByIdsRequest
|
|
@@ -219,6 +223,7 @@ from byteplussdkcloudmonitor.models.meta_for_list_silence_policy_output import M
|
|
|
219
223
|
from byteplussdkcloudmonitor.models.meta_for_update_object_group_input import MetaForUpdateObjectGroupInput
|
|
220
224
|
from byteplussdkcloudmonitor.models.meta_for_update_rule_input import MetaForUpdateRuleInput
|
|
221
225
|
from byteplussdkcloudmonitor.models.meta_for_update_silence_policy_input import MetaForUpdateSilencePolicyInput
|
|
226
|
+
from byteplussdkcloudmonitor.models.metric_condition_for_list_alert_output import MetricConditionForListAlertOutput
|
|
222
227
|
from byteplussdkcloudmonitor.models.metric_data_result_for_get_metric_data_output import MetricDataResultForGetMetricDataOutput
|
|
223
228
|
from byteplussdkcloudmonitor.models.modify_state_of_silence_policy_by_ids_request import ModifyStateOfSilencePolicyByIdsRequest
|
|
224
229
|
from byteplussdkcloudmonitor.models.modify_state_of_silence_policy_by_ids_response import ModifyStateOfSilencePolicyByIdsResponse
|
|
@@ -274,6 +279,11 @@ from byteplussdkcloudmonitor.models.recovery_notify_for_list_rules_output import
|
|
|
274
279
|
from byteplussdkcloudmonitor.models.recovery_notify_for_update_alert_template_input import RecoveryNotifyForUpdateAlertTemplateInput
|
|
275
280
|
from byteplussdkcloudmonitor.models.recovery_notify_for_update_rule_input import RecoveryNotifyForUpdateRuleInput
|
|
276
281
|
from byteplussdkcloudmonitor.models.rule_for_list_object_groups_output import RuleForListObjectGroupsOutput
|
|
282
|
+
from byteplussdkcloudmonitor.models.send_alert_contact_for_list_alert_output import SendAlertContactForListAlertOutput
|
|
283
|
+
from byteplussdkcloudmonitor.models.send_alert_notification_for_list_alert_output import SendAlertNotificationForListAlertOutput
|
|
284
|
+
from byteplussdkcloudmonitor.models.send_alert_ooss_for_list_alert_output import SendAlertOOSsForListAlertOutput
|
|
285
|
+
from byteplussdkcloudmonitor.models.send_alert_result_for_list_alert_output import SendAlertResultForListAlertOutput
|
|
286
|
+
from byteplussdkcloudmonitor.models.send_alert_webhook_for_list_alert_output import SendAlertWebhookForListAlertOutput
|
|
277
287
|
from byteplussdkcloudmonitor.models.send_result_for_list_send_alert_output import SendResultForListSendAlertOutput
|
|
278
288
|
from byteplussdkcloudmonitor.models.set_state_of_rules_by_ids_request import SetStateOfRulesByIdsRequest
|
|
279
289
|
from byteplussdkcloudmonitor.models.set_state_of_rules_by_ids_response import SetStateOfRulesByIdsResponse
|
|
@@ -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 ContactSendResultForListAlertOutput(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_method': 'str',
|
|
37
|
+
'alert_method_val': 'str',
|
|
38
|
+
'err_msg': 'str',
|
|
39
|
+
'status': 'str',
|
|
40
|
+
'success': 'bool'
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
attribute_map = {
|
|
44
|
+
'alert_method': 'AlertMethod',
|
|
45
|
+
'alert_method_val': 'AlertMethodVal',
|
|
46
|
+
'err_msg': 'ErrMsg',
|
|
47
|
+
'status': 'Status',
|
|
48
|
+
'success': 'Success'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, alert_method=None, alert_method_val=None, err_msg=None, status=None, success=None, _configuration=None): # noqa: E501
|
|
52
|
+
"""ContactSendResultForListAlertOutput - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
if _configuration is None:
|
|
54
|
+
_configuration = Configuration()
|
|
55
|
+
self._configuration = _configuration
|
|
56
|
+
|
|
57
|
+
self._alert_method = None
|
|
58
|
+
self._alert_method_val = None
|
|
59
|
+
self._err_msg = None
|
|
60
|
+
self._status = None
|
|
61
|
+
self._success = None
|
|
62
|
+
self.discriminator = None
|
|
63
|
+
|
|
64
|
+
if alert_method is not None:
|
|
65
|
+
self.alert_method = alert_method
|
|
66
|
+
if alert_method_val is not None:
|
|
67
|
+
self.alert_method_val = alert_method_val
|
|
68
|
+
if err_msg is not None:
|
|
69
|
+
self.err_msg = err_msg
|
|
70
|
+
if status is not None:
|
|
71
|
+
self.status = status
|
|
72
|
+
if success is not None:
|
|
73
|
+
self.success = success
|
|
74
|
+
|
|
75
|
+
@property
|
|
76
|
+
def alert_method(self):
|
|
77
|
+
"""Gets the alert_method of this ContactSendResultForListAlertOutput. # noqa: E501
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
:return: The alert_method of this ContactSendResultForListAlertOutput. # noqa: E501
|
|
81
|
+
:rtype: str
|
|
82
|
+
"""
|
|
83
|
+
return self._alert_method
|
|
84
|
+
|
|
85
|
+
@alert_method.setter
|
|
86
|
+
def alert_method(self, alert_method):
|
|
87
|
+
"""Sets the alert_method of this ContactSendResultForListAlertOutput.
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
:param alert_method: The alert_method of this ContactSendResultForListAlertOutput. # noqa: E501
|
|
91
|
+
:type: str
|
|
92
|
+
"""
|
|
93
|
+
|
|
94
|
+
self._alert_method = alert_method
|
|
95
|
+
|
|
96
|
+
@property
|
|
97
|
+
def alert_method_val(self):
|
|
98
|
+
"""Gets the alert_method_val of this ContactSendResultForListAlertOutput. # noqa: E501
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
:return: The alert_method_val of this ContactSendResultForListAlertOutput. # noqa: E501
|
|
102
|
+
:rtype: str
|
|
103
|
+
"""
|
|
104
|
+
return self._alert_method_val
|
|
105
|
+
|
|
106
|
+
@alert_method_val.setter
|
|
107
|
+
def alert_method_val(self, alert_method_val):
|
|
108
|
+
"""Sets the alert_method_val of this ContactSendResultForListAlertOutput.
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
:param alert_method_val: The alert_method_val of this ContactSendResultForListAlertOutput. # noqa: E501
|
|
112
|
+
:type: str
|
|
113
|
+
"""
|
|
114
|
+
|
|
115
|
+
self._alert_method_val = alert_method_val
|
|
116
|
+
|
|
117
|
+
@property
|
|
118
|
+
def err_msg(self):
|
|
119
|
+
"""Gets the err_msg of this ContactSendResultForListAlertOutput. # noqa: E501
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
:return: The err_msg of this ContactSendResultForListAlertOutput. # noqa: E501
|
|
123
|
+
:rtype: str
|
|
124
|
+
"""
|
|
125
|
+
return self._err_msg
|
|
126
|
+
|
|
127
|
+
@err_msg.setter
|
|
128
|
+
def err_msg(self, err_msg):
|
|
129
|
+
"""Sets the err_msg of this ContactSendResultForListAlertOutput.
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
:param err_msg: The err_msg of this ContactSendResultForListAlertOutput. # noqa: E501
|
|
133
|
+
:type: str
|
|
134
|
+
"""
|
|
135
|
+
|
|
136
|
+
self._err_msg = err_msg
|
|
137
|
+
|
|
138
|
+
@property
|
|
139
|
+
def status(self):
|
|
140
|
+
"""Gets the status of this ContactSendResultForListAlertOutput. # noqa: E501
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
:return: The status of this ContactSendResultForListAlertOutput. # noqa: E501
|
|
144
|
+
:rtype: str
|
|
145
|
+
"""
|
|
146
|
+
return self._status
|
|
147
|
+
|
|
148
|
+
@status.setter
|
|
149
|
+
def status(self, status):
|
|
150
|
+
"""Sets the status of this ContactSendResultForListAlertOutput.
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
:param status: The status of this ContactSendResultForListAlertOutput. # noqa: E501
|
|
154
|
+
:type: str
|
|
155
|
+
"""
|
|
156
|
+
|
|
157
|
+
self._status = status
|
|
158
|
+
|
|
159
|
+
@property
|
|
160
|
+
def success(self):
|
|
161
|
+
"""Gets the success of this ContactSendResultForListAlertOutput. # noqa: E501
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
:return: The success of this ContactSendResultForListAlertOutput. # noqa: E501
|
|
165
|
+
:rtype: bool
|
|
166
|
+
"""
|
|
167
|
+
return self._success
|
|
168
|
+
|
|
169
|
+
@success.setter
|
|
170
|
+
def success(self, success):
|
|
171
|
+
"""Sets the success of this ContactSendResultForListAlertOutput.
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
:param success: The success of this ContactSendResultForListAlertOutput. # noqa: E501
|
|
175
|
+
:type: bool
|
|
176
|
+
"""
|
|
177
|
+
|
|
178
|
+
self._success = success
|
|
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(ContactSendResultForListAlertOutput, 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, ContactSendResultForListAlertOutput):
|
|
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, ContactSendResultForListAlertOutput):
|
|
225
|
+
return True
|
|
226
|
+
|
|
227
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -47,6 +47,7 @@ class DataForListAlertGroupOutput(object):
|
|
|
47
47
|
'resource_type': 'str',
|
|
48
48
|
'rule_id': 'str',
|
|
49
49
|
'rule_name': 'str',
|
|
50
|
+
'rule_trigger_condition': 'str',
|
|
50
51
|
'start_at': 'str',
|
|
51
52
|
'sub_namespace': 'str'
|
|
52
53
|
}
|
|
@@ -66,11 +67,12 @@ class DataForListAlertGroupOutput(object):
|
|
|
66
67
|
'resource_type': 'ResourceType',
|
|
67
68
|
'rule_id': 'RuleId',
|
|
68
69
|
'rule_name': 'RuleName',
|
|
70
|
+
'rule_trigger_condition': 'RuleTriggerCondition',
|
|
69
71
|
'start_at': 'StartAt',
|
|
70
72
|
'sub_namespace': 'SubNamespace'
|
|
71
73
|
}
|
|
72
74
|
|
|
73
|
-
def __init__(self, alert_state=None, alert_type=None, dimension=None, duration=None, end_at=None, id=None, level=None, namespace=None, region=None, resource_id=None, resource_name=None, resource_type=None, rule_id=None, rule_name=None, start_at=None, sub_namespace=None, _configuration=None): # noqa: E501
|
|
75
|
+
def __init__(self, alert_state=None, alert_type=None, dimension=None, duration=None, end_at=None, id=None, level=None, namespace=None, region=None, resource_id=None, resource_name=None, resource_type=None, rule_id=None, rule_name=None, rule_trigger_condition=None, start_at=None, sub_namespace=None, _configuration=None): # noqa: E501
|
|
74
76
|
"""DataForListAlertGroupOutput - a model defined in Swagger""" # noqa: E501
|
|
75
77
|
if _configuration is None:
|
|
76
78
|
_configuration = Configuration()
|
|
@@ -90,6 +92,7 @@ class DataForListAlertGroupOutput(object):
|
|
|
90
92
|
self._resource_type = None
|
|
91
93
|
self._rule_id = None
|
|
92
94
|
self._rule_name = None
|
|
95
|
+
self._rule_trigger_condition = None
|
|
93
96
|
self._start_at = None
|
|
94
97
|
self._sub_namespace = None
|
|
95
98
|
self.discriminator = None
|
|
@@ -122,6 +125,8 @@ class DataForListAlertGroupOutput(object):
|
|
|
122
125
|
self.rule_id = rule_id
|
|
123
126
|
if rule_name is not None:
|
|
124
127
|
self.rule_name = rule_name
|
|
128
|
+
if rule_trigger_condition is not None:
|
|
129
|
+
self.rule_trigger_condition = rule_trigger_condition
|
|
125
130
|
if start_at is not None:
|
|
126
131
|
self.start_at = start_at
|
|
127
132
|
if sub_namespace is not None:
|
|
@@ -421,6 +426,27 @@ class DataForListAlertGroupOutput(object):
|
|
|
421
426
|
|
|
422
427
|
self._rule_name = rule_name
|
|
423
428
|
|
|
429
|
+
@property
|
|
430
|
+
def rule_trigger_condition(self):
|
|
431
|
+
"""Gets the rule_trigger_condition of this DataForListAlertGroupOutput. # noqa: E501
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
:return: The rule_trigger_condition of this DataForListAlertGroupOutput. # noqa: E501
|
|
435
|
+
:rtype: str
|
|
436
|
+
"""
|
|
437
|
+
return self._rule_trigger_condition
|
|
438
|
+
|
|
439
|
+
@rule_trigger_condition.setter
|
|
440
|
+
def rule_trigger_condition(self, rule_trigger_condition):
|
|
441
|
+
"""Sets the rule_trigger_condition of this DataForListAlertGroupOutput.
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
:param rule_trigger_condition: The rule_trigger_condition of this DataForListAlertGroupOutput. # noqa: E501
|
|
445
|
+
:type: str
|
|
446
|
+
"""
|
|
447
|
+
|
|
448
|
+
self._rule_trigger_condition = rule_trigger_condition
|
|
449
|
+
|
|
424
450
|
@property
|
|
425
451
|
def start_at(self):
|
|
426
452
|
"""Gets the start_at of this DataForListAlertGroupOutput. # noqa: E501
|
|
@@ -0,0 +1,331 @@
|
|
|
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 DataForListAlertOutput(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
|
+
'create_at': 'str',
|
|
37
|
+
'end_at': 'str',
|
|
38
|
+
'evaluation_count': 'int',
|
|
39
|
+
'evaluation_interval': 'int',
|
|
40
|
+
'id': 'str',
|
|
41
|
+
'level': 'str',
|
|
42
|
+
'metric_conditions': 'list[MetricConditionForListAlertOutput]',
|
|
43
|
+
'send_alert_result': 'SendAlertResultForListAlertOutput',
|
|
44
|
+
'type': 'str'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'create_at': 'CreateAt',
|
|
49
|
+
'end_at': 'EndAt',
|
|
50
|
+
'evaluation_count': 'EvaluationCount',
|
|
51
|
+
'evaluation_interval': 'EvaluationInterval',
|
|
52
|
+
'id': 'Id',
|
|
53
|
+
'level': 'Level',
|
|
54
|
+
'metric_conditions': 'MetricConditions',
|
|
55
|
+
'send_alert_result': 'SendAlertResult',
|
|
56
|
+
'type': 'Type'
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
def __init__(self, create_at=None, end_at=None, evaluation_count=None, evaluation_interval=None, id=None, level=None, metric_conditions=None, send_alert_result=None, type=None, _configuration=None): # noqa: E501
|
|
60
|
+
"""DataForListAlertOutput - a model defined in Swagger""" # noqa: E501
|
|
61
|
+
if _configuration is None:
|
|
62
|
+
_configuration = Configuration()
|
|
63
|
+
self._configuration = _configuration
|
|
64
|
+
|
|
65
|
+
self._create_at = None
|
|
66
|
+
self._end_at = None
|
|
67
|
+
self._evaluation_count = None
|
|
68
|
+
self._evaluation_interval = None
|
|
69
|
+
self._id = None
|
|
70
|
+
self._level = None
|
|
71
|
+
self._metric_conditions = None
|
|
72
|
+
self._send_alert_result = None
|
|
73
|
+
self._type = None
|
|
74
|
+
self.discriminator = None
|
|
75
|
+
|
|
76
|
+
if create_at is not None:
|
|
77
|
+
self.create_at = create_at
|
|
78
|
+
if end_at is not None:
|
|
79
|
+
self.end_at = end_at
|
|
80
|
+
if evaluation_count is not None:
|
|
81
|
+
self.evaluation_count = evaluation_count
|
|
82
|
+
if evaluation_interval is not None:
|
|
83
|
+
self.evaluation_interval = evaluation_interval
|
|
84
|
+
if id is not None:
|
|
85
|
+
self.id = id
|
|
86
|
+
if level is not None:
|
|
87
|
+
self.level = level
|
|
88
|
+
if metric_conditions is not None:
|
|
89
|
+
self.metric_conditions = metric_conditions
|
|
90
|
+
if send_alert_result is not None:
|
|
91
|
+
self.send_alert_result = send_alert_result
|
|
92
|
+
if type is not None:
|
|
93
|
+
self.type = type
|
|
94
|
+
|
|
95
|
+
@property
|
|
96
|
+
def create_at(self):
|
|
97
|
+
"""Gets the create_at of this DataForListAlertOutput. # noqa: E501
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
:return: The create_at of this DataForListAlertOutput. # noqa: E501
|
|
101
|
+
:rtype: str
|
|
102
|
+
"""
|
|
103
|
+
return self._create_at
|
|
104
|
+
|
|
105
|
+
@create_at.setter
|
|
106
|
+
def create_at(self, create_at):
|
|
107
|
+
"""Sets the create_at of this DataForListAlertOutput.
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
:param create_at: The create_at of this DataForListAlertOutput. # noqa: E501
|
|
111
|
+
:type: str
|
|
112
|
+
"""
|
|
113
|
+
|
|
114
|
+
self._create_at = create_at
|
|
115
|
+
|
|
116
|
+
@property
|
|
117
|
+
def end_at(self):
|
|
118
|
+
"""Gets the end_at of this DataForListAlertOutput. # noqa: E501
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
:return: The end_at of this DataForListAlertOutput. # noqa: E501
|
|
122
|
+
:rtype: str
|
|
123
|
+
"""
|
|
124
|
+
return self._end_at
|
|
125
|
+
|
|
126
|
+
@end_at.setter
|
|
127
|
+
def end_at(self, end_at):
|
|
128
|
+
"""Sets the end_at of this DataForListAlertOutput.
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
:param end_at: The end_at of this DataForListAlertOutput. # noqa: E501
|
|
132
|
+
:type: str
|
|
133
|
+
"""
|
|
134
|
+
|
|
135
|
+
self._end_at = end_at
|
|
136
|
+
|
|
137
|
+
@property
|
|
138
|
+
def evaluation_count(self):
|
|
139
|
+
"""Gets the evaluation_count of this DataForListAlertOutput. # noqa: E501
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
:return: The evaluation_count of this DataForListAlertOutput. # noqa: E501
|
|
143
|
+
:rtype: int
|
|
144
|
+
"""
|
|
145
|
+
return self._evaluation_count
|
|
146
|
+
|
|
147
|
+
@evaluation_count.setter
|
|
148
|
+
def evaluation_count(self, evaluation_count):
|
|
149
|
+
"""Sets the evaluation_count of this DataForListAlertOutput.
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
:param evaluation_count: The evaluation_count of this DataForListAlertOutput. # noqa: E501
|
|
153
|
+
:type: int
|
|
154
|
+
"""
|
|
155
|
+
|
|
156
|
+
self._evaluation_count = evaluation_count
|
|
157
|
+
|
|
158
|
+
@property
|
|
159
|
+
def evaluation_interval(self):
|
|
160
|
+
"""Gets the evaluation_interval of this DataForListAlertOutput. # noqa: E501
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
:return: The evaluation_interval of this DataForListAlertOutput. # noqa: E501
|
|
164
|
+
:rtype: int
|
|
165
|
+
"""
|
|
166
|
+
return self._evaluation_interval
|
|
167
|
+
|
|
168
|
+
@evaluation_interval.setter
|
|
169
|
+
def evaluation_interval(self, evaluation_interval):
|
|
170
|
+
"""Sets the evaluation_interval of this DataForListAlertOutput.
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
:param evaluation_interval: The evaluation_interval of this DataForListAlertOutput. # noqa: E501
|
|
174
|
+
:type: int
|
|
175
|
+
"""
|
|
176
|
+
|
|
177
|
+
self._evaluation_interval = evaluation_interval
|
|
178
|
+
|
|
179
|
+
@property
|
|
180
|
+
def id(self):
|
|
181
|
+
"""Gets the id of this DataForListAlertOutput. # noqa: E501
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
:return: The id of this DataForListAlertOutput. # noqa: E501
|
|
185
|
+
:rtype: str
|
|
186
|
+
"""
|
|
187
|
+
return self._id
|
|
188
|
+
|
|
189
|
+
@id.setter
|
|
190
|
+
def id(self, id):
|
|
191
|
+
"""Sets the id of this DataForListAlertOutput.
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
:param id: The id of this DataForListAlertOutput. # noqa: E501
|
|
195
|
+
:type: str
|
|
196
|
+
"""
|
|
197
|
+
|
|
198
|
+
self._id = id
|
|
199
|
+
|
|
200
|
+
@property
|
|
201
|
+
def level(self):
|
|
202
|
+
"""Gets the level of this DataForListAlertOutput. # noqa: E501
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
:return: The level of this DataForListAlertOutput. # noqa: E501
|
|
206
|
+
:rtype: str
|
|
207
|
+
"""
|
|
208
|
+
return self._level
|
|
209
|
+
|
|
210
|
+
@level.setter
|
|
211
|
+
def level(self, level):
|
|
212
|
+
"""Sets the level of this DataForListAlertOutput.
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
:param level: The level of this DataForListAlertOutput. # noqa: E501
|
|
216
|
+
:type: str
|
|
217
|
+
"""
|
|
218
|
+
|
|
219
|
+
self._level = level
|
|
220
|
+
|
|
221
|
+
@property
|
|
222
|
+
def metric_conditions(self):
|
|
223
|
+
"""Gets the metric_conditions of this DataForListAlertOutput. # noqa: E501
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
:return: The metric_conditions of this DataForListAlertOutput. # noqa: E501
|
|
227
|
+
:rtype: list[MetricConditionForListAlertOutput]
|
|
228
|
+
"""
|
|
229
|
+
return self._metric_conditions
|
|
230
|
+
|
|
231
|
+
@metric_conditions.setter
|
|
232
|
+
def metric_conditions(self, metric_conditions):
|
|
233
|
+
"""Sets the metric_conditions of this DataForListAlertOutput.
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
:param metric_conditions: The metric_conditions of this DataForListAlertOutput. # noqa: E501
|
|
237
|
+
:type: list[MetricConditionForListAlertOutput]
|
|
238
|
+
"""
|
|
239
|
+
|
|
240
|
+
self._metric_conditions = metric_conditions
|
|
241
|
+
|
|
242
|
+
@property
|
|
243
|
+
def send_alert_result(self):
|
|
244
|
+
"""Gets the send_alert_result of this DataForListAlertOutput. # noqa: E501
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
:return: The send_alert_result of this DataForListAlertOutput. # noqa: E501
|
|
248
|
+
:rtype: SendAlertResultForListAlertOutput
|
|
249
|
+
"""
|
|
250
|
+
return self._send_alert_result
|
|
251
|
+
|
|
252
|
+
@send_alert_result.setter
|
|
253
|
+
def send_alert_result(self, send_alert_result):
|
|
254
|
+
"""Sets the send_alert_result of this DataForListAlertOutput.
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
:param send_alert_result: The send_alert_result of this DataForListAlertOutput. # noqa: E501
|
|
258
|
+
:type: SendAlertResultForListAlertOutput
|
|
259
|
+
"""
|
|
260
|
+
|
|
261
|
+
self._send_alert_result = send_alert_result
|
|
262
|
+
|
|
263
|
+
@property
|
|
264
|
+
def type(self):
|
|
265
|
+
"""Gets the type of this DataForListAlertOutput. # noqa: E501
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
:return: The type of this DataForListAlertOutput. # noqa: E501
|
|
269
|
+
:rtype: str
|
|
270
|
+
"""
|
|
271
|
+
return self._type
|
|
272
|
+
|
|
273
|
+
@type.setter
|
|
274
|
+
def type(self, type):
|
|
275
|
+
"""Sets the type of this DataForListAlertOutput.
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
:param type: The type of this DataForListAlertOutput. # noqa: E501
|
|
279
|
+
:type: str
|
|
280
|
+
"""
|
|
281
|
+
|
|
282
|
+
self._type = type
|
|
283
|
+
|
|
284
|
+
def to_dict(self):
|
|
285
|
+
"""Returns the model properties as a dict"""
|
|
286
|
+
result = {}
|
|
287
|
+
|
|
288
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
289
|
+
value = getattr(self, attr)
|
|
290
|
+
if isinstance(value, list):
|
|
291
|
+
result[attr] = list(map(
|
|
292
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
293
|
+
value
|
|
294
|
+
))
|
|
295
|
+
elif hasattr(value, "to_dict"):
|
|
296
|
+
result[attr] = value.to_dict()
|
|
297
|
+
elif isinstance(value, dict):
|
|
298
|
+
result[attr] = dict(map(
|
|
299
|
+
lambda item: (item[0], item[1].to_dict())
|
|
300
|
+
if hasattr(item[1], "to_dict") else item,
|
|
301
|
+
value.items()
|
|
302
|
+
))
|
|
303
|
+
else:
|
|
304
|
+
result[attr] = value
|
|
305
|
+
if issubclass(DataForListAlertOutput, dict):
|
|
306
|
+
for key, value in self.items():
|
|
307
|
+
result[key] = value
|
|
308
|
+
|
|
309
|
+
return result
|
|
310
|
+
|
|
311
|
+
def to_str(self):
|
|
312
|
+
"""Returns the string representation of the model"""
|
|
313
|
+
return pprint.pformat(self.to_dict())
|
|
314
|
+
|
|
315
|
+
def __repr__(self):
|
|
316
|
+
"""For `print` and `pprint`"""
|
|
317
|
+
return self.to_str()
|
|
318
|
+
|
|
319
|
+
def __eq__(self, other):
|
|
320
|
+
"""Returns true if both objects are equal"""
|
|
321
|
+
if not isinstance(other, DataForListAlertOutput):
|
|
322
|
+
return False
|
|
323
|
+
|
|
324
|
+
return self.to_dict() == other.to_dict()
|
|
325
|
+
|
|
326
|
+
def __ne__(self, other):
|
|
327
|
+
"""Returns true if both objects are not equal"""
|
|
328
|
+
if not isinstance(other, DataForListAlertOutput):
|
|
329
|
+
return True
|
|
330
|
+
|
|
331
|
+
return self.to_dict() != other.to_dict()
|