tencentcloud-sdk-teo 3.0.489 → 3.0.491

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: 080745973a3853af5603b94430cff708bfc3f65b
4
- data.tar.gz: 65702bbaa251c97e7efa7eb810323bece7d7667e
3
+ metadata.gz: c7c4b456a6299638431521ce58157e94e84633e3
4
+ data.tar.gz: 97568152eed23b0337f2aaeb6fc2126315564f29
5
5
  SHA512:
6
- metadata.gz: 71073656d312f37cb6fdc5c95e3cc29c55b76991905f78f2d485bf992eada793a57361d97bb46549353c8a3a850375d6b65567481a62537af3f4848cdb3196d1
7
- data.tar.gz: f7be97b8bf279b326e958073e52be5c3eb53ac88cd0e9a54f7f6f5c95db3c558a57fa01d88443bbd217a0f04f5c11bba2b049e677f84c1928936c5bbe4efdc60
6
+ metadata.gz: 1e66ff16901630da53ff55aa1e94a04ea2ae48c614251fbc92fc275ea7dc1f7e03ed5d3132f015163262b4defec519f9ee4a09e587cd3fe71c69d693f59baab8
7
+ data.tar.gz: 58ebef25ddf2cb51c07345b468a0b08ca5300403df36ee76c458bf069d2cbe9eec01aa0e959f047d8b311d0c56baec1f4a0833641dbdeddcdb3de5085c6865f6
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.489
1
+ 3.0.491
@@ -653,6 +653,30 @@ module TencentCloud
653
653
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
654
654
  end
655
655
 
656
+ # 本接口(DescribeDDoSAttackData)用于查询DDoS攻击时序数据。
657
+
658
+ # @param request: Request instance for DescribeDDoSAttackData.
659
+ # @type request: :class:`Tencentcloud::teo::V20220901::DescribeDDoSAttackDataRequest`
660
+ # @rtype: :class:`Tencentcloud::teo::V20220901::DescribeDDoSAttackDataResponse`
661
+ def DescribeDDoSAttackData(request)
662
+ body = send_request('DescribeDDoSAttackData', request.serialize)
663
+ response = JSON.parse(body)
664
+ if response['Response'].key?('Error') == false
665
+ model = DescribeDDoSAttackDataResponse.new
666
+ model.deserialize(response['Response'])
667
+ model
668
+ else
669
+ code = response['Response']['Error']['Code']
670
+ message = response['Response']['Error']['Message']
671
+ reqid = response['Response']['RequestId']
672
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
673
+ end
674
+ rescue TencentCloud::Common::TencentCloudSDKException => e
675
+ raise e
676
+ rescue StandardError => e
677
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
678
+ end
679
+
656
680
  # 本接口(DescribeDDoSAttackTopData)用于查询DDoS攻击Top数据。
657
681
 
658
682
  # @param request: Request instance for DescribeDDoSAttackTopData.
@@ -2529,6 +2529,89 @@ module TencentCloud
2529
2529
  end
2530
2530
  end
2531
2531
 
2532
+ # DescribeDDoSAttackData请求参数结构体
2533
+ class DescribeDDoSAttackDataRequest < TencentCloud::Common::AbstractModel
2534
+ # @param StartTime: 开始时间。
2535
+ # @type StartTime: String
2536
+ # @param EndTime: 结束时间。
2537
+ # @type EndTime: String
2538
+ # @param MetricNames: 统计指标列表,取值有:
2539
+ # <li>ddos_attackMaxBandwidth:攻击带宽峰值;</li>
2540
+ # <li>ddos_attackMaxPackageRate:攻击包速率峰值 ;</li>
2541
+ # <li>ddos_attackBandwidth:攻击带宽曲线;</li>
2542
+ # <li>ddos_attackPackageRate:攻击包速率曲线。</li>
2543
+ # @type MetricNames: Array
2544
+ # @param ZoneIds: 站点集合,不填默认选择全部站点。
2545
+ # @type ZoneIds: Array
2546
+ # @param PolicyIds: DDoS策略组ID列表,不填默认选择全部策略ID。
2547
+ # @type PolicyIds: Array
2548
+ # @param Interval: 查询时间粒度,取值有:
2549
+ # <li>min:1分钟;</li>
2550
+ # <li>5min:5分钟;</li>
2551
+ # <li>hour:1小时;</li>
2552
+ # <li>day:1天。</li>不填将根据开始时间与结束时间的间隔自动推算粒度,具体为:1小时范围内以min粒度查询,2天范围内以5min粒度查询,7天范围内以hour粒度查询,超过7天以day粒度查询。
2553
+ # @type Interval: String
2554
+ # @param Area: 数据归属地区,取值有:
2555
+ # <li>overseas:全球(除中国大陆地区)数据;</li>
2556
+ # <li>mainland:中国大陆地区数据;</li>
2557
+ # <li>global:全球数据。</li>不填默认取值为global。
2558
+ # @type Area: String
2559
+
2560
+ attr_accessor :StartTime, :EndTime, :MetricNames, :ZoneIds, :PolicyIds, :Interval, :Area
2561
+
2562
+ def initialize(starttime=nil, endtime=nil, metricnames=nil, zoneids=nil, policyids=nil, interval=nil, area=nil)
2563
+ @StartTime = starttime
2564
+ @EndTime = endtime
2565
+ @MetricNames = metricnames
2566
+ @ZoneIds = zoneids
2567
+ @PolicyIds = policyids
2568
+ @Interval = interval
2569
+ @Area = area
2570
+ end
2571
+
2572
+ def deserialize(params)
2573
+ @StartTime = params['StartTime']
2574
+ @EndTime = params['EndTime']
2575
+ @MetricNames = params['MetricNames']
2576
+ @ZoneIds = params['ZoneIds']
2577
+ @PolicyIds = params['PolicyIds']
2578
+ @Interval = params['Interval']
2579
+ @Area = params['Area']
2580
+ end
2581
+ end
2582
+
2583
+ # DescribeDDoSAttackData返回参数结构体
2584
+ class DescribeDDoSAttackDataResponse < TencentCloud::Common::AbstractModel
2585
+ # @param TotalCount: 查询结果的总条数。
2586
+ # @type TotalCount: Integer
2587
+ # @param Data: DDoS攻击数据内容列表。
2588
+ # 注意:此字段可能返回 null,表示取不到有效值。
2589
+ # @type Data: Array
2590
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2591
+ # @type RequestId: String
2592
+
2593
+ attr_accessor :TotalCount, :Data, :RequestId
2594
+
2595
+ def initialize(totalcount=nil, data=nil, requestid=nil)
2596
+ @TotalCount = totalcount
2597
+ @Data = data
2598
+ @RequestId = requestid
2599
+ end
2600
+
2601
+ def deserialize(params)
2602
+ @TotalCount = params['TotalCount']
2603
+ unless params['Data'].nil?
2604
+ @Data = []
2605
+ params['Data'].each do |i|
2606
+ secentry_tmp = SecEntry.new
2607
+ secentry_tmp.deserialize(i)
2608
+ @Data << secentry_tmp
2609
+ end
2610
+ end
2611
+ @RequestId = params['RequestId']
2612
+ end
2613
+ end
2614
+
2532
2615
  # DescribeDDoSAttackTopData请求参数结构体
2533
2616
  class DescribeDDoSAttackTopDataRequest < TencentCloud::Common::AbstractModel
2534
2617
  # @param StartTime: 开始时间。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-teo
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.489
4
+ version: 3.0.491
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-09 00:00:00.000000000 Z
11
+ date: 2023-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common