huaweicloudsdkaom 3.1.113__py2.py3-none-any.whl → 3.1.115__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 +2 -0
- huaweicloudsdkaom/v2/aom_async_client.py +4 -0
- huaweicloudsdkaom/v2/aom_client.py +4 -0
- huaweicloudsdkaom/v2/model/__init__.py +2 -0
- huaweicloudsdkaom/v2/model/delete_prom_instance_request.py +4 -5
- huaweicloudsdkaom/v2/model/list_agents_request.py +6 -6
- huaweicloudsdkaom/v2/model/list_event_model.py +405 -0
- huaweicloudsdkaom/v2/model/list_events_request.py +59 -1
- huaweicloudsdkaom/v2/model/list_events_response.py +31 -6
- huaweicloudsdkaom/v2/model/page_info.py +170 -0
- {huaweicloudsdkaom-3.1.113.dist-info → huaweicloudsdkaom-3.1.115.dist-info}/METADATA +2 -2
- {huaweicloudsdkaom-3.1.113.dist-info → huaweicloudsdkaom-3.1.115.dist-info}/RECORD +15 -13
- {huaweicloudsdkaom-3.1.113.dist-info → huaweicloudsdkaom-3.1.115.dist-info}/LICENSE +0 -0
- {huaweicloudsdkaom-3.1.113.dist-info → huaweicloudsdkaom-3.1.115.dist-info}/WHEEL +0 -0
- {huaweicloudsdkaom-3.1.113.dist-info → huaweicloudsdkaom-3.1.115.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
|
|
@@ -142,6 +143,7 @@ from huaweicloudsdkaom.v2.model.no_data_condition import NoDataCondition
|
|
|
142
143
|
from huaweicloudsdkaom.v2.model.node_info import NodeInfo
|
|
143
144
|
from huaweicloudsdkaom.v2.model.notifications import Notifications
|
|
144
145
|
from huaweicloudsdkaom.v2.model.notified_histories_result import NotifiedHistoriesResult
|
|
146
|
+
from huaweicloudsdkaom.v2.model.page_info import PageInfo
|
|
145
147
|
from huaweicloudsdkaom.v2.model.prom_config_model import PromConfigModel
|
|
146
148
|
from huaweicloudsdkaom.v2.model.prom_instance_eps_create_model import PromInstanceEpsCreateModel
|
|
147
149
|
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:
|
|
@@ -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
|
|
@@ -140,6 +141,7 @@ from huaweicloudsdkaom.v2.model.no_data_condition import NoDataCondition
|
|
|
140
141
|
from huaweicloudsdkaom.v2.model.node_info import NodeInfo
|
|
141
142
|
from huaweicloudsdkaom.v2.model.notifications import Notifications
|
|
142
143
|
from huaweicloudsdkaom.v2.model.notified_histories_result import NotifiedHistoriesResult
|
|
144
|
+
from huaweicloudsdkaom.v2.model.page_info import PageInfo
|
|
143
145
|
from huaweicloudsdkaom.v2.model.prom_config_model import PromConfigModel
|
|
144
146
|
from huaweicloudsdkaom.v2.model.prom_instance_eps_create_model import PromInstanceEpsCreateModel
|
|
145
147
|
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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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[
|
|
21
|
+
'events': 'list[ListEventModel]',
|
|
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
|
-
:type events: list[:class:`huaweicloudsdkaom.v2.
|
|
36
|
+
:type events: list[:class:`huaweicloudsdkaom.v2.ListEventModel`]
|
|
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):
|
|
@@ -49,7 +56,7 @@ class ListEventsResponse(SdkResponse):
|
|
|
49
56
|
事件或者告警详情。
|
|
50
57
|
|
|
51
58
|
:return: The events of this ListEventsResponse.
|
|
52
|
-
:rtype: list[:class:`huaweicloudsdkaom.v2.
|
|
59
|
+
:rtype: list[:class:`huaweicloudsdkaom.v2.ListEventModel`]
|
|
53
60
|
"""
|
|
54
61
|
return self._events
|
|
55
62
|
|
|
@@ -60,10 +67,28 @@ class ListEventsResponse(SdkResponse):
|
|
|
60
67
|
事件或者告警详情。
|
|
61
68
|
|
|
62
69
|
:param events: The events of this ListEventsResponse.
|
|
63
|
-
:type events: list[:class:`huaweicloudsdkaom.v2.
|
|
70
|
+
:type events: list[:class:`huaweicloudsdkaom.v2.ListEventModel`]
|
|
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': 'int',
|
|
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: int
|
|
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: int
|
|
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: int
|
|
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.115
|
|
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.115
|
|
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=LGRLdaWs4mqaOkMBocMnox01Urwt5oMI9LNxTBi16cI,15607
|
|
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=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
|
|
@@ -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
|
|
@@ -133,14 +133,15 @@ 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/
|
|
143
|
-
huaweicloudsdkaom/v2/model/
|
|
142
|
+
huaweicloudsdkaom/v2/model/list_event_model.py,sha256=R_v8Yk0dieTjvazxtW-Y_4OB-hE1GIUSaPZFipwuZPE,14104
|
|
143
|
+
huaweicloudsdkaom/v2/model/list_events_request.py,sha256=Etbj6FhbzM5uS2oIm5uR3wpujkmh-e6UU210GBP7flk,7272
|
|
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,6 +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
|
|
200
|
+
huaweicloudsdkaom/v2/model/page_info.py,sha256=Yw4Fz_hVeSbP5OWUodgEy5f9-05qEWxW9ixRRdiMQz0,4718
|
|
199
201
|
huaweicloudsdkaom/v2/model/prom_config_model.py,sha256=DFHvWOuMQZF6-f60faUC342GSzz0DCiCnYfUGjL55Ww,7235
|
|
200
202
|
huaweicloudsdkaom/v2/model/prom_instance_eps_create_model.py,sha256=6UXOh2xd5UDnuPacDVTUG_SptOany-PaAlOWqh34MWQ,14397
|
|
201
203
|
huaweicloudsdkaom/v2/model/prom_instance_eps_model.py,sha256=aH_LRVUjasGv2E0ccDHnhLBERd8mLGIMmfoSzx3y9x0,15001
|
|
@@ -292,8 +294,8 @@ huaweicloudsdkaom/v3/model/update_sub_app_response.py,sha256=x6sG_VllQ3TCNjfjxKq
|
|
|
292
294
|
huaweicloudsdkaom/v3/model/waterfall_page_list_param.py,sha256=-NbEgympjn2qe61GQ_wsAQ1-jkbrBX64w8PnxmnxmmU,4201
|
|
293
295
|
huaweicloudsdkaom/v3/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
294
296
|
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.
|
|
297
|
+
huaweicloudsdkaom-3.1.115.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
|
|
298
|
+
huaweicloudsdkaom-3.1.115.dist-info/METADATA,sha256=kK_MRREdYZojMMSO08AqZWoEWLwVJDtb8KB0yNYbXZw,1135
|
|
299
|
+
huaweicloudsdkaom-3.1.115.dist-info/WHEEL,sha256=fS9sRbCBHs7VFcwJLnLXN1MZRR0_TVTxvXKzOnaSFs8,110
|
|
300
|
+
huaweicloudsdkaom-3.1.115.dist-info/top_level.txt,sha256=V5oNEkojACaeCidjN4ULPkHqYB7uxxA_RXYXAe-MgEM,18
|
|
301
|
+
huaweicloudsdkaom-3.1.115.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|