tencentcloud-sdk-tchd 3.0.1019 → 3.0.1020

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: cc7e13fb9863934ebdc203cadb52705f15c35263
4
- data.tar.gz: 7d88d40ebaf8b9b7e5b9e9b1e79658a56d853f90
3
+ metadata.gz: d8c11250911955731b8ba629d2be6f4cc9ad0fad
4
+ data.tar.gz: af2cf4fcf330b5930c7c428f99eeef7eb6a49c6d
5
5
  SHA512:
6
- metadata.gz: 5d1689cdb82d6ff04021a578b787dbeef717b65273648eb687f8728e08d0fba93559d030eadabedffc9bec77fb569814c4650003d0fad2cc1a5a3d622403a0d3
7
- data.tar.gz: fabb6c866838d952859aa58ff11934ce21615504dd42bbcd686106e53851feaea58092326def1dfb9f0f2c0578e888c6f76cdd9100d8d44be65fb7277e9d65a1
6
+ metadata.gz: 6becbe0a041dc7959a8989eb6b377c8d4a0428e778a05ae469f308f2c54cc096dddc54f1211ed87ac3760aca4af956d651deb48fa5099eb0837cdaafcb39732e
7
+ data.tar.gz: 8329749461590720da1e5d7ffdd2faf8d0b6a2e6ceb76b15f6684e62a55002029d83cc96ea7581be7b12025aa2ab5ec75fca12fadbc76999545edf9d4c47a5f4
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1019
1
+ 3.0.1020
@@ -29,6 +29,31 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 本接口用于查询腾讯云健康看板的实时可用性事件信息,可以通过产品列表、地域进行过滤查询。
33
+ # 可以参考健康看板历史事件页面来获取查询案例(链接:https://status.cloud.tencent.com/history)。
34
+
35
+ # @param request: Request instance for DescribeEventStatistics.
36
+ # @type request: :class:`Tencentcloud::tchd::V20230306::DescribeEventStatisticsRequest`
37
+ # @rtype: :class:`Tencentcloud::tchd::V20230306::DescribeEventStatisticsResponse`
38
+ def DescribeEventStatistics(request)
39
+ body = send_request('DescribeEventStatistics', request.serialize)
40
+ response = JSON.parse(body)
41
+ if response['Response'].key?('Error') == false
42
+ model = DescribeEventStatisticsResponse.new
43
+ model.deserialize(response['Response'])
44
+ model
45
+ else
46
+ code = response['Response']['Error']['Code']
47
+ message = response['Response']['Error']['Message']
48
+ reqid = response['Response']['RequestId']
49
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
50
+ end
51
+ rescue TencentCloud::Common::TencentCloudSDKException => e
52
+ raise e
53
+ rescue StandardError => e
54
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
55
+ end
56
+
32
57
  # 本接口用于查询腾讯云健康看板的可用性事件信息,可以通过产品列表、地域列表和事件发生日期进行过滤查询。
33
58
  # 当查询的产品对应时间内无事件时将返回空结果。
34
59
  # 可以参考健康看板历史事件页面来获取查询案例(链接:https://status.cloud.tencent.com/history)。
@@ -17,6 +17,51 @@
17
17
  module TencentCloud
18
18
  module Tchd
19
19
  module V20230306
20
+ # DescribeEventStatistics请求参数结构体
21
+ class DescribeEventStatisticsRequest < TencentCloud::Common::AbstractModel
22
+ # @param RegionId: 1. 查询非区域性产品事件时,地域ID指定为:non-regional
23
+ # 2. 其他地域ID取值请参考:https://cloud.tencent.com/document/api/213/15692
24
+ # @type RegionId: String
25
+ # @param ProductIds: 1. 不指定产品列表时将查询所有产品。
26
+ # 2. 产品ID示例:cvm、lb、cdb、cdn、crs
27
+ # @type ProductIds: Array
28
+
29
+ attr_accessor :RegionId, :ProductIds
30
+
31
+ def initialize(regionid=nil, productids=nil)
32
+ @RegionId = regionid
33
+ @ProductIds = productids
34
+ end
35
+
36
+ def deserialize(params)
37
+ @RegionId = params['RegionId']
38
+ @ProductIds = params['ProductIds']
39
+ end
40
+ end
41
+
42
+ # DescribeEventStatistics返回参数结构体
43
+ class DescribeEventStatisticsResponse < TencentCloud::Common::AbstractModel
44
+ # @param Data: 正常产品数
45
+ # @type Data: :class:`Tencentcloud::Tchd.v20230306.models.TotalStatus`
46
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
47
+ # @type RequestId: String
48
+
49
+ attr_accessor :Data, :RequestId
50
+
51
+ def initialize(data=nil, requestid=nil)
52
+ @Data = data
53
+ @RequestId = requestid
54
+ end
55
+
56
+ def deserialize(params)
57
+ unless params['Data'].nil?
58
+ @Data = TotalStatus.new
59
+ @Data.deserialize(params['Data'])
60
+ end
61
+ @RequestId = params['RequestId']
62
+ end
63
+ end
64
+
20
65
  # DescribeEvents请求参数结构体
21
66
  class DescribeEventsRequest < TencentCloud::Common::AbstractModel
22
67
  # @param EventDate: 事件的发生日期
@@ -130,6 +175,31 @@ module TencentCloud
130
175
  end
131
176
  end
132
177
 
178
+ # 状态汇总
179
+ class TotalStatus < TencentCloud::Common::AbstractModel
180
+ # @param NormalCount: 正常状态的数目
181
+ # @type NormalCount: Integer
182
+ # @param NotifyCount: 通知状态的数目
183
+ # @type NotifyCount: Integer
184
+ # @param AbnormalCount: 异常状态的数目
185
+ # 注意:此字段可能返回 null,表示取不到有效值。
186
+ # @type AbnormalCount: Integer
187
+
188
+ attr_accessor :NormalCount, :NotifyCount, :AbnormalCount
189
+
190
+ def initialize(normalcount=nil, notifycount=nil, abnormalcount=nil)
191
+ @NormalCount = normalcount
192
+ @NotifyCount = notifycount
193
+ @AbnormalCount = abnormalcount
194
+ end
195
+
196
+ def deserialize(params)
197
+ @NormalCount = params['NormalCount']
198
+ @NotifyCount = params['NotifyCount']
199
+ @AbnormalCount = params['AbnormalCount']
200
+ end
201
+ end
202
+
133
203
  end
134
204
  end
135
205
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-tchd
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1019
4
+ version: 3.0.1020
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-03-14 00:00:00.000000000 Z
11
+ date: 2025-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common