huaweicloudsdkaom 3.1.114__py2.py3-none-any.whl → 3.1.116__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.
Potentially problematic release.
This version of huaweicloudsdkaom might be problematic. Click here for more details.
- huaweicloudsdkaom/v2/__init__.py +1 -0
- huaweicloudsdkaom/v2/model/__init__.py +1 -0
- huaweicloudsdkaom/v2/model/event_model.py +3 -119
- huaweicloudsdkaom/v2/model/list_event_model.py +405 -0
- huaweicloudsdkaom/v2/model/list_events_response.py +4 -4
- huaweicloudsdkaom/v2/model/page_info.py +4 -4
- {huaweicloudsdkaom-3.1.114.dist-info → huaweicloudsdkaom-3.1.116.dist-info}/METADATA +2 -2
- {huaweicloudsdkaom-3.1.114.dist-info → huaweicloudsdkaom-3.1.116.dist-info}/RECORD +11 -10
- {huaweicloudsdkaom-3.1.114.dist-info → huaweicloudsdkaom-3.1.116.dist-info}/LICENSE +0 -0
- {huaweicloudsdkaom-3.1.114.dist-info → huaweicloudsdkaom-3.1.116.dist-info}/WHEEL +0 -0
- {huaweicloudsdkaom-3.1.114.dist-info → huaweicloudsdkaom-3.1.116.dist-info}/top_level.txt +0 -0
huaweicloudsdkaom/v2/__init__.py
CHANGED
|
@@ -85,6 +85,7 @@ from huaweicloudsdkaom.v2.model.list_alarm_rule_request import ListAlarmRuleRequ
|
|
|
85
85
|
from huaweicloudsdkaom.v2.model.list_alarm_rule_response import ListAlarmRuleResponse
|
|
86
86
|
from huaweicloudsdkaom.v2.model.list_event2alarm_rule_request import ListEvent2alarmRuleRequest
|
|
87
87
|
from huaweicloudsdkaom.v2.model.list_event2alarm_rule_response import ListEvent2alarmRuleResponse
|
|
88
|
+
from huaweicloudsdkaom.v2.model.list_event_model import ListEventModel
|
|
88
89
|
from huaweicloudsdkaom.v2.model.list_events_request import ListEventsRequest
|
|
89
90
|
from huaweicloudsdkaom.v2.model.list_events_response import ListEventsResponse
|
|
90
91
|
from huaweicloudsdkaom.v2.model.list_instant_query_aom_prom_get_request import ListInstantQueryAomPromGetRequest
|
|
@@ -83,6 +83,7 @@ from huaweicloudsdkaom.v2.model.list_alarm_rule_request import ListAlarmRuleRequ
|
|
|
83
83
|
from huaweicloudsdkaom.v2.model.list_alarm_rule_response import ListAlarmRuleResponse
|
|
84
84
|
from huaweicloudsdkaom.v2.model.list_event2alarm_rule_request import ListEvent2alarmRuleRequest
|
|
85
85
|
from huaweicloudsdkaom.v2.model.list_event2alarm_rule_response import ListEvent2alarmRuleResponse
|
|
86
|
+
from huaweicloudsdkaom.v2.model.list_event_model import ListEventModel
|
|
86
87
|
from huaweicloudsdkaom.v2.model.list_events_request import ListEventsRequest
|
|
87
88
|
from huaweicloudsdkaom.v2.model.list_events_response import ListEventsResponse
|
|
88
89
|
from huaweicloudsdkaom.v2.model.list_instant_query_aom_prom_get_request import ListInstantQueryAomPromGetRequest
|
|
@@ -23,11 +23,7 @@ class EventModel:
|
|
|
23
23
|
'metadata': 'dict(str, str)',
|
|
24
24
|
'annotations': 'dict(str, object)',
|
|
25
25
|
'attach_rule': 'dict(str, object)',
|
|
26
|
-
'id': 'str'
|
|
27
|
-
'event_sn': 'str',
|
|
28
|
-
'arrives_at': 'int',
|
|
29
|
-
'enterprise_project_id': 'str',
|
|
30
|
-
'policy': 'dict(str, object)'
|
|
26
|
+
'id': 'str'
|
|
31
27
|
}
|
|
32
28
|
|
|
33
29
|
attribute_map = {
|
|
@@ -37,14 +33,10 @@ class EventModel:
|
|
|
37
33
|
'metadata': 'metadata',
|
|
38
34
|
'annotations': 'annotations',
|
|
39
35
|
'attach_rule': 'attach_rule',
|
|
40
|
-
'id': 'id'
|
|
41
|
-
'event_sn': 'event_sn',
|
|
42
|
-
'arrives_at': 'arrives_at',
|
|
43
|
-
'enterprise_project_id': 'enterprise_project_id',
|
|
44
|
-
'policy': 'policy'
|
|
36
|
+
'id': 'id'
|
|
45
37
|
}
|
|
46
38
|
|
|
47
|
-
def __init__(self, starts_at=None, ends_at=None, timeout=None, metadata=None, annotations=None, attach_rule=None, id=None
|
|
39
|
+
def __init__(self, starts_at=None, ends_at=None, timeout=None, metadata=None, annotations=None, attach_rule=None, id=None):
|
|
48
40
|
"""EventModel
|
|
49
41
|
|
|
50
42
|
The model defined in huaweicloud sdk
|
|
@@ -63,14 +55,6 @@ class EventModel:
|
|
|
63
55
|
:type attach_rule: dict(str, object)
|
|
64
56
|
:param id: 事件或者告警id,系统会自动生成,上报无须填写该字段。
|
|
65
57
|
:type id: str
|
|
66
|
-
:param event_sn: 告警流水号。
|
|
67
|
-
:type event_sn: str
|
|
68
|
-
:param arrives_at: 事件到达系统时间,CST毫秒级时间戳。
|
|
69
|
-
:type arrives_at: int
|
|
70
|
-
:param enterprise_project_id: 事件或告警所属企业项目id。
|
|
71
|
-
:type enterprise_project_id: str
|
|
72
|
-
:param policy: 开放告警策略
|
|
73
|
-
:type policy: dict(str, object)
|
|
74
58
|
"""
|
|
75
59
|
|
|
76
60
|
|
|
@@ -82,10 +66,6 @@ class EventModel:
|
|
|
82
66
|
self._annotations = None
|
|
83
67
|
self._attach_rule = None
|
|
84
68
|
self._id = None
|
|
85
|
-
self._event_sn = None
|
|
86
|
-
self._arrives_at = None
|
|
87
|
-
self._enterprise_project_id = None
|
|
88
|
-
self._policy = None
|
|
89
69
|
self.discriminator = None
|
|
90
70
|
|
|
91
71
|
if starts_at is not None:
|
|
@@ -102,14 +82,6 @@ class EventModel:
|
|
|
102
82
|
self.attach_rule = attach_rule
|
|
103
83
|
if id is not None:
|
|
104
84
|
self.id = id
|
|
105
|
-
if event_sn is not None:
|
|
106
|
-
self.event_sn = event_sn
|
|
107
|
-
if arrives_at is not None:
|
|
108
|
-
self.arrives_at = arrives_at
|
|
109
|
-
if enterprise_project_id is not None:
|
|
110
|
-
self.enterprise_project_id = enterprise_project_id
|
|
111
|
-
if policy is not None:
|
|
112
|
-
self.policy = policy
|
|
113
85
|
|
|
114
86
|
@property
|
|
115
87
|
def starts_at(self):
|
|
@@ -265,94 +237,6 @@ class EventModel:
|
|
|
265
237
|
"""
|
|
266
238
|
self._id = id
|
|
267
239
|
|
|
268
|
-
@property
|
|
269
|
-
def event_sn(self):
|
|
270
|
-
"""Gets the event_sn of this EventModel.
|
|
271
|
-
|
|
272
|
-
告警流水号。
|
|
273
|
-
|
|
274
|
-
:return: The event_sn of this EventModel.
|
|
275
|
-
:rtype: str
|
|
276
|
-
"""
|
|
277
|
-
return self._event_sn
|
|
278
|
-
|
|
279
|
-
@event_sn.setter
|
|
280
|
-
def event_sn(self, event_sn):
|
|
281
|
-
"""Sets the event_sn of this EventModel.
|
|
282
|
-
|
|
283
|
-
告警流水号。
|
|
284
|
-
|
|
285
|
-
:param event_sn: The event_sn of this EventModel.
|
|
286
|
-
:type event_sn: str
|
|
287
|
-
"""
|
|
288
|
-
self._event_sn = event_sn
|
|
289
|
-
|
|
290
|
-
@property
|
|
291
|
-
def arrives_at(self):
|
|
292
|
-
"""Gets the arrives_at of this EventModel.
|
|
293
|
-
|
|
294
|
-
事件到达系统时间,CST毫秒级时间戳。
|
|
295
|
-
|
|
296
|
-
:return: The arrives_at of this EventModel.
|
|
297
|
-
:rtype: int
|
|
298
|
-
"""
|
|
299
|
-
return self._arrives_at
|
|
300
|
-
|
|
301
|
-
@arrives_at.setter
|
|
302
|
-
def arrives_at(self, arrives_at):
|
|
303
|
-
"""Sets the arrives_at of this EventModel.
|
|
304
|
-
|
|
305
|
-
事件到达系统时间,CST毫秒级时间戳。
|
|
306
|
-
|
|
307
|
-
:param arrives_at: The arrives_at of this EventModel.
|
|
308
|
-
:type arrives_at: int
|
|
309
|
-
"""
|
|
310
|
-
self._arrives_at = arrives_at
|
|
311
|
-
|
|
312
|
-
@property
|
|
313
|
-
def enterprise_project_id(self):
|
|
314
|
-
"""Gets the enterprise_project_id of this EventModel.
|
|
315
|
-
|
|
316
|
-
事件或告警所属企业项目id。
|
|
317
|
-
|
|
318
|
-
:return: The enterprise_project_id of this EventModel.
|
|
319
|
-
:rtype: str
|
|
320
|
-
"""
|
|
321
|
-
return self._enterprise_project_id
|
|
322
|
-
|
|
323
|
-
@enterprise_project_id.setter
|
|
324
|
-
def enterprise_project_id(self, enterprise_project_id):
|
|
325
|
-
"""Sets the enterprise_project_id of this EventModel.
|
|
326
|
-
|
|
327
|
-
事件或告警所属企业项目id。
|
|
328
|
-
|
|
329
|
-
:param enterprise_project_id: The enterprise_project_id of this EventModel.
|
|
330
|
-
:type enterprise_project_id: str
|
|
331
|
-
"""
|
|
332
|
-
self._enterprise_project_id = enterprise_project_id
|
|
333
|
-
|
|
334
|
-
@property
|
|
335
|
-
def policy(self):
|
|
336
|
-
"""Gets the policy of this EventModel.
|
|
337
|
-
|
|
338
|
-
开放告警策略
|
|
339
|
-
|
|
340
|
-
:return: The policy of this EventModel.
|
|
341
|
-
:rtype: dict(str, object)
|
|
342
|
-
"""
|
|
343
|
-
return self._policy
|
|
344
|
-
|
|
345
|
-
@policy.setter
|
|
346
|
-
def policy(self, policy):
|
|
347
|
-
"""Sets the policy of this EventModel.
|
|
348
|
-
|
|
349
|
-
开放告警策略
|
|
350
|
-
|
|
351
|
-
:param policy: The policy of this EventModel.
|
|
352
|
-
:type policy: dict(str, object)
|
|
353
|
-
"""
|
|
354
|
-
self._policy = policy
|
|
355
|
-
|
|
356
240
|
def to_dict(self):
|
|
357
241
|
"""Returns the model properties as a dict"""
|
|
358
242
|
result = {}
|
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ListEventModel:
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
Attributes:
|
|
12
|
+
openapi_types (dict): The key is attribute name
|
|
13
|
+
and the value is attribute type.
|
|
14
|
+
attribute_map (dict): The key is attribute name
|
|
15
|
+
and the value is json key in definition.
|
|
16
|
+
"""
|
|
17
|
+
sensitive_list = []
|
|
18
|
+
|
|
19
|
+
openapi_types = {
|
|
20
|
+
'starts_at': 'int',
|
|
21
|
+
'ends_at': 'int',
|
|
22
|
+
'timeout': 'int',
|
|
23
|
+
'metadata': 'dict(str, str)',
|
|
24
|
+
'annotations': 'dict(str, object)',
|
|
25
|
+
'attach_rule': 'dict(str, object)',
|
|
26
|
+
'id': 'str',
|
|
27
|
+
'event_sn': 'str',
|
|
28
|
+
'arrives_at': 'int',
|
|
29
|
+
'enterprise_project_id': 'str',
|
|
30
|
+
'policy': 'dict(str, object)'
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
attribute_map = {
|
|
34
|
+
'starts_at': 'starts_at',
|
|
35
|
+
'ends_at': 'ends_at',
|
|
36
|
+
'timeout': 'timeout',
|
|
37
|
+
'metadata': 'metadata',
|
|
38
|
+
'annotations': 'annotations',
|
|
39
|
+
'attach_rule': 'attach_rule',
|
|
40
|
+
'id': 'id',
|
|
41
|
+
'event_sn': 'event_sn',
|
|
42
|
+
'arrives_at': 'arrives_at',
|
|
43
|
+
'enterprise_project_id': 'enterprise_project_id',
|
|
44
|
+
'policy': 'policy'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
def __init__(self, starts_at=None, ends_at=None, timeout=None, metadata=None, annotations=None, attach_rule=None, id=None, event_sn=None, arrives_at=None, enterprise_project_id=None, policy=None):
|
|
48
|
+
"""ListEventModel
|
|
49
|
+
|
|
50
|
+
The model defined in huaweicloud sdk
|
|
51
|
+
|
|
52
|
+
:param starts_at: 事件或者告警产生的时间,CST毫秒级时间戳。
|
|
53
|
+
:type starts_at: int
|
|
54
|
+
:param ends_at: 事件或者告警清除的时间,CST毫秒级时间戳,为0时表示未删除。
|
|
55
|
+
:type ends_at: int
|
|
56
|
+
:param timeout: 告警自动清除时间。毫秒数,例如一分钟则填写为60000。默认清除时间为3天,对应数字为 4320 * 1000(即:3天 * 24小时 * 60分钟 * 1000毫秒)。
|
|
57
|
+
:type timeout: int
|
|
58
|
+
:param metadata: 事件或者告警的详细信息,为键值对形式。必须字段为: - event_name:事件或者告警名称,类型为String; - event_severity:事件级别枚举值。类型为String,四种类型 \"Critical\", \"Major\", \"Minor\", \"Info\"; - event_type:事件类别枚举值。类型为String,event为告警事件,alarm为普通告警; - resource_provider:事件对应云服务名称。类型为String; - resource_type:事件对应资源类型。类型为String; - resource_id:事件对应资源信息。类型为String。
|
|
59
|
+
:type metadata: dict(str, str)
|
|
60
|
+
:param annotations: 事件或者告警附加字段,可以为空。
|
|
61
|
+
:type annotations: dict(str, object)
|
|
62
|
+
:param attach_rule: 事件或者告警预留字段,为空。
|
|
63
|
+
:type attach_rule: dict(str, object)
|
|
64
|
+
:param id: 事件或者告警id,系统会自动生成,上报无须填写该字段。
|
|
65
|
+
:type id: str
|
|
66
|
+
:param event_sn: 告警流水号。
|
|
67
|
+
:type event_sn: str
|
|
68
|
+
:param arrives_at: 事件到达系统时间,CST毫秒级时间戳。
|
|
69
|
+
:type arrives_at: int
|
|
70
|
+
:param enterprise_project_id: 事件或告警所属企业项目id。
|
|
71
|
+
:type enterprise_project_id: str
|
|
72
|
+
:param policy: 开放告警策略
|
|
73
|
+
:type policy: dict(str, object)
|
|
74
|
+
"""
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
self._starts_at = None
|
|
79
|
+
self._ends_at = None
|
|
80
|
+
self._timeout = None
|
|
81
|
+
self._metadata = None
|
|
82
|
+
self._annotations = None
|
|
83
|
+
self._attach_rule = None
|
|
84
|
+
self._id = None
|
|
85
|
+
self._event_sn = None
|
|
86
|
+
self._arrives_at = None
|
|
87
|
+
self._enterprise_project_id = None
|
|
88
|
+
self._policy = None
|
|
89
|
+
self.discriminator = None
|
|
90
|
+
|
|
91
|
+
if starts_at is not None:
|
|
92
|
+
self.starts_at = starts_at
|
|
93
|
+
if ends_at is not None:
|
|
94
|
+
self.ends_at = ends_at
|
|
95
|
+
if timeout is not None:
|
|
96
|
+
self.timeout = timeout
|
|
97
|
+
if metadata is not None:
|
|
98
|
+
self.metadata = metadata
|
|
99
|
+
if annotations is not None:
|
|
100
|
+
self.annotations = annotations
|
|
101
|
+
if attach_rule is not None:
|
|
102
|
+
self.attach_rule = attach_rule
|
|
103
|
+
if id is not None:
|
|
104
|
+
self.id = id
|
|
105
|
+
if event_sn is not None:
|
|
106
|
+
self.event_sn = event_sn
|
|
107
|
+
if arrives_at is not None:
|
|
108
|
+
self.arrives_at = arrives_at
|
|
109
|
+
if enterprise_project_id is not None:
|
|
110
|
+
self.enterprise_project_id = enterprise_project_id
|
|
111
|
+
if policy is not None:
|
|
112
|
+
self.policy = policy
|
|
113
|
+
|
|
114
|
+
@property
|
|
115
|
+
def starts_at(self):
|
|
116
|
+
"""Gets the starts_at of this ListEventModel.
|
|
117
|
+
|
|
118
|
+
事件或者告警产生的时间,CST毫秒级时间戳。
|
|
119
|
+
|
|
120
|
+
:return: The starts_at of this ListEventModel.
|
|
121
|
+
:rtype: int
|
|
122
|
+
"""
|
|
123
|
+
return self._starts_at
|
|
124
|
+
|
|
125
|
+
@starts_at.setter
|
|
126
|
+
def starts_at(self, starts_at):
|
|
127
|
+
"""Sets the starts_at of this ListEventModel.
|
|
128
|
+
|
|
129
|
+
事件或者告警产生的时间,CST毫秒级时间戳。
|
|
130
|
+
|
|
131
|
+
:param starts_at: The starts_at of this ListEventModel.
|
|
132
|
+
:type starts_at: int
|
|
133
|
+
"""
|
|
134
|
+
self._starts_at = starts_at
|
|
135
|
+
|
|
136
|
+
@property
|
|
137
|
+
def ends_at(self):
|
|
138
|
+
"""Gets the ends_at of this ListEventModel.
|
|
139
|
+
|
|
140
|
+
事件或者告警清除的时间,CST毫秒级时间戳,为0时表示未删除。
|
|
141
|
+
|
|
142
|
+
:return: The ends_at of this ListEventModel.
|
|
143
|
+
:rtype: int
|
|
144
|
+
"""
|
|
145
|
+
return self._ends_at
|
|
146
|
+
|
|
147
|
+
@ends_at.setter
|
|
148
|
+
def ends_at(self, ends_at):
|
|
149
|
+
"""Sets the ends_at of this ListEventModel.
|
|
150
|
+
|
|
151
|
+
事件或者告警清除的时间,CST毫秒级时间戳,为0时表示未删除。
|
|
152
|
+
|
|
153
|
+
:param ends_at: The ends_at of this ListEventModel.
|
|
154
|
+
:type ends_at: int
|
|
155
|
+
"""
|
|
156
|
+
self._ends_at = ends_at
|
|
157
|
+
|
|
158
|
+
@property
|
|
159
|
+
def timeout(self):
|
|
160
|
+
"""Gets the timeout of this ListEventModel.
|
|
161
|
+
|
|
162
|
+
告警自动清除时间。毫秒数,例如一分钟则填写为60000。默认清除时间为3天,对应数字为 4320 * 1000(即:3天 * 24小时 * 60分钟 * 1000毫秒)。
|
|
163
|
+
|
|
164
|
+
:return: The timeout of this ListEventModel.
|
|
165
|
+
:rtype: int
|
|
166
|
+
"""
|
|
167
|
+
return self._timeout
|
|
168
|
+
|
|
169
|
+
@timeout.setter
|
|
170
|
+
def timeout(self, timeout):
|
|
171
|
+
"""Sets the timeout of this ListEventModel.
|
|
172
|
+
|
|
173
|
+
告警自动清除时间。毫秒数,例如一分钟则填写为60000。默认清除时间为3天,对应数字为 4320 * 1000(即:3天 * 24小时 * 60分钟 * 1000毫秒)。
|
|
174
|
+
|
|
175
|
+
:param timeout: The timeout of this ListEventModel.
|
|
176
|
+
:type timeout: int
|
|
177
|
+
"""
|
|
178
|
+
self._timeout = timeout
|
|
179
|
+
|
|
180
|
+
@property
|
|
181
|
+
def metadata(self):
|
|
182
|
+
"""Gets the metadata of this ListEventModel.
|
|
183
|
+
|
|
184
|
+
事件或者告警的详细信息,为键值对形式。必须字段为: - event_name:事件或者告警名称,类型为String; - event_severity:事件级别枚举值。类型为String,四种类型 \"Critical\", \"Major\", \"Minor\", \"Info\"; - event_type:事件类别枚举值。类型为String,event为告警事件,alarm为普通告警; - resource_provider:事件对应云服务名称。类型为String; - resource_type:事件对应资源类型。类型为String; - resource_id:事件对应资源信息。类型为String。
|
|
185
|
+
|
|
186
|
+
:return: The metadata of this ListEventModel.
|
|
187
|
+
:rtype: dict(str, str)
|
|
188
|
+
"""
|
|
189
|
+
return self._metadata
|
|
190
|
+
|
|
191
|
+
@metadata.setter
|
|
192
|
+
def metadata(self, metadata):
|
|
193
|
+
"""Sets the metadata of this ListEventModel.
|
|
194
|
+
|
|
195
|
+
事件或者告警的详细信息,为键值对形式。必须字段为: - event_name:事件或者告警名称,类型为String; - event_severity:事件级别枚举值。类型为String,四种类型 \"Critical\", \"Major\", \"Minor\", \"Info\"; - event_type:事件类别枚举值。类型为String,event为告警事件,alarm为普通告警; - resource_provider:事件对应云服务名称。类型为String; - resource_type:事件对应资源类型。类型为String; - resource_id:事件对应资源信息。类型为String。
|
|
196
|
+
|
|
197
|
+
:param metadata: The metadata of this ListEventModel.
|
|
198
|
+
:type metadata: dict(str, str)
|
|
199
|
+
"""
|
|
200
|
+
self._metadata = metadata
|
|
201
|
+
|
|
202
|
+
@property
|
|
203
|
+
def annotations(self):
|
|
204
|
+
"""Gets the annotations of this ListEventModel.
|
|
205
|
+
|
|
206
|
+
事件或者告警附加字段,可以为空。
|
|
207
|
+
|
|
208
|
+
:return: The annotations of this ListEventModel.
|
|
209
|
+
:rtype: dict(str, object)
|
|
210
|
+
"""
|
|
211
|
+
return self._annotations
|
|
212
|
+
|
|
213
|
+
@annotations.setter
|
|
214
|
+
def annotations(self, annotations):
|
|
215
|
+
"""Sets the annotations of this ListEventModel.
|
|
216
|
+
|
|
217
|
+
事件或者告警附加字段,可以为空。
|
|
218
|
+
|
|
219
|
+
:param annotations: The annotations of this ListEventModel.
|
|
220
|
+
:type annotations: dict(str, object)
|
|
221
|
+
"""
|
|
222
|
+
self._annotations = annotations
|
|
223
|
+
|
|
224
|
+
@property
|
|
225
|
+
def attach_rule(self):
|
|
226
|
+
"""Gets the attach_rule of this ListEventModel.
|
|
227
|
+
|
|
228
|
+
事件或者告警预留字段,为空。
|
|
229
|
+
|
|
230
|
+
:return: The attach_rule of this ListEventModel.
|
|
231
|
+
:rtype: dict(str, object)
|
|
232
|
+
"""
|
|
233
|
+
return self._attach_rule
|
|
234
|
+
|
|
235
|
+
@attach_rule.setter
|
|
236
|
+
def attach_rule(self, attach_rule):
|
|
237
|
+
"""Sets the attach_rule of this ListEventModel.
|
|
238
|
+
|
|
239
|
+
事件或者告警预留字段,为空。
|
|
240
|
+
|
|
241
|
+
:param attach_rule: The attach_rule of this ListEventModel.
|
|
242
|
+
:type attach_rule: dict(str, object)
|
|
243
|
+
"""
|
|
244
|
+
self._attach_rule = attach_rule
|
|
245
|
+
|
|
246
|
+
@property
|
|
247
|
+
def id(self):
|
|
248
|
+
"""Gets the id of this ListEventModel.
|
|
249
|
+
|
|
250
|
+
事件或者告警id,系统会自动生成,上报无须填写该字段。
|
|
251
|
+
|
|
252
|
+
:return: The id of this ListEventModel.
|
|
253
|
+
:rtype: str
|
|
254
|
+
"""
|
|
255
|
+
return self._id
|
|
256
|
+
|
|
257
|
+
@id.setter
|
|
258
|
+
def id(self, id):
|
|
259
|
+
"""Sets the id of this ListEventModel.
|
|
260
|
+
|
|
261
|
+
事件或者告警id,系统会自动生成,上报无须填写该字段。
|
|
262
|
+
|
|
263
|
+
:param id: The id of this ListEventModel.
|
|
264
|
+
:type id: str
|
|
265
|
+
"""
|
|
266
|
+
self._id = id
|
|
267
|
+
|
|
268
|
+
@property
|
|
269
|
+
def event_sn(self):
|
|
270
|
+
"""Gets the event_sn of this ListEventModel.
|
|
271
|
+
|
|
272
|
+
告警流水号。
|
|
273
|
+
|
|
274
|
+
:return: The event_sn of this ListEventModel.
|
|
275
|
+
:rtype: str
|
|
276
|
+
"""
|
|
277
|
+
return self._event_sn
|
|
278
|
+
|
|
279
|
+
@event_sn.setter
|
|
280
|
+
def event_sn(self, event_sn):
|
|
281
|
+
"""Sets the event_sn of this ListEventModel.
|
|
282
|
+
|
|
283
|
+
告警流水号。
|
|
284
|
+
|
|
285
|
+
:param event_sn: The event_sn of this ListEventModel.
|
|
286
|
+
:type event_sn: str
|
|
287
|
+
"""
|
|
288
|
+
self._event_sn = event_sn
|
|
289
|
+
|
|
290
|
+
@property
|
|
291
|
+
def arrives_at(self):
|
|
292
|
+
"""Gets the arrives_at of this ListEventModel.
|
|
293
|
+
|
|
294
|
+
事件到达系统时间,CST毫秒级时间戳。
|
|
295
|
+
|
|
296
|
+
:return: The arrives_at of this ListEventModel.
|
|
297
|
+
:rtype: int
|
|
298
|
+
"""
|
|
299
|
+
return self._arrives_at
|
|
300
|
+
|
|
301
|
+
@arrives_at.setter
|
|
302
|
+
def arrives_at(self, arrives_at):
|
|
303
|
+
"""Sets the arrives_at of this ListEventModel.
|
|
304
|
+
|
|
305
|
+
事件到达系统时间,CST毫秒级时间戳。
|
|
306
|
+
|
|
307
|
+
:param arrives_at: The arrives_at of this ListEventModel.
|
|
308
|
+
:type arrives_at: int
|
|
309
|
+
"""
|
|
310
|
+
self._arrives_at = arrives_at
|
|
311
|
+
|
|
312
|
+
@property
|
|
313
|
+
def enterprise_project_id(self):
|
|
314
|
+
"""Gets the enterprise_project_id of this ListEventModel.
|
|
315
|
+
|
|
316
|
+
事件或告警所属企业项目id。
|
|
317
|
+
|
|
318
|
+
:return: The enterprise_project_id of this ListEventModel.
|
|
319
|
+
:rtype: str
|
|
320
|
+
"""
|
|
321
|
+
return self._enterprise_project_id
|
|
322
|
+
|
|
323
|
+
@enterprise_project_id.setter
|
|
324
|
+
def enterprise_project_id(self, enterprise_project_id):
|
|
325
|
+
"""Sets the enterprise_project_id of this ListEventModel.
|
|
326
|
+
|
|
327
|
+
事件或告警所属企业项目id。
|
|
328
|
+
|
|
329
|
+
:param enterprise_project_id: The enterprise_project_id of this ListEventModel.
|
|
330
|
+
:type enterprise_project_id: str
|
|
331
|
+
"""
|
|
332
|
+
self._enterprise_project_id = enterprise_project_id
|
|
333
|
+
|
|
334
|
+
@property
|
|
335
|
+
def policy(self):
|
|
336
|
+
"""Gets the policy of this ListEventModel.
|
|
337
|
+
|
|
338
|
+
开放告警策略
|
|
339
|
+
|
|
340
|
+
:return: The policy of this ListEventModel.
|
|
341
|
+
:rtype: dict(str, object)
|
|
342
|
+
"""
|
|
343
|
+
return self._policy
|
|
344
|
+
|
|
345
|
+
@policy.setter
|
|
346
|
+
def policy(self, policy):
|
|
347
|
+
"""Sets the policy of this ListEventModel.
|
|
348
|
+
|
|
349
|
+
开放告警策略
|
|
350
|
+
|
|
351
|
+
:param policy: The policy of this ListEventModel.
|
|
352
|
+
:type policy: dict(str, object)
|
|
353
|
+
"""
|
|
354
|
+
self._policy = policy
|
|
355
|
+
|
|
356
|
+
def to_dict(self):
|
|
357
|
+
"""Returns the model properties as a dict"""
|
|
358
|
+
result = {}
|
|
359
|
+
|
|
360
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
361
|
+
value = getattr(self, attr)
|
|
362
|
+
if isinstance(value, list):
|
|
363
|
+
result[attr] = list(map(
|
|
364
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
365
|
+
value
|
|
366
|
+
))
|
|
367
|
+
elif hasattr(value, "to_dict"):
|
|
368
|
+
result[attr] = value.to_dict()
|
|
369
|
+
elif isinstance(value, dict):
|
|
370
|
+
result[attr] = dict(map(
|
|
371
|
+
lambda item: (item[0], item[1].to_dict())
|
|
372
|
+
if hasattr(item[1], "to_dict") else item,
|
|
373
|
+
value.items()
|
|
374
|
+
))
|
|
375
|
+
else:
|
|
376
|
+
if attr in self.sensitive_list:
|
|
377
|
+
result[attr] = "****"
|
|
378
|
+
else:
|
|
379
|
+
result[attr] = value
|
|
380
|
+
|
|
381
|
+
return result
|
|
382
|
+
|
|
383
|
+
def to_str(self):
|
|
384
|
+
"""Returns the string representation of the model"""
|
|
385
|
+
import simplejson as json
|
|
386
|
+
if six.PY2:
|
|
387
|
+
import sys
|
|
388
|
+
reload(sys)
|
|
389
|
+
sys.setdefaultencoding("utf-8")
|
|
390
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
391
|
+
|
|
392
|
+
def __repr__(self):
|
|
393
|
+
"""For `print`"""
|
|
394
|
+
return self.to_str()
|
|
395
|
+
|
|
396
|
+
def __eq__(self, other):
|
|
397
|
+
"""Returns true if both objects are equal"""
|
|
398
|
+
if not isinstance(other, ListEventModel):
|
|
399
|
+
return False
|
|
400
|
+
|
|
401
|
+
return self.__dict__ == other.__dict__
|
|
402
|
+
|
|
403
|
+
def __ne__(self, other):
|
|
404
|
+
"""Returns true if both objects are not equal"""
|
|
405
|
+
return not self == other
|
|
@@ -18,7 +18,7 @@ class ListEventsResponse(SdkResponse):
|
|
|
18
18
|
sensitive_list = []
|
|
19
19
|
|
|
20
20
|
openapi_types = {
|
|
21
|
-
'events': 'list[
|
|
21
|
+
'events': 'list[ListEventModel]',
|
|
22
22
|
'page_info': 'PageInfo'
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -33,7 +33,7 @@ class ListEventsResponse(SdkResponse):
|
|
|
33
33
|
The model defined in huaweicloud sdk
|
|
34
34
|
|
|
35
35
|
:param events: 事件或者告警详情。
|
|
36
|
-
:type events: list[:class:`huaweicloudsdkaom.v2.
|
|
36
|
+
:type events: list[:class:`huaweicloudsdkaom.v2.ListEventModel`]
|
|
37
37
|
:param page_info:
|
|
38
38
|
:type page_info: :class:`huaweicloudsdkaom.v2.PageInfo`
|
|
39
39
|
"""
|
|
@@ -56,7 +56,7 @@ class ListEventsResponse(SdkResponse):
|
|
|
56
56
|
事件或者告警详情。
|
|
57
57
|
|
|
58
58
|
:return: The events of this ListEventsResponse.
|
|
59
|
-
:rtype: list[:class:`huaweicloudsdkaom.v2.
|
|
59
|
+
:rtype: list[:class:`huaweicloudsdkaom.v2.ListEventModel`]
|
|
60
60
|
"""
|
|
61
61
|
return self._events
|
|
62
62
|
|
|
@@ -67,7 +67,7 @@ class ListEventsResponse(SdkResponse):
|
|
|
67
67
|
事件或者告警详情。
|
|
68
68
|
|
|
69
69
|
:param events: The events of this ListEventsResponse.
|
|
70
|
-
:type events: list[:class:`huaweicloudsdkaom.v2.
|
|
70
|
+
:type events: list[:class:`huaweicloudsdkaom.v2.ListEventModel`]
|
|
71
71
|
"""
|
|
72
72
|
self._events = events
|
|
73
73
|
|
|
@@ -17,7 +17,7 @@ class PageInfo:
|
|
|
17
17
|
sensitive_list = []
|
|
18
18
|
|
|
19
19
|
openapi_types = {
|
|
20
|
-
'current_count': '
|
|
20
|
+
'current_count': 'int',
|
|
21
21
|
'previous_marker': 'str',
|
|
22
22
|
'next_marker': 'str'
|
|
23
23
|
}
|
|
@@ -34,7 +34,7 @@ class PageInfo:
|
|
|
34
34
|
The model defined in huaweicloud sdk
|
|
35
35
|
|
|
36
36
|
:param current_count: 当前页事件、告警总数
|
|
37
|
-
:type current_count:
|
|
37
|
+
:type current_count: int
|
|
38
38
|
:param previous_marker: 前一个marker
|
|
39
39
|
:type previous_marker: str
|
|
40
40
|
:param next_marker: 下一个marker
|
|
@@ -59,7 +59,7 @@ class PageInfo:
|
|
|
59
59
|
当前页事件、告警总数
|
|
60
60
|
|
|
61
61
|
:return: The current_count of this PageInfo.
|
|
62
|
-
:rtype:
|
|
62
|
+
:rtype: int
|
|
63
63
|
"""
|
|
64
64
|
return self._current_count
|
|
65
65
|
|
|
@@ -70,7 +70,7 @@ class PageInfo:
|
|
|
70
70
|
当前页事件、告警总数
|
|
71
71
|
|
|
72
72
|
:param current_count: The current_count of this PageInfo.
|
|
73
|
-
:type current_count:
|
|
73
|
+
:type current_count: int
|
|
74
74
|
"""
|
|
75
75
|
self._current_count = current_count
|
|
76
76
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: huaweicloudsdkaom
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.116
|
|
4
4
|
Summary: AOM
|
|
5
5
|
Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
|
|
6
6
|
Author: HuaweiCloud SDK
|
|
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
|
|
|
22
22
|
Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
|
|
23
23
|
Description-Content-Type: text/markdown
|
|
24
24
|
License-File: LICENSE
|
|
25
|
-
Requires-Dist: huaweicloudsdkcore>=3.1.
|
|
25
|
+
Requires-Dist: huaweicloudsdkcore>=3.1.116
|
|
26
26
|
|
|
27
27
|
See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
|
|
@@ -55,10 +55,10 @@ huaweicloudsdkaom/v1/model/workflow_query_param.py,sha256=o-gyd9KwKwGP_pUy10Mvox
|
|
|
55
55
|
huaweicloudsdkaom/v1/model/workflow_request_body.py,sha256=Kz8wVcgNRGWwZ-lFQORvDCwlubTrohoA5WTft9u_b9U,13295
|
|
56
56
|
huaweicloudsdkaom/v1/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
57
57
|
huaweicloudsdkaom/v1/region/aom_region.py,sha256=ltGBm_iwq189RuHh2wYn7EfJzkb1aHU9rdVhKF1hRQU,4311
|
|
58
|
-
huaweicloudsdkaom/v2/__init__.py,sha256=
|
|
58
|
+
huaweicloudsdkaom/v2/__init__.py,sha256=LGRLdaWs4mqaOkMBocMnox01Urwt5oMI9LNxTBi16cI,15607
|
|
59
59
|
huaweicloudsdkaom/v2/aom_async_client.py,sha256=bFhuQC69wsBX3SyPDKya2b4VcRaM8LOqz5FVEmuJ4Bs,114413
|
|
60
60
|
huaweicloudsdkaom/v2/aom_client.py,sha256=bAlUqYRMu4aIPZ2BCavReMLkVHMzSFT1JMlMcTcWHoE,114408
|
|
61
|
-
huaweicloudsdkaom/v2/model/__init__.py,sha256=
|
|
61
|
+
huaweicloudsdkaom/v2/model/__init__.py,sha256=khv-LRO4uK9WWGyThxLI3vZRtVaPFUKnd6-IzBE5n6w,15521
|
|
62
62
|
huaweicloudsdkaom/v2/model/access_code_model.py,sha256=O31avqxULzG4waOBP-cyHx74YaDuVLDgAWOvKueM9hM,5480
|
|
63
63
|
huaweicloudsdkaom/v2/model/action_rule.py,sha256=BDwXbjTClfi4OfCTI0rxpVNrKDdgTNQMVluV3dgSUPM,10813
|
|
64
64
|
huaweicloudsdkaom/v2/model/add_action_rule_request.py,sha256=KXLDSshAXGPIe1_MGSUOaTrBfAStfaCcJFicu26qqRs,3083
|
|
@@ -121,7 +121,7 @@ huaweicloudsdkaom/v2/model/event2alarm_rule_body_metadata.py,sha256=6HPV7kcJQ2Ro
|
|
|
121
121
|
huaweicloudsdkaom/v2/model/event2alarm_rule_body_trigger_policies.py,sha256=RJxj1ye3UJnEQkS6eFwcHuTZD1PEx-3l8Cv63VyQAXA,7933
|
|
122
122
|
huaweicloudsdkaom/v2/model/event_alarm_spec.py,sha256=LYB5haTJ4ZOFwjFESRiDe5PTf5DIcWtpjmPYGhPzhF4,9783
|
|
123
123
|
huaweicloudsdkaom/v2/model/event_list.py,sha256=JUT1RyO4Q3JELKvRxc6mJnr6In5W2X7UxI6yjDw0jAo,3110
|
|
124
|
-
huaweicloudsdkaom/v2/model/event_model.py,sha256=
|
|
124
|
+
huaweicloudsdkaom/v2/model/event_model.py,sha256=K0GfB-2WKlIIgN09NZiFgeninLpFOIFttSeUciftGhQ,10438
|
|
125
125
|
huaweicloudsdkaom/v2/model/event_query_param.py,sha256=qjU_xNcaRfVfRV6jsK_MxmZ6IrfJ48F1Mk931cUKbow,11479
|
|
126
126
|
huaweicloudsdkaom/v2/model/event_query_param2.py,sha256=CyCU1GxxLBbe8TWHNcnGwznmZTXLx13ltUzHyWvlAtM,11521
|
|
127
127
|
huaweicloudsdkaom/v2/model/event_query_param2_sort.py,sha256=PpV-BTbcX1pVa7Abai5feZVMzV-8XKJr-zTFJClK-x0,4144
|
|
@@ -139,8 +139,9 @@ huaweicloudsdkaom/v2/model/list_alarm_rule_request.py,sha256=4rVdbKReq6Vnu1m7xsW
|
|
|
139
139
|
huaweicloudsdkaom/v2/model/list_alarm_rule_response.py,sha256=EHwmlh-asT1UG1sH6ZAQO48A0ySApYLfLz16mmX-Qq0,4202
|
|
140
140
|
huaweicloudsdkaom/v2/model/list_event2alarm_rule_request.py,sha256=bxoLMsEDQ-ctchiMRRwhMSKGh9iCsDPSAbSv0LMgq1s,2336
|
|
141
141
|
huaweicloudsdkaom/v2/model/list_event2alarm_rule_response.py,sha256=in4iYNZrJZVswRwz9V958EL9cRIGAY0vmHfRAn7SdKA,3280
|
|
142
|
+
huaweicloudsdkaom/v2/model/list_event_model.py,sha256=R_v8Yk0dieTjvazxtW-Y_4OB-hE1GIUSaPZFipwuZPE,14104
|
|
142
143
|
huaweicloudsdkaom/v2/model/list_events_request.py,sha256=Etbj6FhbzM5uS2oIm5uR3wpujkmh-e6UU210GBP7flk,7272
|
|
143
|
-
huaweicloudsdkaom/v2/model/list_events_response.py,sha256=
|
|
144
|
+
huaweicloudsdkaom/v2/model/list_events_response.py,sha256=vzcrqjjVzqH6s6ntRolmXIk_818NJr6dNaYesaDGeUQ,4167
|
|
144
145
|
huaweicloudsdkaom/v2/model/list_instant_query_aom_prom_get_request.py,sha256=XddENcyoKxEpVz__HBft2kNiYCSKeflgnT6gwmlRFh8,4227
|
|
145
146
|
huaweicloudsdkaom/v2/model/list_instant_query_aom_prom_get_response.py,sha256=00ujs3oGdLQ8KmJrca-xXBF0Y4FmikO7kEvZ0u0aBrU,4017
|
|
146
147
|
huaweicloudsdkaom/v2/model/list_instant_query_aom_prom_post_request.py,sha256=MWjbgST3OY8NUDJb2VTWem4f7HapDVWomHDG9qn_xCU,4238
|
|
@@ -196,7 +197,7 @@ huaweicloudsdkaom/v2/model/no_data_condition.py,sha256=Z9w-WZjYAzf3DkDWat9qx5s60
|
|
|
196
197
|
huaweicloudsdkaom/v2/model/node_info.py,sha256=RfhLFpk7_8U2FT3Oa1B7UaRkXQmykKloKKsZmtROXTM,3718
|
|
197
198
|
huaweicloudsdkaom/v2/model/notifications.py,sha256=zD3KfRSRbBEWshHxf_6NS-555cMKoo7ZrDWcrON5g2I,5007
|
|
198
199
|
huaweicloudsdkaom/v2/model/notified_histories_result.py,sha256=PahLlqMye02QiDgfohcLxoW6UYxDMlJ0i0lrtS4mBn8,4155
|
|
199
|
-
huaweicloudsdkaom/v2/model/page_info.py,sha256=
|
|
200
|
+
huaweicloudsdkaom/v2/model/page_info.py,sha256=Yw4Fz_hVeSbP5OWUodgEy5f9-05qEWxW9ixRRdiMQz0,4718
|
|
200
201
|
huaweicloudsdkaom/v2/model/prom_config_model.py,sha256=DFHvWOuMQZF6-f60faUC342GSzz0DCiCnYfUGjL55Ww,7235
|
|
201
202
|
huaweicloudsdkaom/v2/model/prom_instance_eps_create_model.py,sha256=6UXOh2xd5UDnuPacDVTUG_SptOany-PaAlOWqh34MWQ,14397
|
|
202
203
|
huaweicloudsdkaom/v2/model/prom_instance_eps_model.py,sha256=aH_LRVUjasGv2E0ccDHnhLBERd8mLGIMmfoSzx3y9x0,15001
|
|
@@ -293,8 +294,8 @@ huaweicloudsdkaom/v3/model/update_sub_app_response.py,sha256=x6sG_VllQ3TCNjfjxKq
|
|
|
293
294
|
huaweicloudsdkaom/v3/model/waterfall_page_list_param.py,sha256=-NbEgympjn2qe61GQ_wsAQ1-jkbrBX64w8PnxmnxmmU,4201
|
|
294
295
|
huaweicloudsdkaom/v3/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
295
296
|
huaweicloudsdkaom/v3/region/aom_region.py,sha256=ltGBm_iwq189RuHh2wYn7EfJzkb1aHU9rdVhKF1hRQU,4311
|
|
296
|
-
huaweicloudsdkaom-3.1.
|
|
297
|
-
huaweicloudsdkaom-3.1.
|
|
298
|
-
huaweicloudsdkaom-3.1.
|
|
299
|
-
huaweicloudsdkaom-3.1.
|
|
300
|
-
huaweicloudsdkaom-3.1.
|
|
297
|
+
huaweicloudsdkaom-3.1.116.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
|
|
298
|
+
huaweicloudsdkaom-3.1.116.dist-info/METADATA,sha256=RNvAe-2ekop9yEfbT5I9uVbEZ9dNPr4sbqIH9faxDPM,1135
|
|
299
|
+
huaweicloudsdkaom-3.1.116.dist-info/WHEEL,sha256=fS9sRbCBHs7VFcwJLnLXN1MZRR0_TVTxvXKzOnaSFs8,110
|
|
300
|
+
huaweicloudsdkaom-3.1.116.dist-info/top_level.txt,sha256=V5oNEkojACaeCidjN4ULPkHqYB7uxxA_RXYXAe-MgEM,18
|
|
301
|
+
huaweicloudsdkaom-3.1.116.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|