tencentcloud-sdk-teo 3.0.489 → 3.0.490
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20220901/client.rb +24 -0
- data/lib/v20220901/models.rb +83 -0
- 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: 894ba6b01463cf8ed1b97ad8114bef449a989040
|
4
|
+
data.tar.gz: 42b22646b1cd80a207fc66e4a4e775c35d1ff42b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05a30cc5e225a29c269581a55183795590737b17ca473f5e837e4d794c97992e38f5bb466f60484ce435bc6151863dba65541738b9657b607ac3aa647142664c
|
7
|
+
data.tar.gz: 7908177415a9485a2f693f75cdcc80b564c109c817ec369466b6134bd6cb98a705a3cabef973f8af5242efc606e74794f678b0b5c62741ac8d80f21592083d44
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.490
|
data/lib/v20220901/client.rb
CHANGED
@@ -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.
|
data/lib/v20220901/models.rb
CHANGED
@@ -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.
|
4
|
+
version: 3.0.490
|
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-
|
11
|
+
date: 2023-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|