tencentcloud-sdk-monitor 3.0.1094 → 3.0.1101
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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20230616/client.rb +7 -13
- data/lib/v20230616/models.rb +51 -164
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a37d51fe9fa8401b5b669470f13d2507023cd29
|
4
|
+
data.tar.gz: 3798907fbd7504eb66f25274e18403b98a183a40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 821cbe2f2331b6682401b49cee8670aa72aba57d58dcbfb4ead63971711b86797ce4bf95fd55c00e2c2cc4b93e3b3659b95c102decaed0edd61b4ede6a664f3e
|
7
|
+
data.tar.gz: ccd97be0aeda0c24ff0dd42c3fccd9044893a95f9fc1b15b280eafaba99f2cf17235acc9e2a161d3aeeab382bea6faeb0c1cad4143e4a260d8593458935d778d
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1101
|
data/lib/v20230616/client.rb
CHANGED
@@ -29,22 +29,16 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
-
#
|
33
|
-
# 传入产品的命名空间、对象维度描述和监控指标即可获得相应的监控数据。
|
34
|
-
# 接口调用限制:单请求最多可支持批量拉取10个实例的监控数据,单请求的数据点数限制为1440个。
|
35
|
-
# 若您需要调用的指标、对象较多,可能存在因限频出现拉取失败的情况,建议尽量将请求按时间维度均摊。
|
32
|
+
# 按需查询告警的通知历史
|
36
33
|
|
37
|
-
#
|
38
|
-
#
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
# @rtype: :class:`Tencentcloud::monitor::V20230616::GetMonitorDataResponse`
|
43
|
-
def GetMonitorData(request)
|
44
|
-
body = send_request('GetMonitorData', request.serialize)
|
34
|
+
# @param request: Request instance for DescribeAlarmNotifyHistories.
|
35
|
+
# @type request: :class:`Tencentcloud::monitor::V20230616::DescribeAlarmNotifyHistoriesRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::monitor::V20230616::DescribeAlarmNotifyHistoriesResponse`
|
37
|
+
def DescribeAlarmNotifyHistories(request)
|
38
|
+
body = send_request('DescribeAlarmNotifyHistories', request.serialize)
|
45
39
|
response = JSON.parse(body)
|
46
40
|
if response['Response'].key?('Error') == false
|
47
|
-
model =
|
41
|
+
model = DescribeAlarmNotifyHistoriesResponse.new
|
48
42
|
model.deserialize(response['Response'])
|
49
43
|
model
|
50
44
|
else
|
data/lib/v20230616/models.rb
CHANGED
@@ -17,197 +17,84 @@
|
|
17
17
|
module TencentCloud
|
18
18
|
module Monitor
|
19
19
|
module V20230616
|
20
|
-
#
|
21
|
-
class
|
22
|
-
# @param
|
23
|
-
# @type
|
24
|
-
# @param
|
25
|
-
# @type
|
26
|
-
# @param
|
27
|
-
# @type
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
def initialize(dimensions=nil, timestamps=nil, values=nil)
|
32
|
-
@Dimensions = dimensions
|
33
|
-
@Timestamps = timestamps
|
34
|
-
@Values = values
|
35
|
-
end
|
36
|
-
|
37
|
-
def deserialize(params)
|
38
|
-
unless params['Dimensions'].nil?
|
39
|
-
@Dimensions = []
|
40
|
-
params['Dimensions'].each do |i|
|
41
|
-
dimension_tmp = Dimension.new
|
42
|
-
dimension_tmp.deserialize(i)
|
43
|
-
@Dimensions << dimension_tmp
|
44
|
-
end
|
45
|
-
end
|
46
|
-
@Timestamps = params['Timestamps']
|
47
|
-
@Values = params['Values']
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
# 实例对象的维度组合
|
52
|
-
class Dimension < TencentCloud::Common::AbstractModel
|
53
|
-
# @param Name: 实例维度名称
|
54
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
55
|
-
# @type Name: String
|
56
|
-
# @param Value: 实例维度值
|
57
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
58
|
-
# @type Value: String
|
59
|
-
|
60
|
-
attr_accessor :Name, :Value
|
61
|
-
|
62
|
-
def initialize(name=nil, value=nil)
|
63
|
-
@Name = name
|
64
|
-
@Value = value
|
65
|
-
end
|
66
|
-
|
67
|
-
def deserialize(params)
|
68
|
-
@Name = params['Name']
|
69
|
-
@Value = params['Value']
|
70
|
-
end
|
71
|
-
end
|
72
|
-
|
73
|
-
# 计算算子
|
74
|
-
class Expr < TencentCloud::Common::AbstractModel
|
75
|
-
# @param Function: 算子名称
|
76
|
-
# @type Function: String
|
77
|
-
# @param N: 算子入参值
|
78
|
-
# @type N: Float
|
79
|
-
|
80
|
-
attr_accessor :Function, :N
|
81
|
-
|
82
|
-
def initialize(function=nil, n=nil)
|
83
|
-
@Function = function
|
84
|
-
@N = n
|
85
|
-
end
|
86
|
-
|
87
|
-
def deserialize(params)
|
88
|
-
@Function = params['Function']
|
89
|
-
@N = params['N']
|
90
|
-
end
|
91
|
-
end
|
92
|
-
|
93
|
-
# GetMonitorData请求参数结构体
|
94
|
-
class GetMonitorDataRequest < TencentCloud::Common::AbstractModel
|
95
|
-
# @param Namespace: 命名空间,如QCE/CVM。各个云产品的详细命名空间说明请参阅各个产品[监控指标](https://cloud.tencent.com/document/product/248/6140)文档
|
20
|
+
# DescribeAlarmNotifyHistories请求参数结构体
|
21
|
+
class DescribeAlarmNotifyHistoriesRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param MonitorType: 监控类型
|
23
|
+
# @type MonitorType: String
|
24
|
+
# @param QueryBaseTime: 起始时间点,unix秒级时间戳
|
25
|
+
# @type QueryBaseTime: Integer
|
26
|
+
# @param QueryBeforeSeconds: 从 QueryBaseTime 开始,需要查询往前多久的时间,单位秒
|
27
|
+
# @type QueryBeforeSeconds: Integer
|
28
|
+
# @param PageParams: 分页参数
|
29
|
+
# @type PageParams: :class:`Tencentcloud::Monitor.v20230616.models.PageByNoParams`
|
30
|
+
# @param Namespace: 当监控类型为 MT_QCE 时候需要填写,归属的命名空间
|
96
31
|
# @type Namespace: String
|
97
|
-
# @param
|
98
|
-
# @type
|
99
|
-
# @param
|
100
|
-
# @type
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
attr_accessor :Namespace, :MetricName, :Instances, :Period, :StartTime, :EndTime, :Expr
|
111
|
-
|
112
|
-
def initialize(namespace=nil, metricname=nil, instances=nil, period=nil, starttime=nil, endtime=nil, expr=nil)
|
32
|
+
# @param ModelName: 当监控类型为 MT_QCE 时候需要填写, 告警策略类型
|
33
|
+
# @type ModelName: String
|
34
|
+
# @param PolicyId: 查询某个策略的通知历史
|
35
|
+
# @type PolicyId: String
|
36
|
+
|
37
|
+
attr_accessor :MonitorType, :QueryBaseTime, :QueryBeforeSeconds, :PageParams, :Namespace, :ModelName, :PolicyId
|
38
|
+
|
39
|
+
def initialize(monitortype=nil, querybasetime=nil, querybeforeseconds=nil, pageparams=nil, namespace=nil, modelname=nil, policyid=nil)
|
40
|
+
@MonitorType = monitortype
|
41
|
+
@QueryBaseTime = querybasetime
|
42
|
+
@QueryBeforeSeconds = querybeforeseconds
|
43
|
+
@PageParams = pageparams
|
113
44
|
@Namespace = namespace
|
114
|
-
@
|
115
|
-
@
|
116
|
-
@Period = period
|
117
|
-
@StartTime = starttime
|
118
|
-
@EndTime = endtime
|
119
|
-
@Expr = expr
|
45
|
+
@ModelName = modelname
|
46
|
+
@PolicyId = policyid
|
120
47
|
end
|
121
48
|
|
122
49
|
def deserialize(params)
|
123
|
-
@
|
124
|
-
@
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
instance_tmp.deserialize(i)
|
130
|
-
@Instances << instance_tmp
|
131
|
-
end
|
132
|
-
end
|
133
|
-
@Period = params['Period']
|
134
|
-
@StartTime = params['StartTime']
|
135
|
-
@EndTime = params['EndTime']
|
136
|
-
unless params['Expr'].nil?
|
137
|
-
@Expr = Expr.new
|
138
|
-
@Expr.deserialize(params['Expr'])
|
50
|
+
@MonitorType = params['MonitorType']
|
51
|
+
@QueryBaseTime = params['QueryBaseTime']
|
52
|
+
@QueryBeforeSeconds = params['QueryBeforeSeconds']
|
53
|
+
unless params['PageParams'].nil?
|
54
|
+
@PageParams = PageByNoParams.new
|
55
|
+
@PageParams.deserialize(params['PageParams'])
|
139
56
|
end
|
57
|
+
@Namespace = params['Namespace']
|
58
|
+
@ModelName = params['ModelName']
|
59
|
+
@PolicyId = params['PolicyId']
|
140
60
|
end
|
141
61
|
end
|
142
62
|
|
143
|
-
#
|
144
|
-
class
|
145
|
-
# @param Period: 统计周期
|
146
|
-
# @type Period: Integer
|
147
|
-
# @param MetricName: 指标名
|
148
|
-
# @type MetricName: String
|
149
|
-
# @param DataPoints: 数据点数组
|
150
|
-
# @type DataPoints: Array
|
151
|
-
# @param StartTime: 开始时间
|
152
|
-
# @type StartTime: String
|
153
|
-
# @param EndTime: 结束时间
|
154
|
-
# @type EndTime: String
|
155
|
-
# @param Msg: 返回信息
|
156
|
-
# @type Msg: String
|
63
|
+
# DescribeAlarmNotifyHistories返回参数结构体
|
64
|
+
class DescribeAlarmNotifyHistoriesResponse < TencentCloud::Common::AbstractModel
|
157
65
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
158
66
|
# @type RequestId: String
|
159
67
|
|
160
|
-
attr_accessor :
|
68
|
+
attr_accessor :RequestId
|
161
69
|
|
162
|
-
def initialize(
|
163
|
-
@Period = period
|
164
|
-
@MetricName = metricname
|
165
|
-
@DataPoints = datapoints
|
166
|
-
@StartTime = starttime
|
167
|
-
@EndTime = endtime
|
168
|
-
@Msg = msg
|
70
|
+
def initialize(requestid=nil)
|
169
71
|
@RequestId = requestid
|
170
72
|
end
|
171
73
|
|
172
74
|
def deserialize(params)
|
173
|
-
@Period = params['Period']
|
174
|
-
@MetricName = params['MetricName']
|
175
|
-
unless params['DataPoints'].nil?
|
176
|
-
@DataPoints = []
|
177
|
-
params['DataPoints'].each do |i|
|
178
|
-
datapoint_tmp = DataPoint.new
|
179
|
-
datapoint_tmp.deserialize(i)
|
180
|
-
@DataPoints << datapoint_tmp
|
181
|
-
end
|
182
|
-
end
|
183
|
-
@StartTime = params['StartTime']
|
184
|
-
@EndTime = params['EndTime']
|
185
|
-
@Msg = params['Msg']
|
186
75
|
@RequestId = params['RequestId']
|
187
76
|
end
|
188
77
|
end
|
189
78
|
|
190
|
-
#
|
191
|
-
class
|
192
|
-
# @param
|
79
|
+
# 分页请求参数
|
80
|
+
class PageByNoParams < TencentCloud::Common::AbstractModel
|
81
|
+
# @param PerPage: 每个分页的数量是多少
|
193
82
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
194
|
-
# @type
|
83
|
+
# @type PerPage: Integer
|
84
|
+
# @param PageNo: 第几个分页,从1开始
|
85
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
86
|
+
# @type PageNo: String
|
195
87
|
|
196
|
-
attr_accessor :
|
88
|
+
attr_accessor :PerPage, :PageNo
|
197
89
|
|
198
|
-
def initialize(
|
199
|
-
@
|
90
|
+
def initialize(perpage=nil, pageno=nil)
|
91
|
+
@PerPage = perpage
|
92
|
+
@PageNo = pageno
|
200
93
|
end
|
201
94
|
|
202
95
|
def deserialize(params)
|
203
|
-
|
204
|
-
|
205
|
-
params['Dimensions'].each do |i|
|
206
|
-
dimension_tmp = Dimension.new
|
207
|
-
dimension_tmp.deserialize(i)
|
208
|
-
@Dimensions << dimension_tmp
|
209
|
-
end
|
210
|
-
end
|
96
|
+
@PerPage = params['PerPage']
|
97
|
+
@PageNo = params['PageNo']
|
211
98
|
end
|
212
99
|
end
|
213
100
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-monitor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1101
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-07-
|
11
|
+
date: 2025-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|