huaweicloudsdkaom 3.1.75__py2.py3-none-any.whl → 3.1.76__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 (48) hide show
  1. huaweicloudsdkaom/v2/__init__.py +1 -0
  2. huaweicloudsdkaom/v2/aom_async_client.py +28 -28
  3. huaweicloudsdkaom/v2/aom_client.py +28 -28
  4. huaweicloudsdkaom/v2/model/__init__.py +1 -0
  5. huaweicloudsdkaom/v2/model/action_rule.py +6 -6
  6. huaweicloudsdkaom/v2/model/alarm_rule_param.py +27 -27
  7. huaweicloudsdkaom/v2/model/app_name_rule.py +3 -3
  8. huaweicloudsdkaom/v2/model/app_rules.py +47 -18
  9. huaweicloudsdkaom/v2/model/app_rules_spec.py +105 -18
  10. huaweicloudsdkaom/v2/model/delete_alarm_rules_body.py +3 -3
  11. huaweicloudsdkaom/v2/model/deleteservice_discovery_rules_request.py +3 -3
  12. huaweicloudsdkaom/v2/model/dimension2.py +3 -3
  13. huaweicloudsdkaom/v2/model/discovery_rule.py +6 -6
  14. huaweicloudsdkaom/v2/model/event2alarm_rule_body.py +102 -15
  15. huaweicloudsdkaom/v2/model/event2alarm_rule_body_trigger_policies.py +3 -3
  16. huaweicloudsdkaom/v2/model/event_model.py +15 -15
  17. huaweicloudsdkaom/v2/model/event_query_param.py +3 -3
  18. huaweicloudsdkaom/v2/model/event_query_param2.py +3 -3
  19. huaweicloudsdkaom/v2/model/event_query_param2_sort.py +3 -3
  20. huaweicloudsdkaom/v2/model/event_query_param_sort.py +3 -3
  21. huaweicloudsdkaom/v2/model/list_alarm_rule_request.py +3 -3
  22. huaweicloudsdkaom/v2/model/list_metric_items_response.py +4 -4
  23. huaweicloudsdkaom/v2/model/list_notified_histories_response.py +21 -50
  24. huaweicloudsdkaom/v2/model/list_sample_request.py +3 -3
  25. huaweicloudsdkaom/v2/model/list_service_discovery_rules_request.py +3 -3
  26. huaweicloudsdkaom/v2/model/list_service_discovery_rules_response.py +28 -3
  27. huaweicloudsdkaom/v2/model/meta_data.py +4 -4
  28. huaweicloudsdkaom/v2/model/metric_api_query_item_param.py +3 -3
  29. huaweicloudsdkaom/v2/model/metric_data_item.py +3 -3
  30. huaweicloudsdkaom/v2/model/metric_item_info.py +6 -6
  31. huaweicloudsdkaom/v2/model/metric_query_meritc_param.py +9 -9
  32. huaweicloudsdkaom/v2/model/mute_config.py +7 -7
  33. huaweicloudsdkaom/v2/model/mute_rule.py +6 -6
  34. huaweicloudsdkaom/v2/model/name_rule.py +6 -6
  35. huaweicloudsdkaom/v2/model/notified_histories_result.py +144 -0
  36. huaweicloudsdkaom/v2/model/query_metric_data_param.py +6 -6
  37. huaweicloudsdkaom/v2/model/query_metric_item_option_param.py +6 -6
  38. huaweicloudsdkaom/v2/model/query_sample.py +6 -6
  39. huaweicloudsdkaom/v2/model/query_sample_param.py +12 -12
  40. huaweicloudsdkaom/v2/model/query_series_option_param.py +9 -9
  41. huaweicloudsdkaom/v2/model/show_action_rule_response.py +6 -6
  42. huaweicloudsdkaom/v2/model/update_alarm_rule_param.py +43 -53
  43. huaweicloudsdkaom/v2/model/value_data.py +6 -6
  44. {huaweicloudsdkaom-3.1.75.dist-info → huaweicloudsdkaom-3.1.76.dist-info}/METADATA +2 -2
  45. {huaweicloudsdkaom-3.1.75.dist-info → huaweicloudsdkaom-3.1.76.dist-info}/RECORD +48 -47
  46. {huaweicloudsdkaom-3.1.75.dist-info → huaweicloudsdkaom-3.1.76.dist-info}/LICENSE +0 -0
  47. {huaweicloudsdkaom-3.1.75.dist-info → huaweicloudsdkaom-3.1.76.dist-info}/WHEEL +0 -0
  48. {huaweicloudsdkaom-3.1.75.dist-info → huaweicloudsdkaom-3.1.76.dist-info}/top_level.txt +0 -0
@@ -26,7 +26,7 @@ class AlarmRuleParam:
26
26
  'comparison_operator': 'str',
27
27
  'dimensions': 'list[Dimension]',
28
28
  'evaluation_periods': 'int',
29
- 'id_turn_on': 'bool',
29
+ 'is_turn_on': 'bool',
30
30
  'insufficient_data_actions': 'list[str]',
31
31
  'metric_name': 'str',
32
32
  'namespace': 'str',
@@ -47,7 +47,7 @@ class AlarmRuleParam:
47
47
  'comparison_operator': 'comparison_operator',
48
48
  'dimensions': 'dimensions',
49
49
  'evaluation_periods': 'evaluation_periods',
50
- 'id_turn_on': 'id_turn_on',
50
+ 'is_turn_on': 'is_turn_on',
51
51
  'insufficient_data_actions': 'insufficient_data_actions',
52
52
  'metric_name': 'metric_name',
53
53
  'namespace': 'namespace',
@@ -58,7 +58,7 @@ class AlarmRuleParam:
58
58
  'unit': 'unit'
59
59
  }
60
60
 
61
- def __init__(self, action_enabled=None, alarm_actions=None, alarm_advice=None, alarm_description=None, alarm_level=None, alarm_rule_name=None, comparison_operator=None, dimensions=None, evaluation_periods=None, id_turn_on=None, insufficient_data_actions=None, metric_name=None, namespace=None, ok_actions=None, period=None, statistic=None, threshold=None, unit=None):
61
+ def __init__(self, action_enabled=None, alarm_actions=None, alarm_advice=None, alarm_description=None, alarm_level=None, alarm_rule_name=None, comparison_operator=None, dimensions=None, evaluation_periods=None, is_turn_on=None, insufficient_data_actions=None, metric_name=None, namespace=None, ok_actions=None, period=None, statistic=None, threshold=None, unit=None):
62
62
  """AlarmRuleParam
63
63
 
64
64
  The model defined in huaweicloud sdk
@@ -73,16 +73,16 @@ class AlarmRuleParam:
73
73
  :type alarm_description: str
74
74
  :param alarm_level: 告警级别。1:紧急,2:重要,3:一般,4:提示。
75
75
  :type alarm_level: int
76
- :param alarm_rule_name: 阈值规则名称。
76
+ :param alarm_rule_name: 阈值规则名称。规则名称包含大小写字母、数字、特殊字符(-_)和汉字组成,不能以特殊字符开头或结尾,最大长度为100。
77
77
  :type alarm_rule_name: str
78
- :param comparison_operator: 超限条件。
78
+ :param comparison_operator: 超限条件。<:小于阈值。>:大于阈值。<=:小于等于阈值。>=:大于等于阈值。
79
79
  :type comparison_operator: str
80
80
  :param dimensions: 时间序列维度。
81
81
  :type dimensions: list[:class:`huaweicloudsdkaom.v2.Dimension`]
82
82
  :param evaluation_periods: 间隔周期。
83
83
  :type evaluation_periods: int
84
- :param id_turn_on: 阈值规则是否启用。
85
- :type id_turn_on: bool
84
+ :param is_turn_on: 阈值规则是否启用。
85
+ :type is_turn_on: bool
86
86
  :param insufficient_data_actions: 数据不足通知列表。
87
87
  :type insufficient_data_actions: list[str]
88
88
  :param metric_name: 时间序列名称。名称长度取值范围为1~255个字符。
@@ -91,7 +91,7 @@ class AlarmRuleParam:
91
91
  :type namespace: str
92
92
  :param ok_actions: 正常状态通知列表。
93
93
  :type ok_actions: list[str]
94
- :param period: 统计周期。
94
+ :param period: 统计周期。60000:一分钟。300000:五分钟。900000:十五分钟。3600000:一小时。
95
95
  :type period: int
96
96
  :param statistic: 统计方式。
97
97
  :type statistic: str
@@ -112,7 +112,7 @@ class AlarmRuleParam:
112
112
  self._comparison_operator = None
113
113
  self._dimensions = None
114
114
  self._evaluation_periods = None
115
- self._id_turn_on = None
115
+ self._is_turn_on = None
116
116
  self._insufficient_data_actions = None
117
117
  self._metric_name = None
118
118
  self._namespace = None
@@ -136,8 +136,8 @@ class AlarmRuleParam:
136
136
  self.comparison_operator = comparison_operator
137
137
  self.dimensions = dimensions
138
138
  self.evaluation_periods = evaluation_periods
139
- if id_turn_on is not None:
140
- self.id_turn_on = id_turn_on
139
+ if is_turn_on is not None:
140
+ self.is_turn_on = is_turn_on
141
141
  if insufficient_data_actions is not None:
142
142
  self.insufficient_data_actions = insufficient_data_actions
143
143
  self.metric_name = metric_name
@@ -263,7 +263,7 @@ class AlarmRuleParam:
263
263
  def alarm_rule_name(self):
264
264
  """Gets the alarm_rule_name of this AlarmRuleParam.
265
265
 
266
- 阈值规则名称。
266
+ 阈值规则名称。规则名称包含大小写字母、数字、特殊字符(-_)和汉字组成,不能以特殊字符开头或结尾,最大长度为100。
267
267
 
268
268
  :return: The alarm_rule_name of this AlarmRuleParam.
269
269
  :rtype: str
@@ -274,7 +274,7 @@ class AlarmRuleParam:
274
274
  def alarm_rule_name(self, alarm_rule_name):
275
275
  """Sets the alarm_rule_name of this AlarmRuleParam.
276
276
 
277
- 阈值规则名称。
277
+ 阈值规则名称。规则名称包含大小写字母、数字、特殊字符(-_)和汉字组成,不能以特殊字符开头或结尾,最大长度为100。
278
278
 
279
279
  :param alarm_rule_name: The alarm_rule_name of this AlarmRuleParam.
280
280
  :type alarm_rule_name: str
@@ -285,7 +285,7 @@ class AlarmRuleParam:
285
285
  def comparison_operator(self):
286
286
  """Gets the comparison_operator of this AlarmRuleParam.
287
287
 
288
- 超限条件。
288
+ 超限条件。<:小于阈值。>:大于阈值。<=:小于等于阈值。>=:大于等于阈值。
289
289
 
290
290
  :return: The comparison_operator of this AlarmRuleParam.
291
291
  :rtype: str
@@ -296,7 +296,7 @@ class AlarmRuleParam:
296
296
  def comparison_operator(self, comparison_operator):
297
297
  """Sets the comparison_operator of this AlarmRuleParam.
298
298
 
299
- 超限条件。
299
+ 超限条件。<:小于阈值。>:大于阈值。<=:小于等于阈值。>=:大于等于阈值。
300
300
 
301
301
  :param comparison_operator: The comparison_operator of this AlarmRuleParam.
302
302
  :type comparison_operator: str
@@ -348,26 +348,26 @@ class AlarmRuleParam:
348
348
  self._evaluation_periods = evaluation_periods
349
349
 
350
350
  @property
351
- def id_turn_on(self):
352
- """Gets the id_turn_on of this AlarmRuleParam.
351
+ def is_turn_on(self):
352
+ """Gets the is_turn_on of this AlarmRuleParam.
353
353
 
354
354
  阈值规则是否启用。
355
355
 
356
- :return: The id_turn_on of this AlarmRuleParam.
356
+ :return: The is_turn_on of this AlarmRuleParam.
357
357
  :rtype: bool
358
358
  """
359
- return self._id_turn_on
359
+ return self._is_turn_on
360
360
 
361
- @id_turn_on.setter
362
- def id_turn_on(self, id_turn_on):
363
- """Sets the id_turn_on of this AlarmRuleParam.
361
+ @is_turn_on.setter
362
+ def is_turn_on(self, is_turn_on):
363
+ """Sets the is_turn_on of this AlarmRuleParam.
364
364
 
365
365
  阈值规则是否启用。
366
366
 
367
- :param id_turn_on: The id_turn_on of this AlarmRuleParam.
368
- :type id_turn_on: bool
367
+ :param is_turn_on: The is_turn_on of this AlarmRuleParam.
368
+ :type is_turn_on: bool
369
369
  """
370
- self._id_turn_on = id_turn_on
370
+ self._is_turn_on = is_turn_on
371
371
 
372
372
  @property
373
373
  def insufficient_data_actions(self):
@@ -461,7 +461,7 @@ class AlarmRuleParam:
461
461
  def period(self):
462
462
  """Gets the period of this AlarmRuleParam.
463
463
 
464
- 统计周期。
464
+ 统计周期。60000:一分钟。300000:五分钟。900000:十五分钟。3600000:一小时。
465
465
 
466
466
  :return: The period of this AlarmRuleParam.
467
467
  :rtype: int
@@ -472,7 +472,7 @@ class AlarmRuleParam:
472
472
  def period(self, period):
473
473
  """Sets the period of this AlarmRuleParam.
474
474
 
475
- 统计周期。
475
+ 统计周期。60000:一分钟。300000:五分钟。900000:十五分钟。3600000:一小时。
476
476
 
477
477
  :param period: The period of this AlarmRuleParam.
478
478
  :type period: int
@@ -33,7 +33,7 @@ class AppNameRule:
33
33
 
34
34
  The model defined in huaweicloud sdk
35
35
 
36
- :param name_type: 取值类型。 从cmdLineHash、cmdLine、env、str里面选取。
36
+ :param name_type: 取值类型。从cmdLineHash、cmdLine、env、str里面选取。
37
37
  :type name_type: str
38
38
  :param args: 输入值。
39
39
  :type args: list[str]
@@ -57,7 +57,7 @@ class AppNameRule:
57
57
  def name_type(self):
58
58
  """Gets the name_type of this AppNameRule.
59
59
 
60
- 取值类型。 从cmdLineHash、cmdLine、env、str里面选取。
60
+ 取值类型。从cmdLineHash、cmdLine、env、str里面选取。
61
61
 
62
62
  :return: The name_type of this AppNameRule.
63
63
  :rtype: str
@@ -68,7 +68,7 @@ class AppNameRule:
68
68
  def name_type(self, name_type):
69
69
  """Sets the name_type of this AppNameRule.
70
70
 
71
- 取值类型。 从cmdLineHash、cmdLine、env、str里面选取。
71
+ 取值类型。从cmdLineHash、cmdLine、env、str里面选取。
72
72
 
73
73
  :param name_type: The name_type of this AppNameRule.
74
74
  :type name_type: str
@@ -24,7 +24,8 @@ class AppRules:
24
24
  'id': 'str',
25
25
  'name': 'str',
26
26
  'projectid': 'str',
27
- 'spec': 'AppRulesSpec'
27
+ 'spec': 'AppRulesSpec',
28
+ 'desc': 'str'
28
29
  }
29
30
 
30
31
  attribute_map = {
@@ -35,30 +36,33 @@ class AppRules:
35
36
  'id': 'id',
36
37
  'name': 'name',
37
38
  'projectid': 'projectid',
38
- 'spec': 'spec'
39
+ 'spec': 'spec',
40
+ 'desc': 'desc'
39
41
  }
40
42
 
41
- def __init__(self, create_time=None, enable=None, event_name=None, hostid=None, id=None, name=None, projectid=None, spec=None):
43
+ def __init__(self, create_time=None, enable=None, event_name=None, hostid=None, id=None, name=None, projectid=None, spec=None, desc=None):
42
44
  """AppRules
43
45
 
44
46
  The model defined in huaweicloud sdk
45
47
 
46
- :param create_time: 规则创建时间(创建时不传,修改时传查询返回的createTime)。
48
+ :param create_time: 规则创建时间(创建时不传,修改时传查询返回的createTime)。
47
49
  :type create_time: str
48
50
  :param enable: true、false 规则是否启用。
49
51
  :type enable: bool
50
- :param event_name: aom_inventory_rules_event 规则事件名称,对于服务发现固定 为\&quot;aom_inventory_rules_event\&quot;。
52
+ :param event_name: aom_inventory_rules_event规则事件名称,对于服务发现固定为\&quot;aom_inventory_rules_event\&quot;。
51
53
  :type event_name: str
52
- :param hostid: 主机ID(暂不使用,传空即可)。
54
+ :param hostid: 主机ID(暂不使用,传空即可)。
53
55
  :type hostid: list[str]
54
56
  :param id: 创建时填空,修改时填规则ID。
55
57
  :type id: str
56
- :param name: 规则名称。 字符长度小于64位,以小写字母(a-z)开头,只能包含0-9/a-z/-,不能以-结尾。
58
+ :param name: 规则名称。 字符长度为4到63位,以小写字母a-z开头,只能包含0-9/a-z/-,不能以-结尾。
57
59
  :type name: str
58
- :param projectid: 租户从IAM申请到的projectid,一般为32位字符串。
60
+ :param projectid: 租户从IAM申请到的projectid,一般为32位字符串。
59
61
  :type projectid: str
60
62
  :param spec:
61
63
  :type spec: :class:`huaweicloudsdkaom.v2.AppRulesSpec`
64
+ :param desc: 自定义描述信息
65
+ :type desc: str
62
66
  """
63
67
 
64
68
 
@@ -71,6 +75,7 @@ class AppRules:
71
75
  self._name = None
72
76
  self._projectid = None
73
77
  self._spec = None
78
+ self._desc = None
74
79
  self.discriminator = None
75
80
 
76
81
  if create_time is not None:
@@ -83,12 +88,14 @@ class AppRules:
83
88
  self.name = name
84
89
  self.projectid = projectid
85
90
  self.spec = spec
91
+ if desc is not None:
92
+ self.desc = desc
86
93
 
87
94
  @property
88
95
  def create_time(self):
89
96
  """Gets the create_time of this AppRules.
90
97
 
91
- 规则创建时间(创建时不传,修改时传查询返回的createTime)。
98
+ 规则创建时间(创建时不传,修改时传查询返回的createTime)。
92
99
 
93
100
  :return: The create_time of this AppRules.
94
101
  :rtype: str
@@ -99,7 +106,7 @@ class AppRules:
99
106
  def create_time(self, create_time):
100
107
  """Sets the create_time of this AppRules.
101
108
 
102
- 规则创建时间(创建时不传,修改时传查询返回的createTime)。
109
+ 规则创建时间(创建时不传,修改时传查询返回的createTime)。
103
110
 
104
111
  :param create_time: The create_time of this AppRules.
105
112
  :type create_time: str
@@ -132,7 +139,7 @@ class AppRules:
132
139
  def event_name(self):
133
140
  """Gets the event_name of this AppRules.
134
141
 
135
- aom_inventory_rules_event 规则事件名称,对于服务发现固定 为\"aom_inventory_rules_event\"。
142
+ aom_inventory_rules_event规则事件名称,对于服务发现固定为\"aom_inventory_rules_event\"。
136
143
 
137
144
  :return: The event_name of this AppRules.
138
145
  :rtype: str
@@ -143,7 +150,7 @@ class AppRules:
143
150
  def event_name(self, event_name):
144
151
  """Sets the event_name of this AppRules.
145
152
 
146
- aom_inventory_rules_event 规则事件名称,对于服务发现固定 为\"aom_inventory_rules_event\"。
153
+ aom_inventory_rules_event规则事件名称,对于服务发现固定为\"aom_inventory_rules_event\"。
147
154
 
148
155
  :param event_name: The event_name of this AppRules.
149
156
  :type event_name: str
@@ -154,7 +161,7 @@ class AppRules:
154
161
  def hostid(self):
155
162
  """Gets the hostid of this AppRules.
156
163
 
157
- 主机ID(暂不使用,传空即可)。
164
+ 主机ID(暂不使用,传空即可)。
158
165
 
159
166
  :return: The hostid of this AppRules.
160
167
  :rtype: list[str]
@@ -165,7 +172,7 @@ class AppRules:
165
172
  def hostid(self, hostid):
166
173
  """Sets the hostid of this AppRules.
167
174
 
168
- 主机ID(暂不使用,传空即可)。
175
+ 主机ID(暂不使用,传空即可)。
169
176
 
170
177
  :param hostid: The hostid of this AppRules.
171
178
  :type hostid: list[str]
@@ -198,7 +205,7 @@ class AppRules:
198
205
  def name(self):
199
206
  """Gets the name of this AppRules.
200
207
 
201
- 规则名称。 字符长度小于64位,以小写字母(a-z)开头,只能包含0-9/a-z/-,不能以-结尾。
208
+ 规则名称。 字符长度为4到63位,以小写字母a-z开头,只能包含0-9/a-z/-,不能以-结尾。
202
209
 
203
210
  :return: The name of this AppRules.
204
211
  :rtype: str
@@ -209,7 +216,7 @@ class AppRules:
209
216
  def name(self, name):
210
217
  """Sets the name of this AppRules.
211
218
 
212
- 规则名称。 字符长度小于64位,以小写字母(a-z)开头,只能包含0-9/a-z/-,不能以-结尾。
219
+ 规则名称。 字符长度为4到63位,以小写字母a-z开头,只能包含0-9/a-z/-,不能以-结尾。
213
220
 
214
221
  :param name: The name of this AppRules.
215
222
  :type name: str
@@ -220,7 +227,7 @@ class AppRules:
220
227
  def projectid(self):
221
228
  """Gets the projectid of this AppRules.
222
229
 
223
- 租户从IAM申请到的projectid,一般为32位字符串。
230
+ 租户从IAM申请到的projectid,一般为32位字符串。
224
231
 
225
232
  :return: The projectid of this AppRules.
226
233
  :rtype: str
@@ -231,7 +238,7 @@ class AppRules:
231
238
  def projectid(self, projectid):
232
239
  """Sets the projectid of this AppRules.
233
240
 
234
- 租户从IAM申请到的projectid,一般为32位字符串。
241
+ 租户从IAM申请到的projectid,一般为32位字符串。
235
242
 
236
243
  :param projectid: The projectid of this AppRules.
237
244
  :type projectid: str
@@ -256,6 +263,28 @@ class AppRules:
256
263
  """
257
264
  self._spec = spec
258
265
 
266
+ @property
267
+ def desc(self):
268
+ """Gets the desc of this AppRules.
269
+
270
+ 自定义描述信息
271
+
272
+ :return: The desc of this AppRules.
273
+ :rtype: str
274
+ """
275
+ return self._desc
276
+
277
+ @desc.setter
278
+ def desc(self, desc):
279
+ """Sets the desc of this AppRules.
280
+
281
+ 自定义描述信息
282
+
283
+ :param desc: The desc of this AppRules.
284
+ :type desc: str
285
+ """
286
+ self._desc = desc
287
+
259
288
  def to_dict(self):
260
289
  """Returns the model properties as a dict"""
261
290
  result = {}
@@ -26,7 +26,10 @@ class AppRulesSpec:
26
26
  'log_file_fix': 'list[str]',
27
27
  'log_path_rule': 'list[LogPathRule]',
28
28
  'name_rule': 'NameRule',
29
- 'priority': 'int'
29
+ 'priority': 'int',
30
+ 'data_source': 'str',
31
+ 'editable': 'str',
32
+ 'aom_metric_relabel_configs': 'object'
30
33
  }
31
34
 
32
35
  attribute_map = {
@@ -39,34 +42,43 @@ class AppRulesSpec:
39
42
  'log_file_fix': 'logFileFix',
40
43
  'log_path_rule': 'logPathRule',
41
44
  'name_rule': 'nameRule',
42
- 'priority': 'priority'
45
+ 'priority': 'priority',
46
+ 'data_source': 'dataSource',
47
+ 'editable': 'editable',
48
+ 'aom_metric_relabel_configs': 'aom_metric_relabel_configs'
43
49
  }
44
50
 
45
- def __init__(self, app_type=None, attr_list=None, detect_log=None, discovery_rule=None, is_default_rule=None, is_detect=None, log_file_fix=None, log_path_rule=None, name_rule=None, priority=None):
51
+ def __init__(self, app_type=None, attr_list=None, detect_log=None, discovery_rule=None, is_default_rule=None, is_detect=None, log_file_fix=None, log_path_rule=None, name_rule=None, priority=None, data_source=None, editable=None, aom_metric_relabel_configs=None):
46
52
  """AppRulesSpec
47
53
 
48
54
  The model defined in huaweicloud sdk
49
55
 
50
- :param app_type: 服务类型,用于标记服务的分类,仅用于规则分类和界面展示。可以填写任意字段,如按技术栈分类可填写Java,Python。按作用分类可填写collector(采集),database(数据库)等。
56
+ :param app_type: 服务类型,用于标记服务的分类,仅用于规则分类和界面展示。可以填写任意字段,如按技术栈分类可填写JavaPython。按作用分类可填写collector(采集)database(数据库)等。
51
57
  :type app_type: str
52
58
  :param attr_list: 属性列表(暂不使用,可不传)。 cmdLine、env
53
59
  :type attr_list: list[str]
54
60
  :param detect_log: 是否开启日志采集。 true、false
55
61
  :type detect_log: str
56
- :param discovery_rule: 规则发现部分,数组中有多个对象时表示需要同时满足所有条件的进程才会被匹配到。 checkType为cmdLine时checkMode填contain,checkContent格式为[xxx]表示进程命令行参数中需要包含xxx。checkType为env时checkMode填contain,checkContent格式为 [\&quot;k1\&quot;,\&quot;v1\&quot;]表示进程环境变量中需要包含名为k1值为v1的环境变量。checkType为scope时checkMode填equals,checkContent格式为节点ID数组[\&quot;hostId1”,”hostId2],表示规则仅会在这些节点上生效(如果不指定节点范围,规则将下发到该项目所有的节点)。
62
+ :param discovery_rule: 规则发现部分,数组中有多个对象时表示需要同时满足所有条件的进程才会被匹配到。 checkType为cmdLine时checkMode填containcheckContent格式为[\&quot;xxx\&quot;]表示进程命令行参数中需要包含xxx。checkType为env时checkMode填containcheckContent格式为 [\&quot;k1\&quot;,\&quot;v1\&quot;]表示进程环境变量中需要包含名为k1值为v1的环境变量。checkType为scope时checkMode填equalscheckContent格式为节点ID数组[\&quot;hostId1\&quot;,\&quot;hostId2\&quot;],表示规则仅会在这些节点上生效(如果不指定节点范围,规则将下发到该项目所有的节点)。
57
63
  :type discovery_rule: list[:class:`huaweicloudsdkaom.v2.DiscoveryRule`]
58
64
  :param is_default_rule: 是否为默认规则。 true、false
59
65
  :type is_default_rule: str
60
- :param is_detect: 是否为规则预探测场景(预探测场景不会保存规则,仅用于规则下发之前验证该规则能否有效发现节点上的进程)。 true、false
66
+ :param is_detect: 是否为规则预探测场景(预探测场景不会保存规则,仅用于规则下发之前验证该规则能否有效发现节点上的进程)。true、false
61
67
  :type is_detect: str
62
68
  :param log_file_fix: 日志文件的后缀。 log、trace、out
63
69
  :type log_file_fix: list[str]
64
- :param log_path_rule: 日志路径配置规则。 当cmdLineHash为固定字符串时,指定日志路径或者日志文件。否则只采集进程当前打开的以.log和.trace结尾的文件。nameType取值cmdLineHash时,args格式为[\&quot;00001\&quot;],value格式为[\&quot;/xxx/xx.log\&quot;],表示当启动命令是00001时,日志路径为/xxx/xx.log。
70
+ :param log_path_rule: 日志路径配置规则。 当cmdLineHash为固定字符串时,指定日志路径或者日志文件。否则只采集进程当前打开的以.log和.trace结尾的文件。nameType取值cmdLineHash时,args格式为[\&quot;00001\&quot;]value格式为[\&quot;/xxx/xx.log\&quot;],表示当启动命令是00001时,日志路径为/xxx/xx.log。
65
71
  :type log_path_rule: list[:class:`huaweicloudsdkaom.v2.LogPathRule`]
66
72
  :param name_rule:
67
73
  :type name_rule: :class:`huaweicloudsdkaom.v2.NameRule`
68
- :param priority: 规则优先级。 1~9999的整数字符串,默认取值为9999
74
+ :param priority: 规则优先级。1~9999的整数字符串,默认取值为9999
69
75
  :type priority: int
76
+ :param data_source: 数据源
77
+ :type data_source: str
78
+ :param editable: 是否支持编辑 true、false
79
+ :type editable: str
80
+ :param aom_metric_relabel_configs: 指标配置
81
+ :type aom_metric_relabel_configs: object
70
82
  """
71
83
 
72
84
 
@@ -81,6 +93,9 @@ class AppRulesSpec:
81
93
  self._log_path_rule = None
82
94
  self._name_rule = None
83
95
  self._priority = None
96
+ self._data_source = None
97
+ self._editable = None
98
+ self._aom_metric_relabel_configs = None
84
99
  self.discriminator = None
85
100
 
86
101
  self.app_type = app_type
@@ -95,12 +110,18 @@ class AppRulesSpec:
95
110
  self.log_path_rule = log_path_rule
96
111
  self.name_rule = name_rule
97
112
  self.priority = priority
113
+ if data_source is not None:
114
+ self.data_source = data_source
115
+ if editable is not None:
116
+ self.editable = editable
117
+ if aom_metric_relabel_configs is not None:
118
+ self.aom_metric_relabel_configs = aom_metric_relabel_configs
98
119
 
99
120
  @property
100
121
  def app_type(self):
101
122
  """Gets the app_type of this AppRulesSpec.
102
123
 
103
- 服务类型,用于标记服务的分类,仅用于规则分类和界面展示。可以填写任意字段,如按技术栈分类可填写Java,Python。按作用分类可填写collector(采集),database(数据库)等。
124
+ 服务类型,用于标记服务的分类,仅用于规则分类和界面展示。可以填写任意字段,如按技术栈分类可填写JavaPython。按作用分类可填写collector(采集)database(数据库)等。
104
125
 
105
126
  :return: The app_type of this AppRulesSpec.
106
127
  :rtype: str
@@ -111,7 +132,7 @@ class AppRulesSpec:
111
132
  def app_type(self, app_type):
112
133
  """Sets the app_type of this AppRulesSpec.
113
134
 
114
- 服务类型,用于标记服务的分类,仅用于规则分类和界面展示。可以填写任意字段,如按技术栈分类可填写Java,Python。按作用分类可填写collector(采集),database(数据库)等。
135
+ 服务类型,用于标记服务的分类,仅用于规则分类和界面展示。可以填写任意字段,如按技术栈分类可填写JavaPython。按作用分类可填写collector(采集)database(数据库)等。
115
136
 
116
137
  :param app_type: The app_type of this AppRulesSpec.
117
138
  :type app_type: str
@@ -166,7 +187,7 @@ class AppRulesSpec:
166
187
  def discovery_rule(self):
167
188
  """Gets the discovery_rule of this AppRulesSpec.
168
189
 
169
- 规则发现部分,数组中有多个对象时表示需要同时满足所有条件的进程才会被匹配到。 checkType为cmdLine时checkMode填contain,checkContent格式为[xxx]表示进程命令行参数中需要包含xxx。checkType为env时checkMode填contain,checkContent格式为 [\"k1\",\"v1\"]表示进程环境变量中需要包含名为k1值为v1的环境变量。checkType为scope时checkMode填equals,checkContent格式为节点ID数组[\"hostId1”,”hostId2],表示规则仅会在这些节点上生效(如果不指定节点范围,规则将下发到该项目所有的节点)。
190
+ 规则发现部分,数组中有多个对象时表示需要同时满足所有条件的进程才会被匹配到。 checkType为cmdLine时checkMode填containcheckContent格式为[\"xxx\"]表示进程命令行参数中需要包含xxx。checkType为env时checkMode填containcheckContent格式为 [\"k1\",\"v1\"]表示进程环境变量中需要包含名为k1值为v1的环境变量。checkType为scope时checkMode填equalscheckContent格式为节点ID数组[\"hostId1\",\"hostId2\"],表示规则仅会在这些节点上生效(如果不指定节点范围,规则将下发到该项目所有的节点)。
170
191
 
171
192
  :return: The discovery_rule of this AppRulesSpec.
172
193
  :rtype: list[:class:`huaweicloudsdkaom.v2.DiscoveryRule`]
@@ -177,7 +198,7 @@ class AppRulesSpec:
177
198
  def discovery_rule(self, discovery_rule):
178
199
  """Sets the discovery_rule of this AppRulesSpec.
179
200
 
180
- 规则发现部分,数组中有多个对象时表示需要同时满足所有条件的进程才会被匹配到。 checkType为cmdLine时checkMode填contain,checkContent格式为[xxx]表示进程命令行参数中需要包含xxx。checkType为env时checkMode填contain,checkContent格式为 [\"k1\",\"v1\"]表示进程环境变量中需要包含名为k1值为v1的环境变量。checkType为scope时checkMode填equals,checkContent格式为节点ID数组[\"hostId1”,”hostId2],表示规则仅会在这些节点上生效(如果不指定节点范围,规则将下发到该项目所有的节点)。
201
+ 规则发现部分,数组中有多个对象时表示需要同时满足所有条件的进程才会被匹配到。 checkType为cmdLine时checkMode填containcheckContent格式为[\"xxx\"]表示进程命令行参数中需要包含xxx。checkType为env时checkMode填containcheckContent格式为 [\"k1\",\"v1\"]表示进程环境变量中需要包含名为k1值为v1的环境变量。checkType为scope时checkMode填equalscheckContent格式为节点ID数组[\"hostId1\",\"hostId2\"],表示规则仅会在这些节点上生效(如果不指定节点范围,规则将下发到该项目所有的节点)。
181
202
 
182
203
  :param discovery_rule: The discovery_rule of this AppRulesSpec.
183
204
  :type discovery_rule: list[:class:`huaweicloudsdkaom.v2.DiscoveryRule`]
@@ -210,7 +231,7 @@ class AppRulesSpec:
210
231
  def is_detect(self):
211
232
  """Gets the is_detect of this AppRulesSpec.
212
233
 
213
- 是否为规则预探测场景(预探测场景不会保存规则,仅用于规则下发之前验证该规则能否有效发现节点上的进程)。 true、false
234
+ 是否为规则预探测场景(预探测场景不会保存规则,仅用于规则下发之前验证该规则能否有效发现节点上的进程)。true、false
214
235
 
215
236
  :return: The is_detect of this AppRulesSpec.
216
237
  :rtype: str
@@ -221,7 +242,7 @@ class AppRulesSpec:
221
242
  def is_detect(self, is_detect):
222
243
  """Sets the is_detect of this AppRulesSpec.
223
244
 
224
- 是否为规则预探测场景(预探测场景不会保存规则,仅用于规则下发之前验证该规则能否有效发现节点上的进程)。 true、false
245
+ 是否为规则预探测场景(预探测场景不会保存规则,仅用于规则下发之前验证该规则能否有效发现节点上的进程)。true、false
225
246
 
226
247
  :param is_detect: The is_detect of this AppRulesSpec.
227
248
  :type is_detect: str
@@ -254,7 +275,7 @@ class AppRulesSpec:
254
275
  def log_path_rule(self):
255
276
  """Gets the log_path_rule of this AppRulesSpec.
256
277
 
257
- 日志路径配置规则。 当cmdLineHash为固定字符串时,指定日志路径或者日志文件。否则只采集进程当前打开的以.log和.trace结尾的文件。nameType取值cmdLineHash时,args格式为[\"00001\"],value格式为[\"/xxx/xx.log\"],表示当启动命令是00001时,日志路径为/xxx/xx.log。
278
+ 日志路径配置规则。 当cmdLineHash为固定字符串时,指定日志路径或者日志文件。否则只采集进程当前打开的以.log和.trace结尾的文件。nameType取值cmdLineHash时,args格式为[\"00001\"]value格式为[\"/xxx/xx.log\"],表示当启动命令是00001时,日志路径为/xxx/xx.log。
258
279
 
259
280
  :return: The log_path_rule of this AppRulesSpec.
260
281
  :rtype: list[:class:`huaweicloudsdkaom.v2.LogPathRule`]
@@ -265,7 +286,7 @@ class AppRulesSpec:
265
286
  def log_path_rule(self, log_path_rule):
266
287
  """Sets the log_path_rule of this AppRulesSpec.
267
288
 
268
- 日志路径配置规则。 当cmdLineHash为固定字符串时,指定日志路径或者日志文件。否则只采集进程当前打开的以.log和.trace结尾的文件。nameType取值cmdLineHash时,args格式为[\"00001\"],value格式为[\"/xxx/xx.log\"],表示当启动命令是00001时,日志路径为/xxx/xx.log。
289
+ 日志路径配置规则。 当cmdLineHash为固定字符串时,指定日志路径或者日志文件。否则只采集进程当前打开的以.log和.trace结尾的文件。nameType取值cmdLineHash时,args格式为[\"00001\"]value格式为[\"/xxx/xx.log\"],表示当启动命令是00001时,日志路径为/xxx/xx.log。
269
290
 
270
291
  :param log_path_rule: The log_path_rule of this AppRulesSpec.
271
292
  :type log_path_rule: list[:class:`huaweicloudsdkaom.v2.LogPathRule`]
@@ -294,7 +315,7 @@ class AppRulesSpec:
294
315
  def priority(self):
295
316
  """Gets the priority of this AppRulesSpec.
296
317
 
297
- 规则优先级。 1~9999的整数字符串,默认取值为9999
318
+ 规则优先级。1~9999的整数字符串,默认取值为9999
298
319
 
299
320
  :return: The priority of this AppRulesSpec.
300
321
  :rtype: int
@@ -305,13 +326,79 @@ class AppRulesSpec:
305
326
  def priority(self, priority):
306
327
  """Sets the priority of this AppRulesSpec.
307
328
 
308
- 规则优先级。 1~9999的整数字符串,默认取值为9999
329
+ 规则优先级。1~9999的整数字符串,默认取值为9999
309
330
 
310
331
  :param priority: The priority of this AppRulesSpec.
311
332
  :type priority: int
312
333
  """
313
334
  self._priority = priority
314
335
 
336
+ @property
337
+ def data_source(self):
338
+ """Gets the data_source of this AppRulesSpec.
339
+
340
+ 数据源
341
+
342
+ :return: The data_source of this AppRulesSpec.
343
+ :rtype: str
344
+ """
345
+ return self._data_source
346
+
347
+ @data_source.setter
348
+ def data_source(self, data_source):
349
+ """Sets the data_source of this AppRulesSpec.
350
+
351
+ 数据源
352
+
353
+ :param data_source: The data_source of this AppRulesSpec.
354
+ :type data_source: str
355
+ """
356
+ self._data_source = data_source
357
+
358
+ @property
359
+ def editable(self):
360
+ """Gets the editable of this AppRulesSpec.
361
+
362
+ 是否支持编辑 true、false
363
+
364
+ :return: The editable of this AppRulesSpec.
365
+ :rtype: str
366
+ """
367
+ return self._editable
368
+
369
+ @editable.setter
370
+ def editable(self, editable):
371
+ """Sets the editable of this AppRulesSpec.
372
+
373
+ 是否支持编辑 true、false
374
+
375
+ :param editable: The editable of this AppRulesSpec.
376
+ :type editable: str
377
+ """
378
+ self._editable = editable
379
+
380
+ @property
381
+ def aom_metric_relabel_configs(self):
382
+ """Gets the aom_metric_relabel_configs of this AppRulesSpec.
383
+
384
+ 指标配置
385
+
386
+ :return: The aom_metric_relabel_configs of this AppRulesSpec.
387
+ :rtype: object
388
+ """
389
+ return self._aom_metric_relabel_configs
390
+
391
+ @aom_metric_relabel_configs.setter
392
+ def aom_metric_relabel_configs(self, aom_metric_relabel_configs):
393
+ """Sets the aom_metric_relabel_configs of this AppRulesSpec.
394
+
395
+ 指标配置
396
+
397
+ :param aom_metric_relabel_configs: The aom_metric_relabel_configs of this AppRulesSpec.
398
+ :type aom_metric_relabel_configs: object
399
+ """
400
+ self._aom_metric_relabel_configs = aom_metric_relabel_configs
401
+
315
402
  def to_dict(self):
316
403
  """Returns the model properties as a dict"""
317
404
  result = {}
@@ -29,7 +29,7 @@ class DeleteAlarmRulesBody:
29
29
 
30
30
  The model defined in huaweicloud sdk
31
31
 
32
- :param alarm_rules: 阈值规则列表
32
+ :param alarm_rules: 要删除的规则名称
33
33
  :type alarm_rules: list[str]
34
34
  """
35
35
 
@@ -44,7 +44,7 @@ class DeleteAlarmRulesBody:
44
44
  def alarm_rules(self):
45
45
  """Gets the alarm_rules of this DeleteAlarmRulesBody.
46
46
 
47
- 阈值规则列表
47
+ 要删除的规则名称
48
48
 
49
49
  :return: The alarm_rules of this DeleteAlarmRulesBody.
50
50
  :rtype: list[str]
@@ -55,7 +55,7 @@ class DeleteAlarmRulesBody:
55
55
  def alarm_rules(self, alarm_rules):
56
56
  """Sets the alarm_rules of this DeleteAlarmRulesBody.
57
57
 
58
- 阈值规则列表
58
+ 要删除的规则名称
59
59
 
60
60
  :param alarm_rules: The alarm_rules of this DeleteAlarmRulesBody.
61
61
  :type alarm_rules: list[str]