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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 61ed392162853db694c729009148c39f330ccc8f
4
- data.tar.gz: a01da6df6f09be7bde3e1892d1f4d451f77eb4d0
3
+ metadata.gz: 7a37d51fe9fa8401b5b669470f13d2507023cd29
4
+ data.tar.gz: 3798907fbd7504eb66f25274e18403b98a183a40
5
5
  SHA512:
6
- metadata.gz: 40873eae8f5da59440a56e46869645e34d0c4b6b66fbfa2004b04f4af408638e1eefdcc26e8069b8222d9ce0fc531f767f96947196d38b8008252b55975f90ff
7
- data.tar.gz: 09f75f3e118bebccfea91f777fed513330ef3ef34a0c853c85a267fa9cf25dc4889fcaa0f3209e8464e1460b68a92111fc2a421f1714518c7bd0e4e71a7f4253
6
+ metadata.gz: 821cbe2f2331b6682401b49cee8670aa72aba57d58dcbfb4ead63971711b86797ce4bf95fd55c00e2c2cc4b93e3b3659b95c102decaed0edd61b4ede6a664f3e
7
+ data.tar.gz: ccd97be0aeda0c24ff0dd42c3fccd9044893a95f9fc1b15b280eafaba99f2cf17235acc9e2a161d3aeeab382bea6faeb0c1cad4143e4a260d8593458935d778d
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1094
1
+ 3.0.1101
@@ -29,22 +29,16 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
- # 获取云产品的监控数据。此接口不适用于拉取容器服务监控数据,如需拉取容器服务监控数据,请使用[根据维度条件查询监控数据](https://cloud.tencent.com/document/product/248/51845)接口。
33
- # 传入产品的命名空间、对象维度描述和监控指标即可获得相应的监控数据。
34
- # 接口调用限制:单请求最多可支持批量拉取10个实例的监控数据,单请求的数据点数限制为1440个。
35
- # 若您需要调用的指标、对象较多,可能存在因限频出现拉取失败的情况,建议尽量将请求按时间维度均摊。
32
+ # 按需查询告警的通知历史
36
33
 
37
- # >?
38
- # >- 2022年9月1日起,云监控开始对GetMonitorData接口计费。每个主账号每月可获得100万次免费请求额度,超过免费额度后如需继续调用接口需要开通 [API请求按量付费](https://buy.cloud.tencent.com/APIRequestBuy)。计费规则可查看[API计费文档](https://cloud.tencent.com/document/product/248/77914)。
39
-
40
- # @param request: Request instance for GetMonitorData.
41
- # @type request: :class:`Tencentcloud::monitor::V20230616::GetMonitorDataRequest`
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 = GetMonitorDataResponse.new
41
+ model = DescribeAlarmNotifyHistoriesResponse.new
48
42
  model.deserialize(response['Response'])
49
43
  model
50
44
  else
@@ -17,197 +17,84 @@
17
17
  module TencentCloud
18
18
  module Monitor
19
19
  module V20230616
20
- # 监控数据点
21
- class DataPoint < TencentCloud::Common::AbstractModel
22
- # @param Dimensions: 实例对象维度组合
23
- # @type Dimensions: Array
24
- # @param Timestamps: 时间戳数组,表示那些时间点有数据,缺失的时间戳,没有数据点,可以理解为掉点了
25
- # @type Timestamps: Array
26
- # @param Values: 监控值数组,该数组和Timestamps一一对应
27
- # @type Values: Array
28
-
29
- attr_accessor :Dimensions, :Timestamps, :Values
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 MetricName: 指标名称,如CPUUsage,仅支持单指标拉取。各个云产品的详细指标说明请参阅各个产品[监控指标](https://cloud.tencent.com/document/product/248/6140)文档,对应的指标英文名即为MetricName
98
- # @type MetricName: String
99
- # @param Instances: 实例对象的维度组合,格式为key-value键值对形式的集合。不同类型的实例字段完全不同,如CVM为[{"Name":"InstanceId","Value":"ins-j0hk02zo"}],Ckafka为[{"Name":"instanceId","Value":"ckafka-l49k54dd"}],COS为[{"Name":"appid","Value":"1258344699"},{"Name":"bucket","Value":"rig-1258344699"}]。各个云产品的维度请参阅各个产品[监控指标](https://cloud.tencent.com/document/product/248/6140)文档,对应的维度列即为维度组合的key,value为key对应的值。单请求最多支持批量拉取10个实例的监控数据。
100
- # @type Instances: Array
101
- # @param Period: 监控统计周期,如60。默认为取值为300,单位为s。每个指标支持的统计周期不一定相同,各个云产品支持的统计周期请参阅各个产品[监控指标](https://cloud.tencent.com/document/product/248/6140)文档,对应的统计周期列即为支持的统计周期。单请求的数据点数限制为1440个。
102
- # @type Period: Integer
103
- # @param StartTime: 起始时间,如2018-09-22T19:51:23+08:00
104
- # @type StartTime: String
105
- # @param EndTime: 结束时间,如2018-09-22T20:51:23+08:00,默认为当前时间。 EndTime不能小于StartTime
106
- # @type EndTime: String
107
- # @param Expr: 计算算子
108
- # @type Expr: :class:`Tencentcloud::Monitor.v20230616.models.Expr`
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
- @MetricName = metricname
115
- @Instances = instances
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
- @Namespace = params['Namespace']
124
- @MetricName = params['MetricName']
125
- unless params['Instances'].nil?
126
- @Instances = []
127
- params['Instances'].each do |i|
128
- instance_tmp = Instance.new
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
- # GetMonitorData返回参数结构体
144
- class GetMonitorDataResponse < TencentCloud::Common::AbstractModel
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 :Period, :MetricName, :DataPoints, :StartTime, :EndTime, :Msg, :RequestId
68
+ attr_accessor :RequestId
161
69
 
162
- def initialize(period=nil, metricname=nil, datapoints=nil, starttime=nil, endtime=nil, msg=nil, requestid=nil)
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 Instance < TencentCloud::Common::AbstractModel
192
- # @param Dimensions: 实例的维度组合
79
+ # 分页请求参数
80
+ class PageByNoParams < TencentCloud::Common::AbstractModel
81
+ # @param PerPage: 每个分页的数量是多少
193
82
  # 注意:此字段可能返回 null,表示取不到有效值。
194
- # @type Dimensions: Array
83
+ # @type PerPage: Integer
84
+ # @param PageNo: 第几个分页,从1开始
85
+ # 注意:此字段可能返回 null,表示取不到有效值。
86
+ # @type PageNo: String
195
87
 
196
- attr_accessor :Dimensions
88
+ attr_accessor :PerPage, :PageNo
197
89
 
198
- def initialize(dimensions=nil)
199
- @Dimensions = dimensions
90
+ def initialize(perpage=nil, pageno=nil)
91
+ @PerPage = perpage
92
+ @PageNo = pageno
200
93
  end
201
94
 
202
95
  def deserialize(params)
203
- unless params['Dimensions'].nil?
204
- @Dimensions = []
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.1094
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-05 00:00:00.000000000 Z
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