huaweicloudsdkaom 3.1.86__py2.py3-none-any.whl → 3.1.132__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.

Files changed (69) hide show
  1. huaweicloudsdkaom/v1/region/aom_region.py +9 -0
  2. huaweicloudsdkaom/v2/__init__.py +23 -0
  3. huaweicloudsdkaom/v2/aom_async_client.py +255 -24
  4. huaweicloudsdkaom/v2/aom_client.py +255 -24
  5. huaweicloudsdkaom/v2/model/__init__.py +23 -0
  6. huaweicloudsdkaom/v2/model/add_or_update_alarm_rule_v4_item_result.py +142 -0
  7. huaweicloudsdkaom/v2/model/add_or_update_alarm_rule_v4_request_body.py +304 -0
  8. huaweicloudsdkaom/v2/model/add_or_update_metric_or_event_alarm_rule_request.py +168 -0
  9. huaweicloudsdkaom/v2/model/add_or_update_metric_or_event_alarm_rule_response.py +174 -0
  10. huaweicloudsdkaom/v2/model/alarm_notification.py +315 -0
  11. huaweicloudsdkaom/v2/model/alarm_param_for_v4_db.py +470 -0
  12. huaweicloudsdkaom/v2/model/alarm_tags.py +173 -0
  13. huaweicloudsdkaom/v2/model/cmdb_info.py +144 -0
  14. huaweicloudsdkaom/v2/model/count_events_response.py +32 -3
  15. huaweicloudsdkaom/v2/model/delete_alarm_rule_v4_request_body.py +114 -0
  16. huaweicloudsdkaom/v2/model/delete_metric_or_event_alarm_rule_request.py +111 -0
  17. huaweicloudsdkaom/v2/model/delete_metric_or_event_alarm_rule_response.py +174 -0
  18. huaweicloudsdkaom/v2/model/delete_prom_instance_request.py +31 -3
  19. huaweicloudsdkaom/v2/model/event_alarm_spec.py +260 -0
  20. huaweicloudsdkaom/v2/model/event_trigger_condition.py +260 -0
  21. huaweicloudsdkaom/v2/model/item_result.py +114 -0
  22. huaweicloudsdkaom/v2/model/list_agents_request.py +6 -6
  23. huaweicloudsdkaom/v2/model/list_event_model.py +405 -0
  24. huaweicloudsdkaom/v2/model/list_events_request.py +88 -1
  25. huaweicloudsdkaom/v2/model/list_events_response.py +31 -6
  26. huaweicloudsdkaom/v2/model/list_metric_or_event_alarm_rule_request.py +434 -0
  27. huaweicloudsdkaom/v2/model/list_metric_or_event_alarm_rule_response.py +174 -0
  28. huaweicloudsdkaom/v2/model/list_prom_instance_request.py +31 -3
  29. huaweicloudsdkaom/v2/model/metric_alarm_spec.py +310 -0
  30. huaweicloudsdkaom/v2/model/no_data_condition.py +173 -0
  31. huaweicloudsdkaom/v2/model/node_info.py +144 -0
  32. huaweicloudsdkaom/v2/model/page_info.py +170 -0
  33. huaweicloudsdkaom/v2/model/push_events_request.py +18 -18
  34. huaweicloudsdkaom/v2/model/recovery_condition.py +115 -0
  35. huaweicloudsdkaom/v2/model/smn_info.py +4 -4
  36. huaweicloudsdkaom/v2/model/trigger_condition.py +742 -0
  37. huaweicloudsdkaom/v2/region/aom_region.py +9 -0
  38. huaweicloudsdkaom/v3/aom_async_client.py +19 -19
  39. huaweicloudsdkaom/v3/aom_client.py +19 -19
  40. huaweicloudsdkaom/v3/model/biz_app_param.py +12 -12
  41. huaweicloudsdkaom/v3/model/component_param.py +3 -3
  42. huaweicloudsdkaom/v3/model/env_param.py +6 -6
  43. huaweicloudsdkaom/v3/model/sub_app_create_param.py +15 -15
  44. huaweicloudsdkaom/v3/model/sub_app_update_param.py +9 -9
  45. huaweicloudsdkaom/v3/region/aom_region.py +9 -0
  46. huaweicloudsdkaom/v4/__init__.py +21 -0
  47. huaweicloudsdkaom/v4/aom_async_client.py +279 -0
  48. huaweicloudsdkaom/v4/aom_client.py +276 -0
  49. huaweicloudsdkaom/v4/model/__init__.py +18 -0
  50. huaweicloudsdkaom/v4/model/agent_batch_import_param_new.py +280 -0
  51. huaweicloudsdkaom/v4/model/agent_import_param_new.py +313 -0
  52. huaweicloudsdkaom/v4/model/agent_info_param.py +231 -0
  53. huaweicloudsdkaom/v4/model/agent_info_result.py +463 -0
  54. huaweicloudsdkaom/v4/model/agent_upgrade_param.py +142 -0
  55. huaweicloudsdkaom/v4/model/batch_import_agent_request.py +139 -0
  56. huaweicloudsdkaom/v4/model/batch_import_agent_response.py +116 -0
  57. huaweicloudsdkaom/v4/model/batch_update_agent_request.py +111 -0
  58. huaweicloudsdkaom/v4/model/batch_update_agent_response.py +116 -0
  59. huaweicloudsdkaom/v4/model/plugin_install_basic_param.py +173 -0
  60. huaweicloudsdkaom/v4/model/show_agent_infos_request.py +111 -0
  61. huaweicloudsdkaom/v4/model/show_agent_infos_response.py +203 -0
  62. huaweicloudsdkaom/v4/model/single_agent_param.py +142 -0
  63. huaweicloudsdkaom/v4/region/__init__.py +0 -0
  64. huaweicloudsdkaom/v4/region/aom_region.py +100 -0
  65. {huaweicloudsdkaom-3.1.86.dist-info → huaweicloudsdkaom-3.1.132.dist-info}/METADATA +2 -2
  66. {huaweicloudsdkaom-3.1.86.dist-info → huaweicloudsdkaom-3.1.132.dist-info}/RECORD +69 -27
  67. {huaweicloudsdkaom-3.1.86.dist-info → huaweicloudsdkaom-3.1.132.dist-info}/WHEEL +1 -1
  68. {huaweicloudsdkaom-3.1.86.dist-info → huaweicloudsdkaom-3.1.132.dist-info}/LICENSE +0 -0
  69. {huaweicloudsdkaom-3.1.86.dist-info → huaweicloudsdkaom-3.1.132.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,742 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class TriggerCondition:
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
+ 'metric_query_mode': 'str',
21
+ 'metric_namespace': 'str',
22
+ 'metric_name': 'str',
23
+ 'metric_unit': 'str',
24
+ 'metric_labels': 'list[str]',
25
+ 'promql': 'str',
26
+ 'promql_expr': 'list[str]',
27
+ 'trigger_times': 'str',
28
+ 'trigger_interval': 'str',
29
+ 'trigger_type': 'str',
30
+ 'promql_for': 'str',
31
+ 'aggregation_type': 'str',
32
+ 'operator': 'str',
33
+ 'thresholds': 'dict(str, str)',
34
+ 'aggregation_window': 'str',
35
+ 'cmdb': 'CmdbInfo',
36
+ 'query_match': 'str',
37
+ 'query_param': 'str',
38
+ 'aom_monitor_level': 'str',
39
+ 'aggregate_type': 'str',
40
+ 'metric_statistic_method': 'str',
41
+ 'expression': 'str',
42
+ 'mix_promql': 'str'
43
+ }
44
+
45
+ attribute_map = {
46
+ 'metric_query_mode': 'metric_query_mode',
47
+ 'metric_namespace': 'metric_namespace',
48
+ 'metric_name': 'metric_name',
49
+ 'metric_unit': 'metric_unit',
50
+ 'metric_labels': 'metric_labels',
51
+ 'promql': 'promql',
52
+ 'promql_expr': 'promql_expr',
53
+ 'trigger_times': 'trigger_times',
54
+ 'trigger_interval': 'trigger_interval',
55
+ 'trigger_type': 'trigger_type',
56
+ 'promql_for': 'promql_for',
57
+ 'aggregation_type': 'aggregation_type',
58
+ 'operator': 'operator',
59
+ 'thresholds': 'thresholds',
60
+ 'aggregation_window': 'aggregation_window',
61
+ 'cmdb': 'cmdb',
62
+ 'query_match': 'query_match',
63
+ 'query_param': 'query_param',
64
+ 'aom_monitor_level': 'aom_monitor_level',
65
+ 'aggregate_type': 'aggregate_type',
66
+ 'metric_statistic_method': 'metric_statistic_method',
67
+ 'expression': 'expression',
68
+ 'mix_promql': 'mix_promql'
69
+ }
70
+
71
+ def __init__(self, metric_query_mode=None, metric_namespace=None, metric_name=None, metric_unit=None, metric_labels=None, promql=None, promql_expr=None, trigger_times=None, trigger_interval=None, trigger_type=None, promql_for=None, aggregation_type=None, operator=None, thresholds=None, aggregation_window=None, cmdb=None, query_match=None, query_param=None, aom_monitor_level=None, aggregate_type=None, metric_statistic_method=None, expression=None, mix_promql=None):
72
+ """TriggerCondition
73
+
74
+ The model defined in huaweicloud sdk
75
+
76
+ :param metric_query_mode: 指标查询模式。 - “AOM”:AOM原生 - “PROM”:AOM Prometheus - “NATIVE_PROM”:原生Prometheus
77
+ :type metric_query_mode: str
78
+ :param metric_namespace: 指标命名空间。
79
+ :type metric_namespace: str
80
+ :param metric_name: 指标名称。
81
+ :type metric_name: str
82
+ :param metric_unit: 指标单位。
83
+ :type metric_unit: str
84
+ :param metric_labels: 指标维度。
85
+ :type metric_labels: list[str]
86
+ :param promql: Prometheus语句。
87
+ :type promql: str
88
+ :param promql_expr: Prometheus语句模板。
89
+ :type promql_expr: list[str]
90
+ :param trigger_times: 连续周期个数。
91
+ :type trigger_times: str
92
+ :param trigger_interval: 检查频率周期。 - 当trigger_type 为“HOURLY”时,填“” - 当trigger_type为“DAILY”时,格式为:“小时” 例如 每天凌晨三点\"03:00\" - 当trigger_type为“WEEKLY”时,格式为:“星期 小时”例如每周一凌晨三点 “1 03:00” - 当trigger_type为“CRON”时,格式为 标准CRON表达式 - 当trigger_type为“FIXED_RATE”时,秒的取值为15s,30s,分钟为 1~59,小时为 1~24。例如:“15s”,“30s”,“1min”,“1h”
93
+ :type trigger_interval: str
94
+ :param trigger_type: 触发频率的类型: - “FIXED_RATE”:固定间隔 - “HOURLY”:每小时 - “DAILY”:每天 - “WEEKLY”:每周 - “CRON”:Cron表达式
95
+ :type trigger_type: str
96
+ :param promql_for: Prometheus原生监控时长。
97
+ :type promql_for: str
98
+ :param aggregation_type: 统计方式: - average - minimum - maximum - sum - sampleCount
99
+ :type aggregation_type: str
100
+ :param operator: 判断条件:“>”,“<”,“=”,“>=”,“<=”
101
+ :type operator: str
102
+ :param thresholds: 键值对形式,键为告警级别,值为告警阈值
103
+ :type thresholds: dict(str, str)
104
+ :param aggregation_window: 统计周期。 - “15s” - “30s” - “1m” - “5m” - “15m” - “1h”
105
+ :type aggregation_window: str
106
+ :param cmdb:
107
+ :type cmdb: :class:`huaweicloudsdkaom.v2.CmdbInfo`
108
+ :param query_match: 查询筛选条件。
109
+ :type query_match: str
110
+ :param query_param: 查询参数
111
+ :type query_param: str
112
+ :param aom_monitor_level: 监控层级。
113
+ :type aom_monitor_level: str
114
+ :param aggregate_type: 聚合方式。 - “by”:不分组 - “avg” - “max” - “min” - “sum”
115
+ :type aggregate_type: str
116
+ :param metric_statistic_method: 当配置方式为全量指标时可选择的指标运算方式。 - “single”:单个指标进行运算 - “mix”:多个指标进行混合运算
117
+ :type metric_statistic_method: str
118
+ :param expression: 混合运算的表达式。
119
+ :type expression: str
120
+ :param mix_promql: 混合运算的promQL。
121
+ :type mix_promql: str
122
+ """
123
+
124
+
125
+
126
+ self._metric_query_mode = None
127
+ self._metric_namespace = None
128
+ self._metric_name = None
129
+ self._metric_unit = None
130
+ self._metric_labels = None
131
+ self._promql = None
132
+ self._promql_expr = None
133
+ self._trigger_times = None
134
+ self._trigger_interval = None
135
+ self._trigger_type = None
136
+ self._promql_for = None
137
+ self._aggregation_type = None
138
+ self._operator = None
139
+ self._thresholds = None
140
+ self._aggregation_window = None
141
+ self._cmdb = None
142
+ self._query_match = None
143
+ self._query_param = None
144
+ self._aom_monitor_level = None
145
+ self._aggregate_type = None
146
+ self._metric_statistic_method = None
147
+ self._expression = None
148
+ self._mix_promql = None
149
+ self.discriminator = None
150
+
151
+ self.metric_query_mode = metric_query_mode
152
+ self.metric_namespace = metric_namespace
153
+ self.metric_name = metric_name
154
+ self.metric_unit = metric_unit
155
+ self.metric_labels = metric_labels
156
+ self.promql = promql
157
+ if promql_expr is not None:
158
+ self.promql_expr = promql_expr
159
+ if trigger_times is not None:
160
+ self.trigger_times = trigger_times
161
+ if trigger_interval is not None:
162
+ self.trigger_interval = trigger_interval
163
+ if trigger_type is not None:
164
+ self.trigger_type = trigger_type
165
+ if promql_for is not None:
166
+ self.promql_for = promql_for
167
+ if aggregation_type is not None:
168
+ self.aggregation_type = aggregation_type
169
+ if operator is not None:
170
+ self.operator = operator
171
+ if thresholds is not None:
172
+ self.thresholds = thresholds
173
+ if aggregation_window is not None:
174
+ self.aggregation_window = aggregation_window
175
+ if cmdb is not None:
176
+ self.cmdb = cmdb
177
+ if query_match is not None:
178
+ self.query_match = query_match
179
+ self.query_param = query_param
180
+ if aom_monitor_level is not None:
181
+ self.aom_monitor_level = aom_monitor_level
182
+ if aggregate_type is not None:
183
+ self.aggregate_type = aggregate_type
184
+ if metric_statistic_method is not None:
185
+ self.metric_statistic_method = metric_statistic_method
186
+ if expression is not None:
187
+ self.expression = expression
188
+ if mix_promql is not None:
189
+ self.mix_promql = mix_promql
190
+
191
+ @property
192
+ def metric_query_mode(self):
193
+ """Gets the metric_query_mode of this TriggerCondition.
194
+
195
+ 指标查询模式。 - “AOM”:AOM原生 - “PROM”:AOM Prometheus - “NATIVE_PROM”:原生Prometheus
196
+
197
+ :return: The metric_query_mode of this TriggerCondition.
198
+ :rtype: str
199
+ """
200
+ return self._metric_query_mode
201
+
202
+ @metric_query_mode.setter
203
+ def metric_query_mode(self, metric_query_mode):
204
+ """Sets the metric_query_mode of this TriggerCondition.
205
+
206
+ 指标查询模式。 - “AOM”:AOM原生 - “PROM”:AOM Prometheus - “NATIVE_PROM”:原生Prometheus
207
+
208
+ :param metric_query_mode: The metric_query_mode of this TriggerCondition.
209
+ :type metric_query_mode: str
210
+ """
211
+ self._metric_query_mode = metric_query_mode
212
+
213
+ @property
214
+ def metric_namespace(self):
215
+ """Gets the metric_namespace of this TriggerCondition.
216
+
217
+ 指标命名空间。
218
+
219
+ :return: The metric_namespace of this TriggerCondition.
220
+ :rtype: str
221
+ """
222
+ return self._metric_namespace
223
+
224
+ @metric_namespace.setter
225
+ def metric_namespace(self, metric_namespace):
226
+ """Sets the metric_namespace of this TriggerCondition.
227
+
228
+ 指标命名空间。
229
+
230
+ :param metric_namespace: The metric_namespace of this TriggerCondition.
231
+ :type metric_namespace: str
232
+ """
233
+ self._metric_namespace = metric_namespace
234
+
235
+ @property
236
+ def metric_name(self):
237
+ """Gets the metric_name of this TriggerCondition.
238
+
239
+ 指标名称。
240
+
241
+ :return: The metric_name of this TriggerCondition.
242
+ :rtype: str
243
+ """
244
+ return self._metric_name
245
+
246
+ @metric_name.setter
247
+ def metric_name(self, metric_name):
248
+ """Sets the metric_name of this TriggerCondition.
249
+
250
+ 指标名称。
251
+
252
+ :param metric_name: The metric_name of this TriggerCondition.
253
+ :type metric_name: str
254
+ """
255
+ self._metric_name = metric_name
256
+
257
+ @property
258
+ def metric_unit(self):
259
+ """Gets the metric_unit of this TriggerCondition.
260
+
261
+ 指标单位。
262
+
263
+ :return: The metric_unit of this TriggerCondition.
264
+ :rtype: str
265
+ """
266
+ return self._metric_unit
267
+
268
+ @metric_unit.setter
269
+ def metric_unit(self, metric_unit):
270
+ """Sets the metric_unit of this TriggerCondition.
271
+
272
+ 指标单位。
273
+
274
+ :param metric_unit: The metric_unit of this TriggerCondition.
275
+ :type metric_unit: str
276
+ """
277
+ self._metric_unit = metric_unit
278
+
279
+ @property
280
+ def metric_labels(self):
281
+ """Gets the metric_labels of this TriggerCondition.
282
+
283
+ 指标维度。
284
+
285
+ :return: The metric_labels of this TriggerCondition.
286
+ :rtype: list[str]
287
+ """
288
+ return self._metric_labels
289
+
290
+ @metric_labels.setter
291
+ def metric_labels(self, metric_labels):
292
+ """Sets the metric_labels of this TriggerCondition.
293
+
294
+ 指标维度。
295
+
296
+ :param metric_labels: The metric_labels of this TriggerCondition.
297
+ :type metric_labels: list[str]
298
+ """
299
+ self._metric_labels = metric_labels
300
+
301
+ @property
302
+ def promql(self):
303
+ """Gets the promql of this TriggerCondition.
304
+
305
+ Prometheus语句。
306
+
307
+ :return: The promql of this TriggerCondition.
308
+ :rtype: str
309
+ """
310
+ return self._promql
311
+
312
+ @promql.setter
313
+ def promql(self, promql):
314
+ """Sets the promql of this TriggerCondition.
315
+
316
+ Prometheus语句。
317
+
318
+ :param promql: The promql of this TriggerCondition.
319
+ :type promql: str
320
+ """
321
+ self._promql = promql
322
+
323
+ @property
324
+ def promql_expr(self):
325
+ """Gets the promql_expr of this TriggerCondition.
326
+
327
+ Prometheus语句模板。
328
+
329
+ :return: The promql_expr of this TriggerCondition.
330
+ :rtype: list[str]
331
+ """
332
+ return self._promql_expr
333
+
334
+ @promql_expr.setter
335
+ def promql_expr(self, promql_expr):
336
+ """Sets the promql_expr of this TriggerCondition.
337
+
338
+ Prometheus语句模板。
339
+
340
+ :param promql_expr: The promql_expr of this TriggerCondition.
341
+ :type promql_expr: list[str]
342
+ """
343
+ self._promql_expr = promql_expr
344
+
345
+ @property
346
+ def trigger_times(self):
347
+ """Gets the trigger_times of this TriggerCondition.
348
+
349
+ 连续周期个数。
350
+
351
+ :return: The trigger_times of this TriggerCondition.
352
+ :rtype: str
353
+ """
354
+ return self._trigger_times
355
+
356
+ @trigger_times.setter
357
+ def trigger_times(self, trigger_times):
358
+ """Sets the trigger_times of this TriggerCondition.
359
+
360
+ 连续周期个数。
361
+
362
+ :param trigger_times: The trigger_times of this TriggerCondition.
363
+ :type trigger_times: str
364
+ """
365
+ self._trigger_times = trigger_times
366
+
367
+ @property
368
+ def trigger_interval(self):
369
+ """Gets the trigger_interval of this TriggerCondition.
370
+
371
+ 检查频率周期。 - 当trigger_type 为“HOURLY”时,填“” - 当trigger_type为“DAILY”时,格式为:“小时” 例如 每天凌晨三点\"03:00\" - 当trigger_type为“WEEKLY”时,格式为:“星期 小时”例如每周一凌晨三点 “1 03:00” - 当trigger_type为“CRON”时,格式为 标准CRON表达式 - 当trigger_type为“FIXED_RATE”时,秒的取值为15s,30s,分钟为 1~59,小时为 1~24。例如:“15s”,“30s”,“1min”,“1h”
372
+
373
+ :return: The trigger_interval of this TriggerCondition.
374
+ :rtype: str
375
+ """
376
+ return self._trigger_interval
377
+
378
+ @trigger_interval.setter
379
+ def trigger_interval(self, trigger_interval):
380
+ """Sets the trigger_interval of this TriggerCondition.
381
+
382
+ 检查频率周期。 - 当trigger_type 为“HOURLY”时,填“” - 当trigger_type为“DAILY”时,格式为:“小时” 例如 每天凌晨三点\"03:00\" - 当trigger_type为“WEEKLY”时,格式为:“星期 小时”例如每周一凌晨三点 “1 03:00” - 当trigger_type为“CRON”时,格式为 标准CRON表达式 - 当trigger_type为“FIXED_RATE”时,秒的取值为15s,30s,分钟为 1~59,小时为 1~24。例如:“15s”,“30s”,“1min”,“1h”
383
+
384
+ :param trigger_interval: The trigger_interval of this TriggerCondition.
385
+ :type trigger_interval: str
386
+ """
387
+ self._trigger_interval = trigger_interval
388
+
389
+ @property
390
+ def trigger_type(self):
391
+ """Gets the trigger_type of this TriggerCondition.
392
+
393
+ 触发频率的类型: - “FIXED_RATE”:固定间隔 - “HOURLY”:每小时 - “DAILY”:每天 - “WEEKLY”:每周 - “CRON”:Cron表达式
394
+
395
+ :return: The trigger_type of this TriggerCondition.
396
+ :rtype: str
397
+ """
398
+ return self._trigger_type
399
+
400
+ @trigger_type.setter
401
+ def trigger_type(self, trigger_type):
402
+ """Sets the trigger_type of this TriggerCondition.
403
+
404
+ 触发频率的类型: - “FIXED_RATE”:固定间隔 - “HOURLY”:每小时 - “DAILY”:每天 - “WEEKLY”:每周 - “CRON”:Cron表达式
405
+
406
+ :param trigger_type: The trigger_type of this TriggerCondition.
407
+ :type trigger_type: str
408
+ """
409
+ self._trigger_type = trigger_type
410
+
411
+ @property
412
+ def promql_for(self):
413
+ """Gets the promql_for of this TriggerCondition.
414
+
415
+ Prometheus原生监控时长。
416
+
417
+ :return: The promql_for of this TriggerCondition.
418
+ :rtype: str
419
+ """
420
+ return self._promql_for
421
+
422
+ @promql_for.setter
423
+ def promql_for(self, promql_for):
424
+ """Sets the promql_for of this TriggerCondition.
425
+
426
+ Prometheus原生监控时长。
427
+
428
+ :param promql_for: The promql_for of this TriggerCondition.
429
+ :type promql_for: str
430
+ """
431
+ self._promql_for = promql_for
432
+
433
+ @property
434
+ def aggregation_type(self):
435
+ """Gets the aggregation_type of this TriggerCondition.
436
+
437
+ 统计方式: - average - minimum - maximum - sum - sampleCount
438
+
439
+ :return: The aggregation_type of this TriggerCondition.
440
+ :rtype: str
441
+ """
442
+ return self._aggregation_type
443
+
444
+ @aggregation_type.setter
445
+ def aggregation_type(self, aggregation_type):
446
+ """Sets the aggregation_type of this TriggerCondition.
447
+
448
+ 统计方式: - average - minimum - maximum - sum - sampleCount
449
+
450
+ :param aggregation_type: The aggregation_type of this TriggerCondition.
451
+ :type aggregation_type: str
452
+ """
453
+ self._aggregation_type = aggregation_type
454
+
455
+ @property
456
+ def operator(self):
457
+ """Gets the operator of this TriggerCondition.
458
+
459
+ 判断条件:“>”,“<”,“=”,“>=”,“<=”
460
+
461
+ :return: The operator of this TriggerCondition.
462
+ :rtype: str
463
+ """
464
+ return self._operator
465
+
466
+ @operator.setter
467
+ def operator(self, operator):
468
+ """Sets the operator of this TriggerCondition.
469
+
470
+ 判断条件:“>”,“<”,“=”,“>=”,“<=”
471
+
472
+ :param operator: The operator of this TriggerCondition.
473
+ :type operator: str
474
+ """
475
+ self._operator = operator
476
+
477
+ @property
478
+ def thresholds(self):
479
+ """Gets the thresholds of this TriggerCondition.
480
+
481
+ 键值对形式,键为告警级别,值为告警阈值
482
+
483
+ :return: The thresholds of this TriggerCondition.
484
+ :rtype: dict(str, str)
485
+ """
486
+ return self._thresholds
487
+
488
+ @thresholds.setter
489
+ def thresholds(self, thresholds):
490
+ """Sets the thresholds of this TriggerCondition.
491
+
492
+ 键值对形式,键为告警级别,值为告警阈值
493
+
494
+ :param thresholds: The thresholds of this TriggerCondition.
495
+ :type thresholds: dict(str, str)
496
+ """
497
+ self._thresholds = thresholds
498
+
499
+ @property
500
+ def aggregation_window(self):
501
+ """Gets the aggregation_window of this TriggerCondition.
502
+
503
+ 统计周期。 - “15s” - “30s” - “1m” - “5m” - “15m” - “1h”
504
+
505
+ :return: The aggregation_window of this TriggerCondition.
506
+ :rtype: str
507
+ """
508
+ return self._aggregation_window
509
+
510
+ @aggregation_window.setter
511
+ def aggregation_window(self, aggregation_window):
512
+ """Sets the aggregation_window of this TriggerCondition.
513
+
514
+ 统计周期。 - “15s” - “30s” - “1m” - “5m” - “15m” - “1h”
515
+
516
+ :param aggregation_window: The aggregation_window of this TriggerCondition.
517
+ :type aggregation_window: str
518
+ """
519
+ self._aggregation_window = aggregation_window
520
+
521
+ @property
522
+ def cmdb(self):
523
+ """Gets the cmdb of this TriggerCondition.
524
+
525
+ :return: The cmdb of this TriggerCondition.
526
+ :rtype: :class:`huaweicloudsdkaom.v2.CmdbInfo`
527
+ """
528
+ return self._cmdb
529
+
530
+ @cmdb.setter
531
+ def cmdb(self, cmdb):
532
+ """Sets the cmdb of this TriggerCondition.
533
+
534
+ :param cmdb: The cmdb of this TriggerCondition.
535
+ :type cmdb: :class:`huaweicloudsdkaom.v2.CmdbInfo`
536
+ """
537
+ self._cmdb = cmdb
538
+
539
+ @property
540
+ def query_match(self):
541
+ """Gets the query_match of this TriggerCondition.
542
+
543
+ 查询筛选条件。
544
+
545
+ :return: The query_match of this TriggerCondition.
546
+ :rtype: str
547
+ """
548
+ return self._query_match
549
+
550
+ @query_match.setter
551
+ def query_match(self, query_match):
552
+ """Sets the query_match of this TriggerCondition.
553
+
554
+ 查询筛选条件。
555
+
556
+ :param query_match: The query_match of this TriggerCondition.
557
+ :type query_match: str
558
+ """
559
+ self._query_match = query_match
560
+
561
+ @property
562
+ def query_param(self):
563
+ """Gets the query_param of this TriggerCondition.
564
+
565
+ 查询参数
566
+
567
+ :return: The query_param of this TriggerCondition.
568
+ :rtype: str
569
+ """
570
+ return self._query_param
571
+
572
+ @query_param.setter
573
+ def query_param(self, query_param):
574
+ """Sets the query_param of this TriggerCondition.
575
+
576
+ 查询参数
577
+
578
+ :param query_param: The query_param of this TriggerCondition.
579
+ :type query_param: str
580
+ """
581
+ self._query_param = query_param
582
+
583
+ @property
584
+ def aom_monitor_level(self):
585
+ """Gets the aom_monitor_level of this TriggerCondition.
586
+
587
+ 监控层级。
588
+
589
+ :return: The aom_monitor_level of this TriggerCondition.
590
+ :rtype: str
591
+ """
592
+ return self._aom_monitor_level
593
+
594
+ @aom_monitor_level.setter
595
+ def aom_monitor_level(self, aom_monitor_level):
596
+ """Sets the aom_monitor_level of this TriggerCondition.
597
+
598
+ 监控层级。
599
+
600
+ :param aom_monitor_level: The aom_monitor_level of this TriggerCondition.
601
+ :type aom_monitor_level: str
602
+ """
603
+ self._aom_monitor_level = aom_monitor_level
604
+
605
+ @property
606
+ def aggregate_type(self):
607
+ """Gets the aggregate_type of this TriggerCondition.
608
+
609
+ 聚合方式。 - “by”:不分组 - “avg” - “max” - “min” - “sum”
610
+
611
+ :return: The aggregate_type of this TriggerCondition.
612
+ :rtype: str
613
+ """
614
+ return self._aggregate_type
615
+
616
+ @aggregate_type.setter
617
+ def aggregate_type(self, aggregate_type):
618
+ """Sets the aggregate_type of this TriggerCondition.
619
+
620
+ 聚合方式。 - “by”:不分组 - “avg” - “max” - “min” - “sum”
621
+
622
+ :param aggregate_type: The aggregate_type of this TriggerCondition.
623
+ :type aggregate_type: str
624
+ """
625
+ self._aggregate_type = aggregate_type
626
+
627
+ @property
628
+ def metric_statistic_method(self):
629
+ """Gets the metric_statistic_method of this TriggerCondition.
630
+
631
+ 当配置方式为全量指标时可选择的指标运算方式。 - “single”:单个指标进行运算 - “mix”:多个指标进行混合运算
632
+
633
+ :return: The metric_statistic_method of this TriggerCondition.
634
+ :rtype: str
635
+ """
636
+ return self._metric_statistic_method
637
+
638
+ @metric_statistic_method.setter
639
+ def metric_statistic_method(self, metric_statistic_method):
640
+ """Sets the metric_statistic_method of this TriggerCondition.
641
+
642
+ 当配置方式为全量指标时可选择的指标运算方式。 - “single”:单个指标进行运算 - “mix”:多个指标进行混合运算
643
+
644
+ :param metric_statistic_method: The metric_statistic_method of this TriggerCondition.
645
+ :type metric_statistic_method: str
646
+ """
647
+ self._metric_statistic_method = metric_statistic_method
648
+
649
+ @property
650
+ def expression(self):
651
+ """Gets the expression of this TriggerCondition.
652
+
653
+ 混合运算的表达式。
654
+
655
+ :return: The expression of this TriggerCondition.
656
+ :rtype: str
657
+ """
658
+ return self._expression
659
+
660
+ @expression.setter
661
+ def expression(self, expression):
662
+ """Sets the expression of this TriggerCondition.
663
+
664
+ 混合运算的表达式。
665
+
666
+ :param expression: The expression of this TriggerCondition.
667
+ :type expression: str
668
+ """
669
+ self._expression = expression
670
+
671
+ @property
672
+ def mix_promql(self):
673
+ """Gets the mix_promql of this TriggerCondition.
674
+
675
+ 混合运算的promQL。
676
+
677
+ :return: The mix_promql of this TriggerCondition.
678
+ :rtype: str
679
+ """
680
+ return self._mix_promql
681
+
682
+ @mix_promql.setter
683
+ def mix_promql(self, mix_promql):
684
+ """Sets the mix_promql of this TriggerCondition.
685
+
686
+ 混合运算的promQL。
687
+
688
+ :param mix_promql: The mix_promql of this TriggerCondition.
689
+ :type mix_promql: str
690
+ """
691
+ self._mix_promql = mix_promql
692
+
693
+ def to_dict(self):
694
+ """Returns the model properties as a dict"""
695
+ result = {}
696
+
697
+ for attr, _ in six.iteritems(self.openapi_types):
698
+ value = getattr(self, attr)
699
+ if isinstance(value, list):
700
+ result[attr] = list(map(
701
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
702
+ value
703
+ ))
704
+ elif hasattr(value, "to_dict"):
705
+ result[attr] = value.to_dict()
706
+ elif isinstance(value, dict):
707
+ result[attr] = dict(map(
708
+ lambda item: (item[0], item[1].to_dict())
709
+ if hasattr(item[1], "to_dict") else item,
710
+ value.items()
711
+ ))
712
+ else:
713
+ if attr in self.sensitive_list:
714
+ result[attr] = "****"
715
+ else:
716
+ result[attr] = value
717
+
718
+ return result
719
+
720
+ def to_str(self):
721
+ """Returns the string representation of the model"""
722
+ import simplejson as json
723
+ if six.PY2:
724
+ import sys
725
+ reload(sys)
726
+ sys.setdefaultencoding("utf-8")
727
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
728
+
729
+ def __repr__(self):
730
+ """For `print`"""
731
+ return self.to_str()
732
+
733
+ def __eq__(self, other):
734
+ """Returns true if both objects are equal"""
735
+ if not isinstance(other, TriggerCondition):
736
+ return False
737
+
738
+ return self.__dict__ == other.__dict__
739
+
740
+ def __ne__(self, other):
741
+ """Returns true if both objects are not equal"""
742
+ return not self == other