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.
- huaweicloudsdkaom/v2/__init__.py +1 -0
- huaweicloudsdkaom/v2/aom_async_client.py +28 -28
- huaweicloudsdkaom/v2/aom_client.py +28 -28
- huaweicloudsdkaom/v2/model/__init__.py +1 -0
- huaweicloudsdkaom/v2/model/action_rule.py +6 -6
- huaweicloudsdkaom/v2/model/alarm_rule_param.py +27 -27
- huaweicloudsdkaom/v2/model/app_name_rule.py +3 -3
- huaweicloudsdkaom/v2/model/app_rules.py +47 -18
- huaweicloudsdkaom/v2/model/app_rules_spec.py +105 -18
- huaweicloudsdkaom/v2/model/delete_alarm_rules_body.py +3 -3
- huaweicloudsdkaom/v2/model/deleteservice_discovery_rules_request.py +3 -3
- huaweicloudsdkaom/v2/model/dimension2.py +3 -3
- huaweicloudsdkaom/v2/model/discovery_rule.py +6 -6
- huaweicloudsdkaom/v2/model/event2alarm_rule_body.py +102 -15
- huaweicloudsdkaom/v2/model/event2alarm_rule_body_trigger_policies.py +3 -3
- huaweicloudsdkaom/v2/model/event_model.py +15 -15
- huaweicloudsdkaom/v2/model/event_query_param.py +3 -3
- huaweicloudsdkaom/v2/model/event_query_param2.py +3 -3
- huaweicloudsdkaom/v2/model/event_query_param2_sort.py +3 -3
- huaweicloudsdkaom/v2/model/event_query_param_sort.py +3 -3
- huaweicloudsdkaom/v2/model/list_alarm_rule_request.py +3 -3
- huaweicloudsdkaom/v2/model/list_metric_items_response.py +4 -4
- huaweicloudsdkaom/v2/model/list_notified_histories_response.py +21 -50
- huaweicloudsdkaom/v2/model/list_sample_request.py +3 -3
- huaweicloudsdkaom/v2/model/list_service_discovery_rules_request.py +3 -3
- huaweicloudsdkaom/v2/model/list_service_discovery_rules_response.py +28 -3
- huaweicloudsdkaom/v2/model/meta_data.py +4 -4
- huaweicloudsdkaom/v2/model/metric_api_query_item_param.py +3 -3
- huaweicloudsdkaom/v2/model/metric_data_item.py +3 -3
- huaweicloudsdkaom/v2/model/metric_item_info.py +6 -6
- huaweicloudsdkaom/v2/model/metric_query_meritc_param.py +9 -9
- huaweicloudsdkaom/v2/model/mute_config.py +7 -7
- huaweicloudsdkaom/v2/model/mute_rule.py +6 -6
- huaweicloudsdkaom/v2/model/name_rule.py +6 -6
- huaweicloudsdkaom/v2/model/notified_histories_result.py +144 -0
- huaweicloudsdkaom/v2/model/query_metric_data_param.py +6 -6
- huaweicloudsdkaom/v2/model/query_metric_item_option_param.py +6 -6
- huaweicloudsdkaom/v2/model/query_sample.py +6 -6
- huaweicloudsdkaom/v2/model/query_sample_param.py +12 -12
- huaweicloudsdkaom/v2/model/query_series_option_param.py +9 -9
- huaweicloudsdkaom/v2/model/show_action_rule_response.py +6 -6
- huaweicloudsdkaom/v2/model/update_alarm_rule_param.py +43 -53
- huaweicloudsdkaom/v2/model/value_data.py +6 -6
- {huaweicloudsdkaom-3.1.75.dist-info → huaweicloudsdkaom-3.1.76.dist-info}/METADATA +2 -2
- {huaweicloudsdkaom-3.1.75.dist-info → huaweicloudsdkaom-3.1.76.dist-info}/RECORD +48 -47
- {huaweicloudsdkaom-3.1.75.dist-info → huaweicloudsdkaom-3.1.76.dist-info}/LICENSE +0 -0
- {huaweicloudsdkaom-3.1.75.dist-info → huaweicloudsdkaom-3.1.76.dist-info}/WHEEL +0 -0
- {huaweicloudsdkaom-3.1.75.dist-info → huaweicloudsdkaom-3.1.76.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class NotifiedHistoriesResult:
|
|
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
|
+
'event_sn': 'str',
|
|
21
|
+
'notifications': 'list[Notifications]'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'event_sn': 'event_sn',
|
|
26
|
+
'notifications': 'notifications'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, event_sn=None, notifications=None):
|
|
30
|
+
"""NotifiedHistoriesResult
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param event_sn: 告警流水号
|
|
35
|
+
:type event_sn: str
|
|
36
|
+
:param notifications: 通知结果
|
|
37
|
+
:type notifications: list[:class:`huaweicloudsdkaom.v2.Notifications`]
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
self._event_sn = None
|
|
43
|
+
self._notifications = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
|
|
46
|
+
if event_sn is not None:
|
|
47
|
+
self.event_sn = event_sn
|
|
48
|
+
if notifications is not None:
|
|
49
|
+
self.notifications = notifications
|
|
50
|
+
|
|
51
|
+
@property
|
|
52
|
+
def event_sn(self):
|
|
53
|
+
"""Gets the event_sn of this NotifiedHistoriesResult.
|
|
54
|
+
|
|
55
|
+
告警流水号
|
|
56
|
+
|
|
57
|
+
:return: The event_sn of this NotifiedHistoriesResult.
|
|
58
|
+
:rtype: str
|
|
59
|
+
"""
|
|
60
|
+
return self._event_sn
|
|
61
|
+
|
|
62
|
+
@event_sn.setter
|
|
63
|
+
def event_sn(self, event_sn):
|
|
64
|
+
"""Sets the event_sn of this NotifiedHistoriesResult.
|
|
65
|
+
|
|
66
|
+
告警流水号
|
|
67
|
+
|
|
68
|
+
:param event_sn: The event_sn of this NotifiedHistoriesResult.
|
|
69
|
+
:type event_sn: str
|
|
70
|
+
"""
|
|
71
|
+
self._event_sn = event_sn
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def notifications(self):
|
|
75
|
+
"""Gets the notifications of this NotifiedHistoriesResult.
|
|
76
|
+
|
|
77
|
+
通知结果
|
|
78
|
+
|
|
79
|
+
:return: The notifications of this NotifiedHistoriesResult.
|
|
80
|
+
:rtype: list[:class:`huaweicloudsdkaom.v2.Notifications`]
|
|
81
|
+
"""
|
|
82
|
+
return self._notifications
|
|
83
|
+
|
|
84
|
+
@notifications.setter
|
|
85
|
+
def notifications(self, notifications):
|
|
86
|
+
"""Sets the notifications of this NotifiedHistoriesResult.
|
|
87
|
+
|
|
88
|
+
通知结果
|
|
89
|
+
|
|
90
|
+
:param notifications: The notifications of this NotifiedHistoriesResult.
|
|
91
|
+
:type notifications: list[:class:`huaweicloudsdkaom.v2.Notifications`]
|
|
92
|
+
"""
|
|
93
|
+
self._notifications = notifications
|
|
94
|
+
|
|
95
|
+
def to_dict(self):
|
|
96
|
+
"""Returns the model properties as a dict"""
|
|
97
|
+
result = {}
|
|
98
|
+
|
|
99
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
100
|
+
value = getattr(self, attr)
|
|
101
|
+
if isinstance(value, list):
|
|
102
|
+
result[attr] = list(map(
|
|
103
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
104
|
+
value
|
|
105
|
+
))
|
|
106
|
+
elif hasattr(value, "to_dict"):
|
|
107
|
+
result[attr] = value.to_dict()
|
|
108
|
+
elif isinstance(value, dict):
|
|
109
|
+
result[attr] = dict(map(
|
|
110
|
+
lambda item: (item[0], item[1].to_dict())
|
|
111
|
+
if hasattr(item[1], "to_dict") else item,
|
|
112
|
+
value.items()
|
|
113
|
+
))
|
|
114
|
+
else:
|
|
115
|
+
if attr in self.sensitive_list:
|
|
116
|
+
result[attr] = "****"
|
|
117
|
+
else:
|
|
118
|
+
result[attr] = value
|
|
119
|
+
|
|
120
|
+
return result
|
|
121
|
+
|
|
122
|
+
def to_str(self):
|
|
123
|
+
"""Returns the string representation of the model"""
|
|
124
|
+
import simplejson as json
|
|
125
|
+
if six.PY2:
|
|
126
|
+
import sys
|
|
127
|
+
reload(sys)
|
|
128
|
+
sys.setdefaultencoding("utf-8")
|
|
129
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
130
|
+
|
|
131
|
+
def __repr__(self):
|
|
132
|
+
"""For `print`"""
|
|
133
|
+
return self.to_str()
|
|
134
|
+
|
|
135
|
+
def __eq__(self, other):
|
|
136
|
+
"""Returns true if both objects are equal"""
|
|
137
|
+
if not isinstance(other, NotifiedHistoriesResult):
|
|
138
|
+
return False
|
|
139
|
+
|
|
140
|
+
return self.__dict__ == other.__dict__
|
|
141
|
+
|
|
142
|
+
def __ne__(self, other):
|
|
143
|
+
"""Returns true if both objects are not equal"""
|
|
144
|
+
return not self == other
|
|
@@ -37,11 +37,11 @@ class QueryMetricDataParam:
|
|
|
37
37
|
|
|
38
38
|
:param metrics: 指标对象列表。 取值范围 JSON数组大小不超过20
|
|
39
39
|
:type metrics: list[:class:`huaweicloudsdkaom.v2.MetricQueryMeritcParam`]
|
|
40
|
-
:param period:
|
|
40
|
+
:param period: 监控数据粒度。取值范围(枚举):60(表示粒度为1分钟),300(表示粒度为5分钟),900(表示粒度为15分钟),3600(表示粒度为1小时)。
|
|
41
41
|
:type period: int
|
|
42
42
|
:param statistics: 统计方式。 取值范围 maximum,minimum,sum,average,sampleCount
|
|
43
43
|
:type statistics: list[str]
|
|
44
|
-
:param timerange: timeRange用于指标查询时间范围,主要用于解决客户端时间和服务端时间不一致情况下,查询最近N分钟的数据。另可用于精确查询某一段时间的数据。
|
|
44
|
+
:param timerange: timeRange用于指标查询时间范围,主要用于解决客户端时间和服务端时间不一致情况下,查询最近N分钟的数据。另可用于精确查询某一段时间的数据。 如: - -1.-1.60(表示最近60分钟),不管当前客户端是什么时间,都以服务端时间为准查询最近60分钟。 - 1650852000000.1650852300000.5(表示GMT+8 2022-04-25 10:00:00至2022-04-25 10:05:00指定的5分钟) 格式: startTimeInMillis.endTimeInMillis.durationInMinutes 参数解释: - startTimeInMillis: 查询的开始时间,格式为UTC毫秒,如果指定为-1,服务端将按(endTimeInMillis - durationInMinutes * 60 * 1000)计算开始时间。如-1.1650852300000.5,则相当于1650852000000.1650852300000.5 - endTimeInMillis: 查询的结束时间,格式为UTC毫秒,如果指定为-1,服务端将按(startTimeInMillis + durationInMinutes * 60 * 1000)计算结束时间,如果计算出的结束时间大于当前系统时间,则使用当前系统时间。如1650852000000.-1.5,则相当于1650852000000.1650852300000.5 - durationInMinutes:查询时间的跨度分钟数。 取值范围大于0并且大于等于(endTimeInMillis - startTimeInMillis) / (60 * 1000) - 1。当开始时间与结束时间都设置为-1时,系统会将结束时间设置为当前时间UTC毫秒值,并按(endTimeInMillis - durationInMinutes * 60 * 1000)计算开始时间。如:-1.-1.60(表示最近60分钟) 约束: 单次请求中,查询时长与周期需要满足以下条件: durationInMinutes * 60 / period <= 1440
|
|
45
45
|
:type timerange: str
|
|
46
46
|
"""
|
|
47
47
|
|
|
@@ -84,7 +84,7 @@ class QueryMetricDataParam:
|
|
|
84
84
|
def period(self):
|
|
85
85
|
"""Gets the period of this QueryMetricDataParam.
|
|
86
86
|
|
|
87
|
-
|
|
87
|
+
监控数据粒度。取值范围(枚举):60(表示粒度为1分钟),300(表示粒度为5分钟),900(表示粒度为15分钟),3600(表示粒度为1小时)。
|
|
88
88
|
|
|
89
89
|
:return: The period of this QueryMetricDataParam.
|
|
90
90
|
:rtype: int
|
|
@@ -95,7 +95,7 @@ class QueryMetricDataParam:
|
|
|
95
95
|
def period(self, period):
|
|
96
96
|
"""Sets the period of this QueryMetricDataParam.
|
|
97
97
|
|
|
98
|
-
|
|
98
|
+
监控数据粒度。取值范围(枚举):60(表示粒度为1分钟),300(表示粒度为5分钟),900(表示粒度为15分钟),3600(表示粒度为1小时)。
|
|
99
99
|
|
|
100
100
|
:param period: The period of this QueryMetricDataParam.
|
|
101
101
|
:type period: int
|
|
@@ -128,7 +128,7 @@ class QueryMetricDataParam:
|
|
|
128
128
|
def timerange(self):
|
|
129
129
|
"""Gets the timerange of this QueryMetricDataParam.
|
|
130
130
|
|
|
131
|
-
timeRange用于指标查询时间范围,主要用于解决客户端时间和服务端时间不一致情况下,查询最近N分钟的数据。另可用于精确查询某一段时间的数据。
|
|
131
|
+
timeRange用于指标查询时间范围,主要用于解决客户端时间和服务端时间不一致情况下,查询最近N分钟的数据。另可用于精确查询某一段时间的数据。 如: - -1.-1.60(表示最近60分钟),不管当前客户端是什么时间,都以服务端时间为准查询最近60分钟。 - 1650852000000.1650852300000.5(表示GMT+8 2022-04-25 10:00:00至2022-04-25 10:05:00指定的5分钟) 格式: startTimeInMillis.endTimeInMillis.durationInMinutes 参数解释: - startTimeInMillis: 查询的开始时间,格式为UTC毫秒,如果指定为-1,服务端将按(endTimeInMillis - durationInMinutes * 60 * 1000)计算开始时间。如-1.1650852300000.5,则相当于1650852000000.1650852300000.5 - endTimeInMillis: 查询的结束时间,格式为UTC毫秒,如果指定为-1,服务端将按(startTimeInMillis + durationInMinutes * 60 * 1000)计算结束时间,如果计算出的结束时间大于当前系统时间,则使用当前系统时间。如1650852000000.-1.5,则相当于1650852000000.1650852300000.5 - durationInMinutes:查询时间的跨度分钟数。 取值范围大于0并且大于等于(endTimeInMillis - startTimeInMillis) / (60 * 1000) - 1。当开始时间与结束时间都设置为-1时,系统会将结束时间设置为当前时间UTC毫秒值,并按(endTimeInMillis - durationInMinutes * 60 * 1000)计算开始时间。如:-1.-1.60(表示最近60分钟) 约束: 单次请求中,查询时长与周期需要满足以下条件: durationInMinutes * 60 / period <= 1440
|
|
132
132
|
|
|
133
133
|
:return: The timerange of this QueryMetricDataParam.
|
|
134
134
|
:rtype: str
|
|
@@ -139,7 +139,7 @@ class QueryMetricDataParam:
|
|
|
139
139
|
def timerange(self, timerange):
|
|
140
140
|
"""Sets the timerange of this QueryMetricDataParam.
|
|
141
141
|
|
|
142
|
-
timeRange用于指标查询时间范围,主要用于解决客户端时间和服务端时间不一致情况下,查询最近N分钟的数据。另可用于精确查询某一段时间的数据。
|
|
142
|
+
timeRange用于指标查询时间范围,主要用于解决客户端时间和服务端时间不一致情况下,查询最近N分钟的数据。另可用于精确查询某一段时间的数据。 如: - -1.-1.60(表示最近60分钟),不管当前客户端是什么时间,都以服务端时间为准查询最近60分钟。 - 1650852000000.1650852300000.5(表示GMT+8 2022-04-25 10:00:00至2022-04-25 10:05:00指定的5分钟) 格式: startTimeInMillis.endTimeInMillis.durationInMinutes 参数解释: - startTimeInMillis: 查询的开始时间,格式为UTC毫秒,如果指定为-1,服务端将按(endTimeInMillis - durationInMinutes * 60 * 1000)计算开始时间。如-1.1650852300000.5,则相当于1650852000000.1650852300000.5 - endTimeInMillis: 查询的结束时间,格式为UTC毫秒,如果指定为-1,服务端将按(startTimeInMillis + durationInMinutes * 60 * 1000)计算结束时间,如果计算出的结束时间大于当前系统时间,则使用当前系统时间。如1650852000000.-1.5,则相当于1650852000000.1650852300000.5 - durationInMinutes:查询时间的跨度分钟数。 取值范围大于0并且大于等于(endTimeInMillis - startTimeInMillis) / (60 * 1000) - 1。当开始时间与结束时间都设置为-1时,系统会将结束时间设置为当前时间UTC毫秒值,并按(endTimeInMillis - durationInMinutes * 60 * 1000)计算开始时间。如:-1.-1.60(表示最近60分钟) 约束: 单次请求中,查询时长与周期需要满足以下条件: durationInMinutes * 60 / period <= 1440
|
|
143
143
|
|
|
144
144
|
:param timerange: The timerange of this QueryMetricDataParam.
|
|
145
145
|
:type timerange: str
|
|
@@ -35,9 +35,9 @@ class QueryMetricItemOptionParam:
|
|
|
35
35
|
|
|
36
36
|
:param dimensions: 指标维度列表。
|
|
37
37
|
:type dimensions: list[:class:`huaweicloudsdkaom.v2.Dimension`]
|
|
38
|
-
:param metric_name: 指标名称。名称长度取值范围为1~255
|
|
38
|
+
:param metric_name: 指标名称。名称长度取值范围为1~255个字符。取值范围:AOM提供的基础指标,cpuUsage、cpuCoreUsed等。cpuUsage:cpu使用率;cpuCoreUsed:cpu内核占用;用户上报的自定义指标名称。
|
|
39
39
|
:type metric_name: str
|
|
40
|
-
:param namespace:
|
|
40
|
+
:param namespace: 指标命名空间。取值范围:PAAS.CONTAINER:组件指标、实例指标、进程指标和容器指标的命名空间,PAAS.NODE: 主机指标、网络指标、磁盘指标和文件系统指标的命名空间,PAAS.SLA:SLA指标的命名空间,PAAS.AGGR:集群指标的命名空间,CUSTOMMETRICS:默认的自定义指标的命名空间。
|
|
41
41
|
:type namespace: str
|
|
42
42
|
"""
|
|
43
43
|
|
|
@@ -80,7 +80,7 @@ class QueryMetricItemOptionParam:
|
|
|
80
80
|
def metric_name(self):
|
|
81
81
|
"""Gets the metric_name of this QueryMetricItemOptionParam.
|
|
82
82
|
|
|
83
|
-
指标名称。名称长度取值范围为1~255
|
|
83
|
+
指标名称。名称长度取值范围为1~255个字符。取值范围:AOM提供的基础指标,cpuUsage、cpuCoreUsed等。cpuUsage:cpu使用率;cpuCoreUsed:cpu内核占用;用户上报的自定义指标名称。
|
|
84
84
|
|
|
85
85
|
:return: The metric_name of this QueryMetricItemOptionParam.
|
|
86
86
|
:rtype: str
|
|
@@ -91,7 +91,7 @@ class QueryMetricItemOptionParam:
|
|
|
91
91
|
def metric_name(self, metric_name):
|
|
92
92
|
"""Sets the metric_name of this QueryMetricItemOptionParam.
|
|
93
93
|
|
|
94
|
-
指标名称。名称长度取值范围为1~255
|
|
94
|
+
指标名称。名称长度取值范围为1~255个字符。取值范围:AOM提供的基础指标,cpuUsage、cpuCoreUsed等。cpuUsage:cpu使用率;cpuCoreUsed:cpu内核占用;用户上报的自定义指标名称。
|
|
95
95
|
|
|
96
96
|
:param metric_name: The metric_name of this QueryMetricItemOptionParam.
|
|
97
97
|
:type metric_name: str
|
|
@@ -102,7 +102,7 @@ class QueryMetricItemOptionParam:
|
|
|
102
102
|
def namespace(self):
|
|
103
103
|
"""Gets the namespace of this QueryMetricItemOptionParam.
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
指标命名空间。取值范围:PAAS.CONTAINER:组件指标、实例指标、进程指标和容器指标的命名空间,PAAS.NODE: 主机指标、网络指标、磁盘指标和文件系统指标的命名空间,PAAS.SLA:SLA指标的命名空间,PAAS.AGGR:集群指标的命名空间,CUSTOMMETRICS:默认的自定义指标的命名空间。
|
|
106
106
|
|
|
107
107
|
:return: The namespace of this QueryMetricItemOptionParam.
|
|
108
108
|
:rtype: str
|
|
@@ -113,7 +113,7 @@ class QueryMetricItemOptionParam:
|
|
|
113
113
|
def namespace(self, namespace):
|
|
114
114
|
"""Sets the namespace of this QueryMetricItemOptionParam.
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
指标命名空间。取值范围:PAAS.CONTAINER:组件指标、实例指标、进程指标和容器指标的命名空间,PAAS.NODE: 主机指标、网络指标、磁盘指标和文件系统指标的命名空间,PAAS.SLA:SLA指标的命名空间,PAAS.AGGR:集群指标的命名空间,CUSTOMMETRICS:默认的自定义指标的命名空间。
|
|
117
117
|
|
|
118
118
|
:param namespace: The namespace of this QueryMetricItemOptionParam.
|
|
119
119
|
:type namespace: str
|
|
@@ -33,11 +33,11 @@ class QuerySample:
|
|
|
33
33
|
|
|
34
34
|
The model defined in huaweicloud sdk
|
|
35
35
|
|
|
36
|
-
:param namespace:
|
|
36
|
+
:param namespace: 时间序列命名空间。取值范围: PAAS.CONTAINER、PAAS.NODE、PAAS.SLA、PAAS.AGGR、CUSTOMMETRICS等。PAAS.CONTAINER:应用时间序列命名空间; PAAS.NODE:节点时间序列命名空间; PAAS.SLA:SLA时间序列命名空间;PAAS.AGGR:集群时间序列命名空间; CUSTOMMETRICS:自定义时间序列命名空间。
|
|
37
37
|
:type namespace: str
|
|
38
38
|
:param dimensions: 时间序列维度列表。 可通过/v2/{project_id}/series接口中namespace+metric_name,查询当前监控的时间序列名称的时间序列维度列表。
|
|
39
39
|
:type dimensions: list[:class:`huaweicloudsdkaom.v2.DimensionSeries`]
|
|
40
|
-
:param metric_name: 时间序列名称。名称长度取值范围为1~255
|
|
40
|
+
:param metric_name: 时间序列名称。名称长度取值范围为1~255个字符。取值范围:AOM提供的基础时间序列名称,cpuUsage、cpuCoreUsed等,cpuUsage:cpu使用率;cpuCoreUsed:cpu内核占用;用户上报的自定义时间序列名称。
|
|
41
41
|
:type metric_name: str
|
|
42
42
|
"""
|
|
43
43
|
|
|
@@ -56,7 +56,7 @@ class QuerySample:
|
|
|
56
56
|
def namespace(self):
|
|
57
57
|
"""Gets the namespace of this QuerySample.
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
时间序列命名空间。取值范围: PAAS.CONTAINER、PAAS.NODE、PAAS.SLA、PAAS.AGGR、CUSTOMMETRICS等。PAAS.CONTAINER:应用时间序列命名空间; PAAS.NODE:节点时间序列命名空间; PAAS.SLA:SLA时间序列命名空间;PAAS.AGGR:集群时间序列命名空间; CUSTOMMETRICS:自定义时间序列命名空间。
|
|
60
60
|
|
|
61
61
|
:return: The namespace of this QuerySample.
|
|
62
62
|
:rtype: str
|
|
@@ -67,7 +67,7 @@ class QuerySample:
|
|
|
67
67
|
def namespace(self, namespace):
|
|
68
68
|
"""Sets the namespace of this QuerySample.
|
|
69
69
|
|
|
70
|
-
|
|
70
|
+
时间序列命名空间。取值范围: PAAS.CONTAINER、PAAS.NODE、PAAS.SLA、PAAS.AGGR、CUSTOMMETRICS等。PAAS.CONTAINER:应用时间序列命名空间; PAAS.NODE:节点时间序列命名空间; PAAS.SLA:SLA时间序列命名空间;PAAS.AGGR:集群时间序列命名空间; CUSTOMMETRICS:自定义时间序列命名空间。
|
|
71
71
|
|
|
72
72
|
:param namespace: The namespace of this QuerySample.
|
|
73
73
|
:type namespace: str
|
|
@@ -100,7 +100,7 @@ class QuerySample:
|
|
|
100
100
|
def metric_name(self):
|
|
101
101
|
"""Gets the metric_name of this QuerySample.
|
|
102
102
|
|
|
103
|
-
时间序列名称。名称长度取值范围为1~255
|
|
103
|
+
时间序列名称。名称长度取值范围为1~255个字符。取值范围:AOM提供的基础时间序列名称,cpuUsage、cpuCoreUsed等,cpuUsage:cpu使用率;cpuCoreUsed:cpu内核占用;用户上报的自定义时间序列名称。
|
|
104
104
|
|
|
105
105
|
:return: The metric_name of this QuerySample.
|
|
106
106
|
:rtype: str
|
|
@@ -111,7 +111,7 @@ class QuerySample:
|
|
|
111
111
|
def metric_name(self, metric_name):
|
|
112
112
|
"""Sets the metric_name of this QuerySample.
|
|
113
113
|
|
|
114
|
-
时间序列名称。名称长度取值范围为1~255
|
|
114
|
+
时间序列名称。名称长度取值范围为1~255个字符。取值范围:AOM提供的基础时间序列名称,cpuUsage、cpuCoreUsed等,cpuUsage:cpu使用率;cpuCoreUsed:cpu内核占用;用户上报的自定义时间序列名称。
|
|
115
115
|
|
|
116
116
|
:param metric_name: The metric_name of this QuerySample.
|
|
117
117
|
:type metric_name: str
|
|
@@ -35,13 +35,13 @@ class QuerySampleParam:
|
|
|
35
35
|
|
|
36
36
|
The model defined in huaweicloud sdk
|
|
37
37
|
|
|
38
|
-
:param samples:
|
|
38
|
+
:param samples: 时序数据对象列表。取值范围:JSON数组大小不超过20。
|
|
39
39
|
:type samples: list[:class:`huaweicloudsdkaom.v2.QuerySample`]
|
|
40
|
-
:param statistics:
|
|
40
|
+
:param statistics: 统计方式。取值范围:maximum,minimum,sum,average,sampleCount。
|
|
41
41
|
:type statistics: list[str]
|
|
42
|
-
:param period:
|
|
42
|
+
:param period: 监控数据粒度。取值范围(枚举):60(表示粒度为1分钟),300(表示粒度为5分钟),900(表示粒度为15分钟),3600(表示粒度为1小时)。
|
|
43
43
|
:type period: int
|
|
44
|
-
:param time_range: timeRange用于指标查询时间范围,主要用于解决客户端时间和服务端时间不一致情况下,查询最近N分钟的数据。另可用于精确查询某一段时间的数据。
|
|
44
|
+
:param time_range: timeRange用于指标查询时间范围,主要用于解决客户端时间和服务端时间不一致情况下,查询最近N分钟的数据。另可用于精确查询某一段时间的数据。 如: - -1.-1.60(表示最近60分钟),不管当前客户端是什么时间,都以服务端时间为准查询最近60分钟。 - 1650852000000.1650852300000.5(表示GMT+8 2022-04-25 10:00:00至2022-04-25 10:05:00指定的5分钟) 格式: startTimeInMillis.endTimeInMillis.durationInMinutes 参数解释: - startTimeInMillis: 查询的开始时间,格式为UTC毫秒,如果指定为-1,服务端将按(endTimeInMillis - durationInMinutes * 60 * 1000)计算开始时间。如-1.1650852300000.5,则相当于1650852000000.1650852300000.5 - endTimeInMillis: 查询的结束时间,格式为UTC毫秒,如果指定为-1,服务端将按(startTimeInMillis + durationInMinutes * 60 * 1000)计算结束时间,如果计算出的结束时间大于当前系统时间,则使用当前系统时间。如1650852000000.-1.5,则相当于1650852000000.1650852300000.5 - durationInMinutes:查询时间的跨度分钟数。 取值范围大于0并且大于等于(endTimeInMillis - startTimeInMillis) / (60 * 1000) - 1。当开始时间与结束时间都设置为-1时,系统会将结束时间设置为当前时间UTC毫秒值,并按(endTimeInMillis - durationInMinutes * 60 * 1000)计算开始时间。如:-1.-1.60(表示最近60分钟) 约束: 单次请求中,查询时长与周期需要满足以下条件: durationInMinutes * 60 / period <= 1440
|
|
45
45
|
:type time_range: str
|
|
46
46
|
"""
|
|
47
47
|
|
|
@@ -62,7 +62,7 @@ class QuerySampleParam:
|
|
|
62
62
|
def samples(self):
|
|
63
63
|
"""Gets the samples of this QuerySampleParam.
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
时序数据对象列表。取值范围:JSON数组大小不超过20。
|
|
66
66
|
|
|
67
67
|
:return: The samples of this QuerySampleParam.
|
|
68
68
|
:rtype: list[:class:`huaweicloudsdkaom.v2.QuerySample`]
|
|
@@ -73,7 +73,7 @@ class QuerySampleParam:
|
|
|
73
73
|
def samples(self, samples):
|
|
74
74
|
"""Sets the samples of this QuerySampleParam.
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
时序数据对象列表。取值范围:JSON数组大小不超过20。
|
|
77
77
|
|
|
78
78
|
:param samples: The samples of this QuerySampleParam.
|
|
79
79
|
:type samples: list[:class:`huaweicloudsdkaom.v2.QuerySample`]
|
|
@@ -84,7 +84,7 @@ class QuerySampleParam:
|
|
|
84
84
|
def statistics(self):
|
|
85
85
|
"""Gets the statistics of this QuerySampleParam.
|
|
86
86
|
|
|
87
|
-
|
|
87
|
+
统计方式。取值范围:maximum,minimum,sum,average,sampleCount。
|
|
88
88
|
|
|
89
89
|
:return: The statistics of this QuerySampleParam.
|
|
90
90
|
:rtype: list[str]
|
|
@@ -95,7 +95,7 @@ class QuerySampleParam:
|
|
|
95
95
|
def statistics(self, statistics):
|
|
96
96
|
"""Sets the statistics of this QuerySampleParam.
|
|
97
97
|
|
|
98
|
-
|
|
98
|
+
统计方式。取值范围:maximum,minimum,sum,average,sampleCount。
|
|
99
99
|
|
|
100
100
|
:param statistics: The statistics of this QuerySampleParam.
|
|
101
101
|
:type statistics: list[str]
|
|
@@ -106,7 +106,7 @@ class QuerySampleParam:
|
|
|
106
106
|
def period(self):
|
|
107
107
|
"""Gets the period of this QuerySampleParam.
|
|
108
108
|
|
|
109
|
-
|
|
109
|
+
监控数据粒度。取值范围(枚举):60(表示粒度为1分钟),300(表示粒度为5分钟),900(表示粒度为15分钟),3600(表示粒度为1小时)。
|
|
110
110
|
|
|
111
111
|
:return: The period of this QuerySampleParam.
|
|
112
112
|
:rtype: int
|
|
@@ -117,7 +117,7 @@ class QuerySampleParam:
|
|
|
117
117
|
def period(self, period):
|
|
118
118
|
"""Sets the period of this QuerySampleParam.
|
|
119
119
|
|
|
120
|
-
|
|
120
|
+
监控数据粒度。取值范围(枚举):60(表示粒度为1分钟),300(表示粒度为5分钟),900(表示粒度为15分钟),3600(表示粒度为1小时)。
|
|
121
121
|
|
|
122
122
|
:param period: The period of this QuerySampleParam.
|
|
123
123
|
:type period: int
|
|
@@ -128,7 +128,7 @@ class QuerySampleParam:
|
|
|
128
128
|
def time_range(self):
|
|
129
129
|
"""Gets the time_range of this QuerySampleParam.
|
|
130
130
|
|
|
131
|
-
timeRange用于指标查询时间范围,主要用于解决客户端时间和服务端时间不一致情况下,查询最近N分钟的数据。另可用于精确查询某一段时间的数据。
|
|
131
|
+
timeRange用于指标查询时间范围,主要用于解决客户端时间和服务端时间不一致情况下,查询最近N分钟的数据。另可用于精确查询某一段时间的数据。 如: - -1.-1.60(表示最近60分钟),不管当前客户端是什么时间,都以服务端时间为准查询最近60分钟。 - 1650852000000.1650852300000.5(表示GMT+8 2022-04-25 10:00:00至2022-04-25 10:05:00指定的5分钟) 格式: startTimeInMillis.endTimeInMillis.durationInMinutes 参数解释: - startTimeInMillis: 查询的开始时间,格式为UTC毫秒,如果指定为-1,服务端将按(endTimeInMillis - durationInMinutes * 60 * 1000)计算开始时间。如-1.1650852300000.5,则相当于1650852000000.1650852300000.5 - endTimeInMillis: 查询的结束时间,格式为UTC毫秒,如果指定为-1,服务端将按(startTimeInMillis + durationInMinutes * 60 * 1000)计算结束时间,如果计算出的结束时间大于当前系统时间,则使用当前系统时间。如1650852000000.-1.5,则相当于1650852000000.1650852300000.5 - durationInMinutes:查询时间的跨度分钟数。 取值范围大于0并且大于等于(endTimeInMillis - startTimeInMillis) / (60 * 1000) - 1。当开始时间与结束时间都设置为-1时,系统会将结束时间设置为当前时间UTC毫秒值,并按(endTimeInMillis - durationInMinutes * 60 * 1000)计算开始时间。如:-1.-1.60(表示最近60分钟) 约束: 单次请求中,查询时长与周期需要满足以下条件: durationInMinutes * 60 / period <= 1440
|
|
132
132
|
|
|
133
133
|
:return: The time_range of this QuerySampleParam.
|
|
134
134
|
:rtype: str
|
|
@@ -139,7 +139,7 @@ class QuerySampleParam:
|
|
|
139
139
|
def time_range(self, time_range):
|
|
140
140
|
"""Sets the time_range of this QuerySampleParam.
|
|
141
141
|
|
|
142
|
-
timeRange用于指标查询时间范围,主要用于解决客户端时间和服务端时间不一致情况下,查询最近N分钟的数据。另可用于精确查询某一段时间的数据。
|
|
142
|
+
timeRange用于指标查询时间范围,主要用于解决客户端时间和服务端时间不一致情况下,查询最近N分钟的数据。另可用于精确查询某一段时间的数据。 如: - -1.-1.60(表示最近60分钟),不管当前客户端是什么时间,都以服务端时间为准查询最近60分钟。 - 1650852000000.1650852300000.5(表示GMT+8 2022-04-25 10:00:00至2022-04-25 10:05:00指定的5分钟) 格式: startTimeInMillis.endTimeInMillis.durationInMinutes 参数解释: - startTimeInMillis: 查询的开始时间,格式为UTC毫秒,如果指定为-1,服务端将按(endTimeInMillis - durationInMinutes * 60 * 1000)计算开始时间。如-1.1650852300000.5,则相当于1650852000000.1650852300000.5 - endTimeInMillis: 查询的结束时间,格式为UTC毫秒,如果指定为-1,服务端将按(startTimeInMillis + durationInMinutes * 60 * 1000)计算结束时间,如果计算出的结束时间大于当前系统时间,则使用当前系统时间。如1650852000000.-1.5,则相当于1650852000000.1650852300000.5 - durationInMinutes:查询时间的跨度分钟数。 取值范围大于0并且大于等于(endTimeInMillis - startTimeInMillis) / (60 * 1000) - 1。当开始时间与结束时间都设置为-1时,系统会将结束时间设置为当前时间UTC毫秒值,并按(endTimeInMillis - durationInMinutes * 60 * 1000)计算开始时间。如:-1.-1.60(表示最近60分钟) 约束: 单次请求中,查询时长与周期需要满足以下条件: durationInMinutes * 60 / period <= 1440
|
|
143
143
|
|
|
144
144
|
:param time_range: The time_range of this QuerySampleParam.
|
|
145
145
|
:type time_range: str
|
|
@@ -33,11 +33,11 @@ class QuerySeriesOptionParam:
|
|
|
33
33
|
|
|
34
34
|
The model defined in huaweicloud sdk
|
|
35
35
|
|
|
36
|
-
:param namespace:
|
|
36
|
+
:param namespace: 时间序列命名空间。取值范围:PAAS.CONTAINER、PAAS.NODE、PAAS.SLA、PAAS.AGGR、CUSTOMMETRICS等。PAAS.CONTAINER:应用时间序列命名空间;PAAS.NODE:节点时间序列命名空间;PAAS.SLA:SLA时间序列命名空间;PAAS.AGGR:集群时间序列命名空间;CUSTOMMETRICS:自定义时间序列命名空间。
|
|
37
37
|
:type namespace: str
|
|
38
|
-
:param metric_name: 时间序列名称,名称长度取值范围为1~255
|
|
38
|
+
:param metric_name: 时间序列名称,名称长度取值范围为1~255个字符。取值范围:AOM提供的基础时间序列名称,cpuUsage、cpuCoreUsed等:cpuUsage:cpu使用率;cpuCoreUsed:cpu内核占用;用户上报的自定义时间序列名称。
|
|
39
39
|
:type metric_name: str
|
|
40
|
-
:param dimensions:
|
|
40
|
+
:param dimensions: 时间序列维度列表。可通过/v2/{project_id}/series接口中namespace+metric_name,查询当前监控的时间序列名称的时间序列维度列表。
|
|
41
41
|
:type dimensions: list[:class:`huaweicloudsdkaom.v2.DimensionSeries`]
|
|
42
42
|
"""
|
|
43
43
|
|
|
@@ -58,7 +58,7 @@ class QuerySeriesOptionParam:
|
|
|
58
58
|
def namespace(self):
|
|
59
59
|
"""Gets the namespace of this QuerySeriesOptionParam.
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
时间序列命名空间。取值范围:PAAS.CONTAINER、PAAS.NODE、PAAS.SLA、PAAS.AGGR、CUSTOMMETRICS等。PAAS.CONTAINER:应用时间序列命名空间;PAAS.NODE:节点时间序列命名空间;PAAS.SLA:SLA时间序列命名空间;PAAS.AGGR:集群时间序列命名空间;CUSTOMMETRICS:自定义时间序列命名空间。
|
|
62
62
|
|
|
63
63
|
:return: The namespace of this QuerySeriesOptionParam.
|
|
64
64
|
:rtype: str
|
|
@@ -69,7 +69,7 @@ class QuerySeriesOptionParam:
|
|
|
69
69
|
def namespace(self, namespace):
|
|
70
70
|
"""Sets the namespace of this QuerySeriesOptionParam.
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
时间序列命名空间。取值范围:PAAS.CONTAINER、PAAS.NODE、PAAS.SLA、PAAS.AGGR、CUSTOMMETRICS等。PAAS.CONTAINER:应用时间序列命名空间;PAAS.NODE:节点时间序列命名空间;PAAS.SLA:SLA时间序列命名空间;PAAS.AGGR:集群时间序列命名空间;CUSTOMMETRICS:自定义时间序列命名空间。
|
|
73
73
|
|
|
74
74
|
:param namespace: The namespace of this QuerySeriesOptionParam.
|
|
75
75
|
:type namespace: str
|
|
@@ -80,7 +80,7 @@ class QuerySeriesOptionParam:
|
|
|
80
80
|
def metric_name(self):
|
|
81
81
|
"""Gets the metric_name of this QuerySeriesOptionParam.
|
|
82
82
|
|
|
83
|
-
时间序列名称,名称长度取值范围为1~255
|
|
83
|
+
时间序列名称,名称长度取值范围为1~255个字符。取值范围:AOM提供的基础时间序列名称,cpuUsage、cpuCoreUsed等:cpuUsage:cpu使用率;cpuCoreUsed:cpu内核占用;用户上报的自定义时间序列名称。
|
|
84
84
|
|
|
85
85
|
:return: The metric_name of this QuerySeriesOptionParam.
|
|
86
86
|
:rtype: str
|
|
@@ -91,7 +91,7 @@ class QuerySeriesOptionParam:
|
|
|
91
91
|
def metric_name(self, metric_name):
|
|
92
92
|
"""Sets the metric_name of this QuerySeriesOptionParam.
|
|
93
93
|
|
|
94
|
-
时间序列名称,名称长度取值范围为1~255
|
|
94
|
+
时间序列名称,名称长度取值范围为1~255个字符。取值范围:AOM提供的基础时间序列名称,cpuUsage、cpuCoreUsed等:cpuUsage:cpu使用率;cpuCoreUsed:cpu内核占用;用户上报的自定义时间序列名称。
|
|
95
95
|
|
|
96
96
|
:param metric_name: The metric_name of this QuerySeriesOptionParam.
|
|
97
97
|
:type metric_name: str
|
|
@@ -102,7 +102,7 @@ class QuerySeriesOptionParam:
|
|
|
102
102
|
def dimensions(self):
|
|
103
103
|
"""Gets the dimensions of this QuerySeriesOptionParam.
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
时间序列维度列表。可通过/v2/{project_id}/series接口中namespace+metric_name,查询当前监控的时间序列名称的时间序列维度列表。
|
|
106
106
|
|
|
107
107
|
:return: The dimensions of this QuerySeriesOptionParam.
|
|
108
108
|
:rtype: list[:class:`huaweicloudsdkaom.v2.DimensionSeries`]
|
|
@@ -113,7 +113,7 @@ class QuerySeriesOptionParam:
|
|
|
113
113
|
def dimensions(self, dimensions):
|
|
114
114
|
"""Sets the dimensions of this QuerySeriesOptionParam.
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
时间序列维度列表。可通过/v2/{project_id}/series接口中namespace+metric_name,查询当前监控的时间序列名称的时间序列维度列表。
|
|
117
117
|
|
|
118
118
|
:param dimensions: The dimensions of this QuerySeriesOptionParam.
|
|
119
119
|
:type dimensions: list[:class:`huaweicloudsdkaom.v2.DimensionSeries`]
|
|
@@ -48,13 +48,13 @@ class ShowActionRuleResponse(SdkResponse):
|
|
|
48
48
|
|
|
49
49
|
The model defined in huaweicloud sdk
|
|
50
50
|
|
|
51
|
-
:param rule_name: 规则名称
|
|
51
|
+
:param rule_name: 规则名称 只含有汉字数字、字母、下划线,不能以下划线等特殊符号开头和结尾,长度为 1 - 100
|
|
52
52
|
:type rule_name: str
|
|
53
53
|
:param project_id: 项目ID
|
|
54
54
|
:type project_id: str
|
|
55
55
|
:param user_name: 子账号名称
|
|
56
56
|
:type user_name: str
|
|
57
|
-
:param desc:
|
|
57
|
+
:param desc: 规则描述。规则描述长度为0到1024个字符,并且只能是数字、字母、特殊字符(_*)、空格和中文组成,不能以下划线开头和结尾。
|
|
58
58
|
:type desc: str
|
|
59
59
|
:param type: 规则类型。\"1\":通知,\"2\":用户
|
|
60
60
|
:type type: str
|
|
@@ -109,7 +109,7 @@ class ShowActionRuleResponse(SdkResponse):
|
|
|
109
109
|
def rule_name(self):
|
|
110
110
|
"""Gets the rule_name of this ShowActionRuleResponse.
|
|
111
111
|
|
|
112
|
-
规则名称
|
|
112
|
+
规则名称 只含有汉字数字、字母、下划线,不能以下划线等特殊符号开头和结尾,长度为 1 - 100
|
|
113
113
|
|
|
114
114
|
:return: The rule_name of this ShowActionRuleResponse.
|
|
115
115
|
:rtype: str
|
|
@@ -120,7 +120,7 @@ class ShowActionRuleResponse(SdkResponse):
|
|
|
120
120
|
def rule_name(self, rule_name):
|
|
121
121
|
"""Sets the rule_name of this ShowActionRuleResponse.
|
|
122
122
|
|
|
123
|
-
规则名称
|
|
123
|
+
规则名称 只含有汉字数字、字母、下划线,不能以下划线等特殊符号开头和结尾,长度为 1 - 100
|
|
124
124
|
|
|
125
125
|
:param rule_name: The rule_name of this ShowActionRuleResponse.
|
|
126
126
|
:type rule_name: str
|
|
@@ -175,7 +175,7 @@ class ShowActionRuleResponse(SdkResponse):
|
|
|
175
175
|
def desc(self):
|
|
176
176
|
"""Gets the desc of this ShowActionRuleResponse.
|
|
177
177
|
|
|
178
|
-
|
|
178
|
+
规则描述。规则描述长度为0到1024个字符,并且只能是数字、字母、特殊字符(_*)、空格和中文组成,不能以下划线开头和结尾。
|
|
179
179
|
|
|
180
180
|
:return: The desc of this ShowActionRuleResponse.
|
|
181
181
|
:rtype: str
|
|
@@ -186,7 +186,7 @@ class ShowActionRuleResponse(SdkResponse):
|
|
|
186
186
|
def desc(self, desc):
|
|
187
187
|
"""Sets the desc of this ShowActionRuleResponse.
|
|
188
188
|
|
|
189
|
-
|
|
189
|
+
规则描述。规则描述长度为0到1024个字符,并且只能是数字、字母、特殊字符(_*)、空格和中文组成,不能以下划线开头和结尾。
|
|
190
190
|
|
|
191
191
|
:param desc: The desc of this ShowActionRuleResponse.
|
|
192
192
|
:type desc: str
|