tencentcloud-sdk-dbbrain 1.0.223 → 1.0.224

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4adf5fb6166fabd870c03db20540e0300329a31d
4
- data.tar.gz: 9d1e189278479967a0afbccf6e457efba7ff7684
3
+ metadata.gz: 4c1f86928cb71b40d3ae4cb6b5e0e62566b6fef9
4
+ data.tar.gz: fa25d768c198d9101c812d878819d1330caf9204
5
5
  SHA512:
6
- metadata.gz: 1412f2db16d3aaf7ac5bfcc6cdef0bd1c69143d1380554ff98e476b74f023ff80f6c30759356021f9f6510eb610bd3a9b5d22de1aad8e439e2d9f26c901060c1
7
- data.tar.gz: 8f326048b48d106024d4b364772c75201b4894f719f7b3feb335752609658fba6fb78d3e3e7f1a8729edc07082220c56c4297976c7f497fdee17360c3a9216a1
6
+ metadata.gz: 83cb7d5311a7a4547951bdc2960e280c8b1b1d166a25957ed8107deeac261b40129d2849d7a06b02f0d9d12ba45e4a04015cd3b0afe1f57fdc9f1b87e8e10502
7
+ data.tar.gz: 068dafcc0456c7131e8922c5a57653d91ad1dd1e4e6b473ef430c2f07370a08d86bf99b4fec5cf28f531b0029ddd84a6ae173faeb9ca0b44efd31e2a7021dd6b
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.223
1
+ 1.0.224
@@ -269,6 +269,30 @@ module TencentCloud
269
269
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
270
270
  end
271
271
 
272
+ # 获取指定时间段内的诊断事件列表,支持依据风险等级、实例ID等条件过滤。
273
+
274
+ # @param request: Request instance for DescribeDBDiagEvents.
275
+ # @type request: :class:`Tencentcloud::dbbrain::V20210527::DescribeDBDiagEventsRequest`
276
+ # @rtype: :class:`Tencentcloud::dbbrain::V20210527::DescribeDBDiagEventsResponse`
277
+ def DescribeDBDiagEvents(request)
278
+ body = send_request('DescribeDBDiagEvents', request.serialize)
279
+ response = JSON.parse(body)
280
+ if response['Response'].key?('Error') == false
281
+ model = DescribeDBDiagEventsResponse.new
282
+ model.deserialize(response['Response'])
283
+ model
284
+ else
285
+ code = response['Response']['Error']['Code']
286
+ message = response['Response']['Error']['Message']
287
+ reqid = response['Response']['RequestId']
288
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
289
+ end
290
+ rescue TencentCloud::Common::TencentCloudSDKException => e
291
+ raise e
292
+ rescue StandardError => e
293
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
294
+ end
295
+
272
296
  # 获取实例诊断事件的列表。
273
297
 
274
298
  # @param request: Request instance for DescribeDBDiagHistory.
@@ -581,6 +581,73 @@ module TencentCloud
581
581
  end
582
582
  end
583
583
 
584
+ # DescribeDBDiagEvents请求参数结构体
585
+ class DescribeDBDiagEventsRequest < TencentCloud::Common::AbstractModel
586
+ # @param StartTime: 开始时间,如“2021-05-27 00:00:00”,支持的最早查询时间为当前时间的前30天。
587
+ # @type StartTime: String
588
+ # @param EndTime: 结束时间,如“2021-05-27 01:00:00”,结束时间与开始时间的间隔最大可为7天。
589
+ # @type EndTime: String
590
+ # @param Severities: 风险等级列表,取值按影响程度从高至低分别为:1 - 致命、2 -严重、3 - 告警、4 - 提示、5 -健康。
591
+ # @type Severities: Array
592
+ # @param InstanceIds: 实例ID列表。
593
+ # @type InstanceIds: Array
594
+ # @param Offset: 偏移量,默认0。
595
+ # @type Offset: Integer
596
+ # @param Limit: 返回数量,默认20,最大值为50。
597
+ # @type Limit: Integer
598
+
599
+ attr_accessor :StartTime, :EndTime, :Severities, :InstanceIds, :Offset, :Limit
600
+
601
+ def initialize(starttime=nil, endtime=nil, severities=nil, instanceids=nil, offset=nil, limit=nil)
602
+ @StartTime = starttime
603
+ @EndTime = endtime
604
+ @Severities = severities
605
+ @InstanceIds = instanceids
606
+ @Offset = offset
607
+ @Limit = limit
608
+ end
609
+
610
+ def deserialize(params)
611
+ @StartTime = params['StartTime']
612
+ @EndTime = params['EndTime']
613
+ @Severities = params['Severities']
614
+ @InstanceIds = params['InstanceIds']
615
+ @Offset = params['Offset']
616
+ @Limit = params['Limit']
617
+ end
618
+ end
619
+
620
+ # DescribeDBDiagEvents返回参数结构体
621
+ class DescribeDBDiagEventsResponse < TencentCloud::Common::AbstractModel
622
+ # @param TotalCount: 诊断事件的总数目。
623
+ # @type TotalCount: Integer
624
+ # @param Items: 诊断事件的列表。
625
+ # @type Items: Array
626
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
627
+ # @type RequestId: String
628
+
629
+ attr_accessor :TotalCount, :Items, :RequestId
630
+
631
+ def initialize(totalcount=nil, items=nil, requestid=nil)
632
+ @TotalCount = totalcount
633
+ @Items = items
634
+ @RequestId = requestid
635
+ end
636
+
637
+ def deserialize(params)
638
+ @TotalCount = params['TotalCount']
639
+ unless params['Items'].nil?
640
+ @Items = []
641
+ params['Items'].each do |i|
642
+ diaghistoryeventitem_tmp = DiagHistoryEventItem.new
643
+ diaghistoryeventitem_tmp.deserialize(i)
644
+ @Items << diaghistoryeventitem_tmp
645
+ end
646
+ end
647
+ @RequestId = params['RequestId']
648
+ end
649
+ end
650
+
584
651
  # DescribeDBDiagHistory请求参数结构体
585
652
  class DescribeDBDiagHistoryRequest < TencentCloud::Common::AbstractModel
586
653
  # @param InstanceId: 实例 ID 。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-dbbrain
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.223
4
+ version: 1.0.224
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-14 00:00:00.000000000 Z
11
+ date: 2021-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common