huaweicloudsdkaom 3.1.113__py2.py3-none-any.whl → 3.1.114__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/aom_async_client.py +4 -0
- huaweicloudsdkaom/v2/aom_client.py +4 -0
- huaweicloudsdkaom/v2/model/__init__.py +1 -0
- huaweicloudsdkaom/v2/model/delete_prom_instance_request.py +4 -5
- huaweicloudsdkaom/v2/model/event_model.py +119 -3
- huaweicloudsdkaom/v2/model/list_agents_request.py +6 -6
- huaweicloudsdkaom/v2/model/list_events_request.py +59 -1
- huaweicloudsdkaom/v2/model/list_events_response.py +28 -3
- huaweicloudsdkaom/v2/model/page_info.py +170 -0
- {huaweicloudsdkaom-3.1.113.dist-info → huaweicloudsdkaom-3.1.114.dist-info}/METADATA +2 -2
- {huaweicloudsdkaom-3.1.113.dist-info → huaweicloudsdkaom-3.1.114.dist-info}/RECORD +15 -14
- {huaweicloudsdkaom-3.1.113.dist-info → huaweicloudsdkaom-3.1.114.dist-info}/LICENSE +0 -0
- {huaweicloudsdkaom-3.1.113.dist-info → huaweicloudsdkaom-3.1.114.dist-info}/WHEEL +0 -0
- {huaweicloudsdkaom-3.1.113.dist-info → huaweicloudsdkaom-3.1.114.dist-info}/top_level.txt +0 -0
huaweicloudsdkaom/v2/__init__.py
CHANGED
|
@@ -142,6 +142,7 @@ from huaweicloudsdkaom.v2.model.no_data_condition import NoDataCondition
|
|
|
142
142
|
from huaweicloudsdkaom.v2.model.node_info import NodeInfo
|
|
143
143
|
from huaweicloudsdkaom.v2.model.notifications import Notifications
|
|
144
144
|
from huaweicloudsdkaom.v2.model.notified_histories_result import NotifiedHistoriesResult
|
|
145
|
+
from huaweicloudsdkaom.v2.model.page_info import PageInfo
|
|
145
146
|
from huaweicloudsdkaom.v2.model.prom_config_model import PromConfigModel
|
|
146
147
|
from huaweicloudsdkaom.v2.model.prom_instance_eps_create_model import PromInstanceEpsCreateModel
|
|
147
148
|
from huaweicloudsdkaom.v2.model.prom_instance_eps_model import PromInstanceEpsModel
|
|
@@ -1312,6 +1312,10 @@ class AomAsyncClient(Client):
|
|
|
1312
1312
|
query_params = []
|
|
1313
1313
|
if 'type' in local_var_params:
|
|
1314
1314
|
query_params.append(('type', local_var_params['type']))
|
|
1315
|
+
if 'limit' in local_var_params:
|
|
1316
|
+
query_params.append(('limit', local_var_params['limit']))
|
|
1317
|
+
if 'marker' in local_var_params:
|
|
1318
|
+
query_params.append(('marker', local_var_params['marker']))
|
|
1315
1319
|
|
|
1316
1320
|
header_params = {}
|
|
1317
1321
|
if 'enterprise_project_id' in local_var_params:
|
|
@@ -1312,6 +1312,10 @@ class AomClient(Client):
|
|
|
1312
1312
|
query_params = []
|
|
1313
1313
|
if 'type' in local_var_params:
|
|
1314
1314
|
query_params.append(('type', local_var_params['type']))
|
|
1315
|
+
if 'limit' in local_var_params:
|
|
1316
|
+
query_params.append(('limit', local_var_params['limit']))
|
|
1317
|
+
if 'marker' in local_var_params:
|
|
1318
|
+
query_params.append(('marker', local_var_params['marker']))
|
|
1315
1319
|
|
|
1316
1320
|
header_params = {}
|
|
1317
1321
|
if 'enterprise_project_id' in local_var_params:
|
|
@@ -140,6 +140,7 @@ from huaweicloudsdkaom.v2.model.no_data_condition import NoDataCondition
|
|
|
140
140
|
from huaweicloudsdkaom.v2.model.node_info import NodeInfo
|
|
141
141
|
from huaweicloudsdkaom.v2.model.notifications import Notifications
|
|
142
142
|
from huaweicloudsdkaom.v2.model.notified_histories_result import NotifiedHistoriesResult
|
|
143
|
+
from huaweicloudsdkaom.v2.model.page_info import PageInfo
|
|
143
144
|
from huaweicloudsdkaom.v2.model.prom_config_model import PromConfigModel
|
|
144
145
|
from huaweicloudsdkaom.v2.model.prom_instance_eps_create_model import PromInstanceEpsCreateModel
|
|
145
146
|
from huaweicloudsdkaom.v2.model.prom_instance_eps_model import PromInstanceEpsModel
|
|
@@ -33,7 +33,7 @@ class DeletePromInstanceRequest:
|
|
|
33
33
|
|
|
34
34
|
:param prom_id: Prometheus实例id。
|
|
35
35
|
:type prom_id: str
|
|
36
|
-
:param enterprise_project_id: 企业项目id。 -
|
|
36
|
+
:param enterprise_project_id: 企业项目id。 - 删除单个企业项目下实例,填写企业项目id。
|
|
37
37
|
:type enterprise_project_id: str
|
|
38
38
|
"""
|
|
39
39
|
|
|
@@ -44,8 +44,7 @@ class DeletePromInstanceRequest:
|
|
|
44
44
|
self.discriminator = None
|
|
45
45
|
|
|
46
46
|
self.prom_id = prom_id
|
|
47
|
-
|
|
48
|
-
self.enterprise_project_id = enterprise_project_id
|
|
47
|
+
self.enterprise_project_id = enterprise_project_id
|
|
49
48
|
|
|
50
49
|
@property
|
|
51
50
|
def prom_id(self):
|
|
@@ -73,7 +72,7 @@ class DeletePromInstanceRequest:
|
|
|
73
72
|
def enterprise_project_id(self):
|
|
74
73
|
"""Gets the enterprise_project_id of this DeletePromInstanceRequest.
|
|
75
74
|
|
|
76
|
-
企业项目id。 -
|
|
75
|
+
企业项目id。 - 删除单个企业项目下实例,填写企业项目id。
|
|
77
76
|
|
|
78
77
|
:return: The enterprise_project_id of this DeletePromInstanceRequest.
|
|
79
78
|
:rtype: str
|
|
@@ -84,7 +83,7 @@ class DeletePromInstanceRequest:
|
|
|
84
83
|
def enterprise_project_id(self, enterprise_project_id):
|
|
85
84
|
"""Sets the enterprise_project_id of this DeletePromInstanceRequest.
|
|
86
85
|
|
|
87
|
-
企业项目id。 -
|
|
86
|
+
企业项目id。 - 删除单个企业项目下实例,填写企业项目id。
|
|
88
87
|
|
|
89
88
|
:param enterprise_project_id: The enterprise_project_id of this DeletePromInstanceRequest.
|
|
90
89
|
:type enterprise_project_id: str
|
|
@@ -23,7 +23,11 @@ class EventModel:
|
|
|
23
23
|
'metadata': 'dict(str, str)',
|
|
24
24
|
'annotations': 'dict(str, object)',
|
|
25
25
|
'attach_rule': 'dict(str, object)',
|
|
26
|
-
'id': 'str'
|
|
26
|
+
'id': 'str',
|
|
27
|
+
'event_sn': 'str',
|
|
28
|
+
'arrives_at': 'int',
|
|
29
|
+
'enterprise_project_id': 'str',
|
|
30
|
+
'policy': 'dict(str, object)'
|
|
27
31
|
}
|
|
28
32
|
|
|
29
33
|
attribute_map = {
|
|
@@ -33,10 +37,14 @@ class EventModel:
|
|
|
33
37
|
'metadata': 'metadata',
|
|
34
38
|
'annotations': 'annotations',
|
|
35
39
|
'attach_rule': 'attach_rule',
|
|
36
|
-
'id': 'id'
|
|
40
|
+
'id': 'id',
|
|
41
|
+
'event_sn': 'event_sn',
|
|
42
|
+
'arrives_at': 'arrives_at',
|
|
43
|
+
'enterprise_project_id': 'enterprise_project_id',
|
|
44
|
+
'policy': 'policy'
|
|
37
45
|
}
|
|
38
46
|
|
|
39
|
-
def __init__(self, starts_at=None, ends_at=None, timeout=None, metadata=None, annotations=None, attach_rule=None, id=None):
|
|
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):
|
|
40
48
|
"""EventModel
|
|
41
49
|
|
|
42
50
|
The model defined in huaweicloud sdk
|
|
@@ -55,6 +63,14 @@ class EventModel:
|
|
|
55
63
|
:type attach_rule: dict(str, object)
|
|
56
64
|
:param id: 事件或者告警id,系统会自动生成,上报无须填写该字段。
|
|
57
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)
|
|
58
74
|
"""
|
|
59
75
|
|
|
60
76
|
|
|
@@ -66,6 +82,10 @@ class EventModel:
|
|
|
66
82
|
self._annotations = None
|
|
67
83
|
self._attach_rule = None
|
|
68
84
|
self._id = None
|
|
85
|
+
self._event_sn = None
|
|
86
|
+
self._arrives_at = None
|
|
87
|
+
self._enterprise_project_id = None
|
|
88
|
+
self._policy = None
|
|
69
89
|
self.discriminator = None
|
|
70
90
|
|
|
71
91
|
if starts_at is not None:
|
|
@@ -82,6 +102,14 @@ class EventModel:
|
|
|
82
102
|
self.attach_rule = attach_rule
|
|
83
103
|
if id is not None:
|
|
84
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
|
|
85
113
|
|
|
86
114
|
@property
|
|
87
115
|
def starts_at(self):
|
|
@@ -237,6 +265,94 @@ class EventModel:
|
|
|
237
265
|
"""
|
|
238
266
|
self._id = id
|
|
239
267
|
|
|
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
|
+
|
|
240
356
|
def to_dict(self):
|
|
241
357
|
"""Returns the model properties as a dict"""
|
|
242
358
|
result = {}
|
|
@@ -31,9 +31,9 @@ class ListAgentsRequest:
|
|
|
31
31
|
|
|
32
32
|
The model defined in huaweicloud sdk
|
|
33
33
|
|
|
34
|
-
:param cluster_id: - 查询集群主机时,填写集群id。 - 查询用户自定义主机时,填写“
|
|
34
|
+
:param cluster_id: - 查询集群主机时,填写集群id。 - 查询用户自定义主机时,填写“APM”。
|
|
35
35
|
:type cluster_id: str
|
|
36
|
-
:param namespace: - 查询集群主机时,填写命名空间。 - 查询用户自定义主机时,填写“
|
|
36
|
+
:param namespace: - 查询集群主机时,填写命名空间。 - 查询用户自定义主机时,填写“APM”。
|
|
37
37
|
:type namespace: str
|
|
38
38
|
"""
|
|
39
39
|
|
|
@@ -50,7 +50,7 @@ class ListAgentsRequest:
|
|
|
50
50
|
def cluster_id(self):
|
|
51
51
|
"""Gets the cluster_id of this ListAgentsRequest.
|
|
52
52
|
|
|
53
|
-
- 查询集群主机时,填写集群id。 - 查询用户自定义主机时,填写“
|
|
53
|
+
- 查询集群主机时,填写集群id。 - 查询用户自定义主机时,填写“APM”。
|
|
54
54
|
|
|
55
55
|
:return: The cluster_id of this ListAgentsRequest.
|
|
56
56
|
:rtype: str
|
|
@@ -61,7 +61,7 @@ class ListAgentsRequest:
|
|
|
61
61
|
def cluster_id(self, cluster_id):
|
|
62
62
|
"""Sets the cluster_id of this ListAgentsRequest.
|
|
63
63
|
|
|
64
|
-
- 查询集群主机时,填写集群id。 - 查询用户自定义主机时,填写“
|
|
64
|
+
- 查询集群主机时,填写集群id。 - 查询用户自定义主机时,填写“APM”。
|
|
65
65
|
|
|
66
66
|
:param cluster_id: The cluster_id of this ListAgentsRequest.
|
|
67
67
|
:type cluster_id: str
|
|
@@ -72,7 +72,7 @@ class ListAgentsRequest:
|
|
|
72
72
|
def namespace(self):
|
|
73
73
|
"""Gets the namespace of this ListAgentsRequest.
|
|
74
74
|
|
|
75
|
-
- 查询集群主机时,填写命名空间。 - 查询用户自定义主机时,填写“
|
|
75
|
+
- 查询集群主机时,填写命名空间。 - 查询用户自定义主机时,填写“APM”。
|
|
76
76
|
|
|
77
77
|
:return: The namespace of this ListAgentsRequest.
|
|
78
78
|
:rtype: str
|
|
@@ -83,7 +83,7 @@ class ListAgentsRequest:
|
|
|
83
83
|
def namespace(self, namespace):
|
|
84
84
|
"""Sets the namespace of this ListAgentsRequest.
|
|
85
85
|
|
|
86
|
-
- 查询集群主机时,填写命名空间。 - 查询用户自定义主机时,填写“
|
|
86
|
+
- 查询集群主机时,填写命名空间。 - 查询用户自定义主机时,填写“APM”。
|
|
87
87
|
|
|
88
88
|
:param namespace: The namespace of this ListAgentsRequest.
|
|
89
89
|
:type namespace: str
|
|
@@ -19,16 +19,20 @@ class ListEventsRequest:
|
|
|
19
19
|
openapi_types = {
|
|
20
20
|
'type': 'str',
|
|
21
21
|
'enterprise_project_id': 'str',
|
|
22
|
+
'limit': 'int',
|
|
23
|
+
'marker': 'str',
|
|
22
24
|
'body': 'EventQueryParam2'
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
attribute_map = {
|
|
26
28
|
'type': 'type',
|
|
27
29
|
'enterprise_project_id': 'Enterprise-Project-Id',
|
|
30
|
+
'limit': 'limit',
|
|
31
|
+
'marker': 'marker',
|
|
28
32
|
'body': 'body'
|
|
29
33
|
}
|
|
30
34
|
|
|
31
|
-
def __init__(self, type=None, enterprise_project_id=None, body=None):
|
|
35
|
+
def __init__(self, type=None, enterprise_project_id=None, limit=None, marker=None, body=None):
|
|
32
36
|
"""ListEventsRequest
|
|
33
37
|
|
|
34
38
|
The model defined in huaweicloud sdk
|
|
@@ -37,6 +41,10 @@ class ListEventsRequest:
|
|
|
37
41
|
:type type: str
|
|
38
42
|
:param enterprise_project_id: 企业项目id。 - 查询单个企业项目下实例,填写企业项目id。 - 查询所有企业项目下实例,填写“all_granted_eps”。
|
|
39
43
|
:type enterprise_project_id: str
|
|
44
|
+
:param limit: 不填默认值为1000
|
|
45
|
+
:type limit: int
|
|
46
|
+
:param marker: 分页标记,初始为0,后续值为返回体中的next_marker
|
|
47
|
+
:type marker: str
|
|
40
48
|
:param body: Body of the ListEventsRequest
|
|
41
49
|
:type body: :class:`huaweicloudsdkaom.v2.EventQueryParam2`
|
|
42
50
|
"""
|
|
@@ -45,6 +53,8 @@ class ListEventsRequest:
|
|
|
45
53
|
|
|
46
54
|
self._type = None
|
|
47
55
|
self._enterprise_project_id = None
|
|
56
|
+
self._limit = None
|
|
57
|
+
self._marker = None
|
|
48
58
|
self._body = None
|
|
49
59
|
self.discriminator = None
|
|
50
60
|
|
|
@@ -52,6 +62,10 @@ class ListEventsRequest:
|
|
|
52
62
|
self.type = type
|
|
53
63
|
if enterprise_project_id is not None:
|
|
54
64
|
self.enterprise_project_id = enterprise_project_id
|
|
65
|
+
if limit is not None:
|
|
66
|
+
self.limit = limit
|
|
67
|
+
if marker is not None:
|
|
68
|
+
self.marker = marker
|
|
55
69
|
if body is not None:
|
|
56
70
|
self.body = body
|
|
57
71
|
|
|
@@ -99,6 +113,50 @@ class ListEventsRequest:
|
|
|
99
113
|
"""
|
|
100
114
|
self._enterprise_project_id = enterprise_project_id
|
|
101
115
|
|
|
116
|
+
@property
|
|
117
|
+
def limit(self):
|
|
118
|
+
"""Gets the limit of this ListEventsRequest.
|
|
119
|
+
|
|
120
|
+
不填默认值为1000
|
|
121
|
+
|
|
122
|
+
:return: The limit of this ListEventsRequest.
|
|
123
|
+
:rtype: int
|
|
124
|
+
"""
|
|
125
|
+
return self._limit
|
|
126
|
+
|
|
127
|
+
@limit.setter
|
|
128
|
+
def limit(self, limit):
|
|
129
|
+
"""Sets the limit of this ListEventsRequest.
|
|
130
|
+
|
|
131
|
+
不填默认值为1000
|
|
132
|
+
|
|
133
|
+
:param limit: The limit of this ListEventsRequest.
|
|
134
|
+
:type limit: int
|
|
135
|
+
"""
|
|
136
|
+
self._limit = limit
|
|
137
|
+
|
|
138
|
+
@property
|
|
139
|
+
def marker(self):
|
|
140
|
+
"""Gets the marker of this ListEventsRequest.
|
|
141
|
+
|
|
142
|
+
分页标记,初始为0,后续值为返回体中的next_marker
|
|
143
|
+
|
|
144
|
+
:return: The marker of this ListEventsRequest.
|
|
145
|
+
:rtype: str
|
|
146
|
+
"""
|
|
147
|
+
return self._marker
|
|
148
|
+
|
|
149
|
+
@marker.setter
|
|
150
|
+
def marker(self, marker):
|
|
151
|
+
"""Sets the marker of this ListEventsRequest.
|
|
152
|
+
|
|
153
|
+
分页标记,初始为0,后续值为返回体中的next_marker
|
|
154
|
+
|
|
155
|
+
:param marker: The marker of this ListEventsRequest.
|
|
156
|
+
:type marker: str
|
|
157
|
+
"""
|
|
158
|
+
self._marker = marker
|
|
159
|
+
|
|
102
160
|
@property
|
|
103
161
|
def body(self):
|
|
104
162
|
"""Gets the body of this ListEventsRequest.
|
|
@@ -18,29 +18,36 @@ class ListEventsResponse(SdkResponse):
|
|
|
18
18
|
sensitive_list = []
|
|
19
19
|
|
|
20
20
|
openapi_types = {
|
|
21
|
-
'events': 'list[EventModel]'
|
|
21
|
+
'events': 'list[EventModel]',
|
|
22
|
+
'page_info': 'PageInfo'
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
attribute_map = {
|
|
25
|
-
'events': 'events'
|
|
26
|
+
'events': 'events',
|
|
27
|
+
'page_info': 'page_info'
|
|
26
28
|
}
|
|
27
29
|
|
|
28
|
-
def __init__(self, events=None):
|
|
30
|
+
def __init__(self, events=None, page_info=None):
|
|
29
31
|
"""ListEventsResponse
|
|
30
32
|
|
|
31
33
|
The model defined in huaweicloud sdk
|
|
32
34
|
|
|
33
35
|
:param events: 事件或者告警详情。
|
|
34
36
|
:type events: list[:class:`huaweicloudsdkaom.v2.EventModel`]
|
|
37
|
+
:param page_info:
|
|
38
|
+
:type page_info: :class:`huaweicloudsdkaom.v2.PageInfo`
|
|
35
39
|
"""
|
|
36
40
|
|
|
37
41
|
super(ListEventsResponse, self).__init__()
|
|
38
42
|
|
|
39
43
|
self._events = None
|
|
44
|
+
self._page_info = None
|
|
40
45
|
self.discriminator = None
|
|
41
46
|
|
|
42
47
|
if events is not None:
|
|
43
48
|
self.events = events
|
|
49
|
+
if page_info is not None:
|
|
50
|
+
self.page_info = page_info
|
|
44
51
|
|
|
45
52
|
@property
|
|
46
53
|
def events(self):
|
|
@@ -64,6 +71,24 @@ class ListEventsResponse(SdkResponse):
|
|
|
64
71
|
"""
|
|
65
72
|
self._events = events
|
|
66
73
|
|
|
74
|
+
@property
|
|
75
|
+
def page_info(self):
|
|
76
|
+
"""Gets the page_info of this ListEventsResponse.
|
|
77
|
+
|
|
78
|
+
:return: The page_info of this ListEventsResponse.
|
|
79
|
+
:rtype: :class:`huaweicloudsdkaom.v2.PageInfo`
|
|
80
|
+
"""
|
|
81
|
+
return self._page_info
|
|
82
|
+
|
|
83
|
+
@page_info.setter
|
|
84
|
+
def page_info(self, page_info):
|
|
85
|
+
"""Sets the page_info of this ListEventsResponse.
|
|
86
|
+
|
|
87
|
+
:param page_info: The page_info of this ListEventsResponse.
|
|
88
|
+
:type page_info: :class:`huaweicloudsdkaom.v2.PageInfo`
|
|
89
|
+
"""
|
|
90
|
+
self._page_info = page_info
|
|
91
|
+
|
|
67
92
|
def to_dict(self):
|
|
68
93
|
"""Returns the model properties as a dict"""
|
|
69
94
|
result = {}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class PageInfo:
|
|
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
|
+
'current_count': 'str',
|
|
21
|
+
'previous_marker': 'str',
|
|
22
|
+
'next_marker': 'str'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
attribute_map = {
|
|
26
|
+
'current_count': 'current_count',
|
|
27
|
+
'previous_marker': 'previous_marker',
|
|
28
|
+
'next_marker': 'next_marker'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
def __init__(self, current_count=None, previous_marker=None, next_marker=None):
|
|
32
|
+
"""PageInfo
|
|
33
|
+
|
|
34
|
+
The model defined in huaweicloud sdk
|
|
35
|
+
|
|
36
|
+
:param current_count: 当前页事件、告警总数
|
|
37
|
+
:type current_count: str
|
|
38
|
+
:param previous_marker: 前一个marker
|
|
39
|
+
:type previous_marker: str
|
|
40
|
+
:param next_marker: 下一个marker
|
|
41
|
+
:type next_marker: str
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
self._current_count = None
|
|
47
|
+
self._previous_marker = None
|
|
48
|
+
self._next_marker = None
|
|
49
|
+
self.discriminator = None
|
|
50
|
+
|
|
51
|
+
self.current_count = current_count
|
|
52
|
+
self.previous_marker = previous_marker
|
|
53
|
+
self.next_marker = next_marker
|
|
54
|
+
|
|
55
|
+
@property
|
|
56
|
+
def current_count(self):
|
|
57
|
+
"""Gets the current_count of this PageInfo.
|
|
58
|
+
|
|
59
|
+
当前页事件、告警总数
|
|
60
|
+
|
|
61
|
+
:return: The current_count of this PageInfo.
|
|
62
|
+
:rtype: str
|
|
63
|
+
"""
|
|
64
|
+
return self._current_count
|
|
65
|
+
|
|
66
|
+
@current_count.setter
|
|
67
|
+
def current_count(self, current_count):
|
|
68
|
+
"""Sets the current_count of this PageInfo.
|
|
69
|
+
|
|
70
|
+
当前页事件、告警总数
|
|
71
|
+
|
|
72
|
+
:param current_count: The current_count of this PageInfo.
|
|
73
|
+
:type current_count: str
|
|
74
|
+
"""
|
|
75
|
+
self._current_count = current_count
|
|
76
|
+
|
|
77
|
+
@property
|
|
78
|
+
def previous_marker(self):
|
|
79
|
+
"""Gets the previous_marker of this PageInfo.
|
|
80
|
+
|
|
81
|
+
前一个marker
|
|
82
|
+
|
|
83
|
+
:return: The previous_marker of this PageInfo.
|
|
84
|
+
:rtype: str
|
|
85
|
+
"""
|
|
86
|
+
return self._previous_marker
|
|
87
|
+
|
|
88
|
+
@previous_marker.setter
|
|
89
|
+
def previous_marker(self, previous_marker):
|
|
90
|
+
"""Sets the previous_marker of this PageInfo.
|
|
91
|
+
|
|
92
|
+
前一个marker
|
|
93
|
+
|
|
94
|
+
:param previous_marker: The previous_marker of this PageInfo.
|
|
95
|
+
:type previous_marker: str
|
|
96
|
+
"""
|
|
97
|
+
self._previous_marker = previous_marker
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
def next_marker(self):
|
|
101
|
+
"""Gets the next_marker of this PageInfo.
|
|
102
|
+
|
|
103
|
+
下一个marker
|
|
104
|
+
|
|
105
|
+
:return: The next_marker of this PageInfo.
|
|
106
|
+
:rtype: str
|
|
107
|
+
"""
|
|
108
|
+
return self._next_marker
|
|
109
|
+
|
|
110
|
+
@next_marker.setter
|
|
111
|
+
def next_marker(self, next_marker):
|
|
112
|
+
"""Sets the next_marker of this PageInfo.
|
|
113
|
+
|
|
114
|
+
下一个marker
|
|
115
|
+
|
|
116
|
+
:param next_marker: The next_marker of this PageInfo.
|
|
117
|
+
:type next_marker: str
|
|
118
|
+
"""
|
|
119
|
+
self._next_marker = next_marker
|
|
120
|
+
|
|
121
|
+
def to_dict(self):
|
|
122
|
+
"""Returns the model properties as a dict"""
|
|
123
|
+
result = {}
|
|
124
|
+
|
|
125
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
126
|
+
value = getattr(self, attr)
|
|
127
|
+
if isinstance(value, list):
|
|
128
|
+
result[attr] = list(map(
|
|
129
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
130
|
+
value
|
|
131
|
+
))
|
|
132
|
+
elif hasattr(value, "to_dict"):
|
|
133
|
+
result[attr] = value.to_dict()
|
|
134
|
+
elif isinstance(value, dict):
|
|
135
|
+
result[attr] = dict(map(
|
|
136
|
+
lambda item: (item[0], item[1].to_dict())
|
|
137
|
+
if hasattr(item[1], "to_dict") else item,
|
|
138
|
+
value.items()
|
|
139
|
+
))
|
|
140
|
+
else:
|
|
141
|
+
if attr in self.sensitive_list:
|
|
142
|
+
result[attr] = "****"
|
|
143
|
+
else:
|
|
144
|
+
result[attr] = value
|
|
145
|
+
|
|
146
|
+
return result
|
|
147
|
+
|
|
148
|
+
def to_str(self):
|
|
149
|
+
"""Returns the string representation of the model"""
|
|
150
|
+
import simplejson as json
|
|
151
|
+
if six.PY2:
|
|
152
|
+
import sys
|
|
153
|
+
reload(sys)
|
|
154
|
+
sys.setdefaultencoding("utf-8")
|
|
155
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
156
|
+
|
|
157
|
+
def __repr__(self):
|
|
158
|
+
"""For `print`"""
|
|
159
|
+
return self.to_str()
|
|
160
|
+
|
|
161
|
+
def __eq__(self, other):
|
|
162
|
+
"""Returns true if both objects are equal"""
|
|
163
|
+
if not isinstance(other, PageInfo):
|
|
164
|
+
return False
|
|
165
|
+
|
|
166
|
+
return self.__dict__ == other.__dict__
|
|
167
|
+
|
|
168
|
+
def __ne__(self, other):
|
|
169
|
+
"""Returns true if both objects are not equal"""
|
|
170
|
+
return not self == other
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: huaweicloudsdkaom
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.114
|
|
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.114
|
|
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=
|
|
59
|
-
huaweicloudsdkaom/v2/aom_async_client.py,sha256=
|
|
60
|
-
huaweicloudsdkaom/v2/aom_client.py,sha256=
|
|
61
|
-
huaweicloudsdkaom/v2/model/__init__.py,sha256=
|
|
58
|
+
huaweicloudsdkaom/v2/__init__.py,sha256=cFDP-_ji1HEeYFHCGRvxh7T8mBSGIy7EAKb0VgNyoUA,15536
|
|
59
|
+
huaweicloudsdkaom/v2/aom_async_client.py,sha256=bFhuQC69wsBX3SyPDKya2b4VcRaM8LOqz5FVEmuJ4Bs,114413
|
|
60
|
+
huaweicloudsdkaom/v2/aom_client.py,sha256=bAlUqYRMu4aIPZ2BCavReMLkVHMzSFT1JMlMcTcWHoE,114408
|
|
61
|
+
huaweicloudsdkaom/v2/model/__init__.py,sha256=1OcMKAGF_o-7I_PAfuQp4BqwLdRuLUxzc8hh7jCCj_M,15450
|
|
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
|
|
@@ -108,7 +108,7 @@ huaweicloudsdkaom/v2/model/delete_metric_or_event_alarm_rule_response.py,sha256=
|
|
|
108
108
|
huaweicloudsdkaom/v2/model/delete_mute_rule_name.py,sha256=R4v0YwrK9GzhF_4R4c1ekB-NTxxCrab9sTtr-S4lBsc,3005
|
|
109
109
|
huaweicloudsdkaom/v2/model/delete_mute_rules_request.py,sha256=KFXc0_Iex0dob1fEw8vfJKaOgCsoJ6EwtFVz5h592I4,3155
|
|
110
110
|
huaweicloudsdkaom/v2/model/delete_mute_rules_response.py,sha256=EzZ5PzI5Cq-M4CqSXRut8gQPlZXk4hd81hYAje2aYvw,2443
|
|
111
|
-
huaweicloudsdkaom/v2/model/delete_prom_instance_request.py,sha256=
|
|
111
|
+
huaweicloudsdkaom/v2/model/delete_prom_instance_request.py,sha256=2u-Oz4QFN_hTymhUnwZlCPqcfQsPdgY5ODcV3L6GG7s,4317
|
|
112
112
|
huaweicloudsdkaom/v2/model/delete_prom_instance_response.py,sha256=5X6Mp9OVj-nI_kcXVCH0jzG3oX17VVG7BmjdtySJliQ,3094
|
|
113
113
|
huaweicloudsdkaom/v2/model/deleteservice_discovery_rules_request.py,sha256=HbUBvXnzCp5Q_IiH2r5ZJ2Uxf4Ef_ipd9hcb5Ink4Ow,3433
|
|
114
114
|
huaweicloudsdkaom/v2/model/deleteservice_discovery_rules_response.py,sha256=wATpco001EDH7sljEx4N5jqVvkY4hleDNUZPrFmnKD8,6225
|
|
@@ -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=d18DYHoAfPUzaivc-rz9ru2f8Cp3pfpuXYGRmlxn_UY,13916
|
|
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
|
|
@@ -133,14 +133,14 @@ huaweicloudsdkaom/v2/model/list_access_code_request.py,sha256=HUCcVeqNMzgnzICYQD
|
|
|
133
133
|
huaweicloudsdkaom/v2/model/list_access_code_response.py,sha256=B5Lb56kkXAGZ11xy8sh-oMyA5VdZIJ5YgXHsfpyte0Y,3470
|
|
134
134
|
huaweicloudsdkaom/v2/model/list_action_rule_request.py,sha256=FPhrz9vkCCnNaYQWwzihKDbyyd9CFGPACMkKVmpqlTE,2321
|
|
135
135
|
huaweicloudsdkaom/v2/model/list_action_rule_response.py,sha256=JFyK-0skAskVuko9Vsz74IKuAAFGxSDn1UtXFPG6Wo4,3480
|
|
136
|
-
huaweicloudsdkaom/v2/model/list_agents_request.py,sha256=
|
|
136
|
+
huaweicloudsdkaom/v2/model/list_agents_request.py,sha256=ChrIuXz3mn9tIH2XPu4CL5JUF1QZ3SFn8xUuZycEXII,4325
|
|
137
137
|
huaweicloudsdkaom/v2/model/list_agents_response.py,sha256=sjz9MfVuXgUGkv_BlUU6wwc6rwTUvLwelXhQQTsekq8,3030
|
|
138
138
|
huaweicloudsdkaom/v2/model/list_alarm_rule_request.py,sha256=4rVdbKReq6Vnu1m7xsWNW1T371q6qqeEsU05mfPn1-g,3930
|
|
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_events_request.py,sha256=
|
|
143
|
-
huaweicloudsdkaom/v2/model/list_events_response.py,sha256=
|
|
142
|
+
huaweicloudsdkaom/v2/model/list_events_request.py,sha256=Etbj6FhbzM5uS2oIm5uR3wpujkmh-e6UU210GBP7flk,7272
|
|
143
|
+
huaweicloudsdkaom/v2/model/list_events_response.py,sha256=CbY19hUvuTKo7BqQtr7vT4Zf2WFmLmm9BmPjT8wPHcA,4151
|
|
144
144
|
huaweicloudsdkaom/v2/model/list_instant_query_aom_prom_get_request.py,sha256=XddENcyoKxEpVz__HBft2kNiYCSKeflgnT6gwmlRFh8,4227
|
|
145
145
|
huaweicloudsdkaom/v2/model/list_instant_query_aom_prom_get_response.py,sha256=00ujs3oGdLQ8KmJrca-xXBF0Y4FmikO7kEvZ0u0aBrU,4017
|
|
146
146
|
huaweicloudsdkaom/v2/model/list_instant_query_aom_prom_post_request.py,sha256=MWjbgST3OY8NUDJb2VTWem4f7HapDVWomHDG9qn_xCU,4238
|
|
@@ -196,6 +196,7 @@ huaweicloudsdkaom/v2/model/no_data_condition.py,sha256=Z9w-WZjYAzf3DkDWat9qx5s60
|
|
|
196
196
|
huaweicloudsdkaom/v2/model/node_info.py,sha256=RfhLFpk7_8U2FT3Oa1B7UaRkXQmykKloKKsZmtROXTM,3718
|
|
197
197
|
huaweicloudsdkaom/v2/model/notifications.py,sha256=zD3KfRSRbBEWshHxf_6NS-555cMKoo7ZrDWcrON5g2I,5007
|
|
198
198
|
huaweicloudsdkaom/v2/model/notified_histories_result.py,sha256=PahLlqMye02QiDgfohcLxoW6UYxDMlJ0i0lrtS4mBn8,4155
|
|
199
|
+
huaweicloudsdkaom/v2/model/page_info.py,sha256=wgxZ-_IbqQrtNSna_eA8tb3s6OXfpePud3NqZTQ6XVc,4718
|
|
199
200
|
huaweicloudsdkaom/v2/model/prom_config_model.py,sha256=DFHvWOuMQZF6-f60faUC342GSzz0DCiCnYfUGjL55Ww,7235
|
|
200
201
|
huaweicloudsdkaom/v2/model/prom_instance_eps_create_model.py,sha256=6UXOh2xd5UDnuPacDVTUG_SptOany-PaAlOWqh34MWQ,14397
|
|
201
202
|
huaweicloudsdkaom/v2/model/prom_instance_eps_model.py,sha256=aH_LRVUjasGv2E0ccDHnhLBERd8mLGIMmfoSzx3y9x0,15001
|
|
@@ -292,8 +293,8 @@ huaweicloudsdkaom/v3/model/update_sub_app_response.py,sha256=x6sG_VllQ3TCNjfjxKq
|
|
|
292
293
|
huaweicloudsdkaom/v3/model/waterfall_page_list_param.py,sha256=-NbEgympjn2qe61GQ_wsAQ1-jkbrBX64w8PnxmnxmmU,4201
|
|
293
294
|
huaweicloudsdkaom/v3/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
294
295
|
huaweicloudsdkaom/v3/region/aom_region.py,sha256=ltGBm_iwq189RuHh2wYn7EfJzkb1aHU9rdVhKF1hRQU,4311
|
|
295
|
-
huaweicloudsdkaom-3.1.
|
|
296
|
-
huaweicloudsdkaom-3.1.
|
|
297
|
-
huaweicloudsdkaom-3.1.
|
|
298
|
-
huaweicloudsdkaom-3.1.
|
|
299
|
-
huaweicloudsdkaom-3.1.
|
|
296
|
+
huaweicloudsdkaom-3.1.114.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
|
|
297
|
+
huaweicloudsdkaom-3.1.114.dist-info/METADATA,sha256=kIzCr96rN-Vrz3T5kWR0GcoocXkYjVpwPPU-44QCgpI,1135
|
|
298
|
+
huaweicloudsdkaom-3.1.114.dist-info/WHEEL,sha256=fS9sRbCBHs7VFcwJLnLXN1MZRR0_TVTxvXKzOnaSFs8,110
|
|
299
|
+
huaweicloudsdkaom-3.1.114.dist-info/top_level.txt,sha256=V5oNEkojACaeCidjN4ULPkHqYB7uxxA_RXYXAe-MgEM,18
|
|
300
|
+
huaweicloudsdkaom-3.1.114.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|