tencentcloud-sdk-antiddos 3.0.620 → 3.0.621
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/v20200309/client.rb +24 -0
- data/lib/v20200309/models.rb +65 -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: c4de509b8590248fb35dfd72cd22f79bca10f70e
|
4
|
+
data.tar.gz: 9bf93d9ba2778da93003f937d4d6226e3b73d75e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35700f55fa91acd8a2c94455a6c69fff10922a035c6b709138403c2edcb4ffc107135459490799da86153bb2998424028081846bfd358840b152f973b12d2fb8
|
7
|
+
data.tar.gz: cac33f5fe2fab8be85e8a5c2a415b1de60621c10bf1f1de30a5c1245e07f3f50c5fd98f93a7f53fc56249b1076991d97c61d1b87ca1095bc28f7e7f8a976344d
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.621
|
data/lib/v20200309/client.rb
CHANGED
@@ -989,6 +989,30 @@ module TencentCloud
|
|
989
989
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
990
990
|
end
|
991
991
|
|
992
|
+
# 获取高防IP业务监控流量曲线
|
993
|
+
|
994
|
+
# @param request: Request instance for DescribeBizMonitorTrend.
|
995
|
+
# @type request: :class:`Tencentcloud::antiddos::V20200309::DescribeBizMonitorTrendRequest`
|
996
|
+
# @rtype: :class:`Tencentcloud::antiddos::V20200309::DescribeBizMonitorTrendResponse`
|
997
|
+
def DescribeBizMonitorTrend(request)
|
998
|
+
body = send_request('DescribeBizMonitorTrend', request.serialize)
|
999
|
+
response = JSON.parse(body)
|
1000
|
+
if response['Response'].key?('Error') == false
|
1001
|
+
model = DescribeBizMonitorTrendResponse.new
|
1002
|
+
model.deserialize(response['Response'])
|
1003
|
+
model
|
1004
|
+
else
|
1005
|
+
code = response['Response']['Error']['Code']
|
1006
|
+
message = response['Response']['Error']['Message']
|
1007
|
+
reqid = response['Response']['RequestId']
|
1008
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1009
|
+
end
|
1010
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1011
|
+
raise e
|
1012
|
+
rescue StandardError => e
|
1013
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1014
|
+
end
|
1015
|
+
|
992
1016
|
# 获取业务流量曲线
|
993
1017
|
|
994
1018
|
# @param request: Request instance for DescribeBizTrend.
|
data/lib/v20200309/models.rb
CHANGED
@@ -3183,6 +3183,71 @@ module TencentCloud
|
|
3183
3183
|
end
|
3184
3184
|
end
|
3185
3185
|
|
3186
|
+
# DescribeBizMonitorTrend请求参数结构体
|
3187
|
+
class DescribeBizMonitorTrendRequest < TencentCloud::Common::AbstractModel
|
3188
|
+
# @param Business: 大禹子产品代号(bgpip表示高防IP)
|
3189
|
+
# @type Business: String
|
3190
|
+
# @param StartTime: 统计开始时间。 例:“2020-09-22 00:00:00”
|
3191
|
+
# @type StartTime: String
|
3192
|
+
# @param EndTime: 统计结束时间。 例:“2020-09-22 00:00:00”
|
3193
|
+
# @type EndTime: String
|
3194
|
+
# @param Id: 资源实例ID
|
3195
|
+
# @type Id: String
|
3196
|
+
# @param MetricName: 统计纬度,可取值intraffic outtraffic inpkg outpkg
|
3197
|
+
# @type MetricName: String
|
3198
|
+
# @param Period: 时间粒度 60 300 3600 21600 86400
|
3199
|
+
# @type Period: Integer
|
3200
|
+
|
3201
|
+
attr_accessor :Business, :StartTime, :EndTime, :Id, :MetricName, :Period
|
3202
|
+
|
3203
|
+
def initialize(business=nil, starttime=nil, endtime=nil, id=nil, metricname=nil, period=nil)
|
3204
|
+
@Business = business
|
3205
|
+
@StartTime = starttime
|
3206
|
+
@EndTime = endtime
|
3207
|
+
@Id = id
|
3208
|
+
@MetricName = metricname
|
3209
|
+
@Period = period
|
3210
|
+
end
|
3211
|
+
|
3212
|
+
def deserialize(params)
|
3213
|
+
@Business = params['Business']
|
3214
|
+
@StartTime = params['StartTime']
|
3215
|
+
@EndTime = params['EndTime']
|
3216
|
+
@Id = params['Id']
|
3217
|
+
@MetricName = params['MetricName']
|
3218
|
+
@Period = params['Period']
|
3219
|
+
end
|
3220
|
+
end
|
3221
|
+
|
3222
|
+
# DescribeBizMonitorTrend返回参数结构体
|
3223
|
+
class DescribeBizMonitorTrendResponse < TencentCloud::Common::AbstractModel
|
3224
|
+
# @param DataList: 曲线图各个时间点的值
|
3225
|
+
# @type DataList: Array
|
3226
|
+
# @param MetricName: 统计纬度
|
3227
|
+
# @type MetricName: String
|
3228
|
+
# @param MaxData: 返回DataList中的最大值
|
3229
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3230
|
+
# @type MaxData: Integer
|
3231
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3232
|
+
# @type RequestId: String
|
3233
|
+
|
3234
|
+
attr_accessor :DataList, :MetricName, :MaxData, :RequestId
|
3235
|
+
|
3236
|
+
def initialize(datalist=nil, metricname=nil, maxdata=nil, requestid=nil)
|
3237
|
+
@DataList = datalist
|
3238
|
+
@MetricName = metricname
|
3239
|
+
@MaxData = maxdata
|
3240
|
+
@RequestId = requestid
|
3241
|
+
end
|
3242
|
+
|
3243
|
+
def deserialize(params)
|
3244
|
+
@DataList = params['DataList']
|
3245
|
+
@MetricName = params['MetricName']
|
3246
|
+
@MaxData = params['MaxData']
|
3247
|
+
@RequestId = params['RequestId']
|
3248
|
+
end
|
3249
|
+
end
|
3250
|
+
|
3186
3251
|
# DescribeBizTrend请求参数结构体
|
3187
3252
|
class DescribeBizTrendRequest < TencentCloud::Common::AbstractModel
|
3188
3253
|
# @param Statistics: 统计方式,可取值max, min, avg, sum, 如统计纬度是流量速率或包量速率,仅可取值max
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-antiddos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.621
|
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-07-
|
11
|
+
date: 2023-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|