tencentcloud-sdk-antiddos 3.0.476 → 3.0.477
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 +126 -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: 5572ddc8a24993d36bc6fe450598002dfc34f0c2
|
4
|
+
data.tar.gz: 364489a5050070362a8ad146ef9f6a1893690551
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0daa78699bfc6984fc12b3856bd8d70df94fe82813d7b7624cfeba93678de2d289833c04ead7f8f061786d6b770d454a3a4e3733ccb0c1d96f28dd54509f8ee4
|
7
|
+
data.tar.gz: 553d7c7c8dd43255b658d163b0f11be11687f784f2f0c96d639dde260949798b347b67bb45c81d2f23ff8e7a54614b921433b183714319c0de0936e7e02ccfab
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.477
|
data/lib/v20200309/client.rb
CHANGED
@@ -965,6 +965,30 @@ module TencentCloud
|
|
965
965
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
966
966
|
end
|
967
967
|
|
968
|
+
# 获取业务流量状态码统计列表
|
969
|
+
|
970
|
+
# @param request: Request instance for DescribeBizHttpStatus.
|
971
|
+
# @type request: :class:`Tencentcloud::antiddos::V20200309::DescribeBizHttpStatusRequest`
|
972
|
+
# @rtype: :class:`Tencentcloud::antiddos::V20200309::DescribeBizHttpStatusResponse`
|
973
|
+
def DescribeBizHttpStatus(request)
|
974
|
+
body = send_request('DescribeBizHttpStatus', request.serialize)
|
975
|
+
response = JSON.parse(body)
|
976
|
+
if response['Response'].key?('Error') == false
|
977
|
+
model = DescribeBizHttpStatusResponse.new
|
978
|
+
model.deserialize(response['Response'])
|
979
|
+
model
|
980
|
+
else
|
981
|
+
code = response['Response']['Error']['Code']
|
982
|
+
message = response['Response']['Error']['Message']
|
983
|
+
reqid = response['Response']['RequestId']
|
984
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
985
|
+
end
|
986
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
987
|
+
raise e
|
988
|
+
rescue StandardError => e
|
989
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
990
|
+
end
|
991
|
+
|
968
992
|
# 获取业务流量曲线
|
969
993
|
|
970
994
|
# @param request: Request instance for DescribeBizTrend.
|
data/lib/v20200309/models.rb
CHANGED
@@ -3051,6 +3051,80 @@ module TencentCloud
|
|
3051
3051
|
end
|
3052
3052
|
end
|
3053
3053
|
|
3054
|
+
# DescribeBizHttpStatus请求参数结构体
|
3055
|
+
class DescribeBizHttpStatusRequest < TencentCloud::Common::AbstractModel
|
3056
|
+
# @param Statistics: 统计方式,仅支持sum
|
3057
|
+
# @type Statistics: String
|
3058
|
+
# @param Business: 大禹子产品代号(bgpip表示高防IP)
|
3059
|
+
# @type Business: String
|
3060
|
+
# @param Period: 统计周期,可取值60,300,1800,3600, 21600,86400,单位秒
|
3061
|
+
# @type Period: Integer
|
3062
|
+
# @param StartTime: 统计开始时间。 如2020-02-01 12:04:12
|
3063
|
+
# @type StartTime: String
|
3064
|
+
# @param EndTime: 统计结束时间。如2020-02-03 18:03:23
|
3065
|
+
# @type EndTime: String
|
3066
|
+
# @param Id: 资源Id
|
3067
|
+
# @type Id: String
|
3068
|
+
# @param Domain: 特定域名查询
|
3069
|
+
# @type Domain: String
|
3070
|
+
# @param ProtoInfo: 协议及端口列表,协议可取值TCP, UDP, HTTP, HTTPS,仅统计纬度为连接数时有效
|
3071
|
+
# @type ProtoInfo: Array
|
3072
|
+
|
3073
|
+
attr_accessor :Statistics, :Business, :Period, :StartTime, :EndTime, :Id, :Domain, :ProtoInfo
|
3074
|
+
|
3075
|
+
def initialize(statistics=nil, business=nil, period=nil, starttime=nil, endtime=nil, id=nil, domain=nil, protoinfo=nil)
|
3076
|
+
@Statistics = statistics
|
3077
|
+
@Business = business
|
3078
|
+
@Period = period
|
3079
|
+
@StartTime = starttime
|
3080
|
+
@EndTime = endtime
|
3081
|
+
@Id = id
|
3082
|
+
@Domain = domain
|
3083
|
+
@ProtoInfo = protoinfo
|
3084
|
+
end
|
3085
|
+
|
3086
|
+
def deserialize(params)
|
3087
|
+
@Statistics = params['Statistics']
|
3088
|
+
@Business = params['Business']
|
3089
|
+
@Period = params['Period']
|
3090
|
+
@StartTime = params['StartTime']
|
3091
|
+
@EndTime = params['EndTime']
|
3092
|
+
@Id = params['Id']
|
3093
|
+
@Domain = params['Domain']
|
3094
|
+
unless params['ProtoInfo'].nil?
|
3095
|
+
@ProtoInfo = []
|
3096
|
+
params['ProtoInfo'].each do |i|
|
3097
|
+
protocolport_tmp = ProtocolPort.new
|
3098
|
+
protocolport_tmp.deserialize(i)
|
3099
|
+
@ProtoInfo << protocolport_tmp
|
3100
|
+
end
|
3101
|
+
end
|
3102
|
+
end
|
3103
|
+
end
|
3104
|
+
|
3105
|
+
# DescribeBizHttpStatus返回参数结构体
|
3106
|
+
class DescribeBizHttpStatusResponse < TencentCloud::Common::AbstractModel
|
3107
|
+
# @param HttpStatusMap: 业务流量http状态码统计数据
|
3108
|
+
# @type HttpStatusMap: :class:`Tencentcloud::Antiddos.v20200309.models.HttpStatusMap`
|
3109
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3110
|
+
# @type RequestId: String
|
3111
|
+
|
3112
|
+
attr_accessor :HttpStatusMap, :RequestId
|
3113
|
+
|
3114
|
+
def initialize(httpstatusmap=nil, requestid=nil)
|
3115
|
+
@HttpStatusMap = httpstatusmap
|
3116
|
+
@RequestId = requestid
|
3117
|
+
end
|
3118
|
+
|
3119
|
+
def deserialize(params)
|
3120
|
+
unless params['HttpStatusMap'].nil?
|
3121
|
+
@HttpStatusMap = HttpStatusMap.new
|
3122
|
+
@HttpStatusMap.deserialize(params['HttpStatusMap'])
|
3123
|
+
end
|
3124
|
+
@RequestId = params['RequestId']
|
3125
|
+
end
|
3126
|
+
end
|
3127
|
+
|
3054
3128
|
# DescribeBizTrend请求参数结构体
|
3055
3129
|
class DescribeBizTrendRequest < TencentCloud::Common::AbstractModel
|
3056
3130
|
# @param Statistics: 统计方式,可取值max, min, avg, sum, 如统计纬度是流量速率或包量速率,仅可取值max
|
@@ -5655,6 +5729,58 @@ module TencentCloud
|
|
5655
5729
|
end
|
5656
5730
|
end
|
5657
5731
|
|
5732
|
+
# 业务流量的http状态码聚合数据
|
5733
|
+
class HttpStatusMap < TencentCloud::Common::AbstractModel
|
5734
|
+
# @param SourceHttp2xx: http2xx回源状态码
|
5735
|
+
# @type SourceHttp2xx: Array
|
5736
|
+
# @param Http5xx: http5xx状态码
|
5737
|
+
# @type Http5xx: Array
|
5738
|
+
# @param SourceHttp5xx: http5xx回源状态码
|
5739
|
+
# @type SourceHttp5xx: Array
|
5740
|
+
# @param SourceHttp404: http404回源状态码
|
5741
|
+
# @type SourceHttp404: Array
|
5742
|
+
# @param Http4xx: http4xx状态码
|
5743
|
+
# @type Http4xx: Array
|
5744
|
+
# @param SourceHttp4xx: http4xx回源状态码
|
5745
|
+
# @type SourceHttp4xx: Array
|
5746
|
+
# @param Http2xx: http2xx状态码
|
5747
|
+
# @type Http2xx: Array
|
5748
|
+
# @param Http404: http404状态码
|
5749
|
+
# @type Http404: Array
|
5750
|
+
# @param SourceHttp3xx: http3xx回源状态码
|
5751
|
+
# @type SourceHttp3xx: Array
|
5752
|
+
# @param Http3xx: http3xx状态码
|
5753
|
+
# @type Http3xx: Array
|
5754
|
+
|
5755
|
+
attr_accessor :SourceHttp2xx, :Http5xx, :SourceHttp5xx, :SourceHttp404, :Http4xx, :SourceHttp4xx, :Http2xx, :Http404, :SourceHttp3xx, :Http3xx
|
5756
|
+
|
5757
|
+
def initialize(sourcehttp2xx=nil, http5xx=nil, sourcehttp5xx=nil, sourcehttp404=nil, http4xx=nil, sourcehttp4xx=nil, http2xx=nil, http404=nil, sourcehttp3xx=nil, http3xx=nil)
|
5758
|
+
@SourceHttp2xx = sourcehttp2xx
|
5759
|
+
@Http5xx = http5xx
|
5760
|
+
@SourceHttp5xx = sourcehttp5xx
|
5761
|
+
@SourceHttp404 = sourcehttp404
|
5762
|
+
@Http4xx = http4xx
|
5763
|
+
@SourceHttp4xx = sourcehttp4xx
|
5764
|
+
@Http2xx = http2xx
|
5765
|
+
@Http404 = http404
|
5766
|
+
@SourceHttp3xx = sourcehttp3xx
|
5767
|
+
@Http3xx = http3xx
|
5768
|
+
end
|
5769
|
+
|
5770
|
+
def deserialize(params)
|
5771
|
+
@SourceHttp2xx = params['SourceHttp2xx']
|
5772
|
+
@Http5xx = params['Http5xx']
|
5773
|
+
@SourceHttp5xx = params['SourceHttp5xx']
|
5774
|
+
@SourceHttp404 = params['SourceHttp404']
|
5775
|
+
@Http4xx = params['Http4xx']
|
5776
|
+
@SourceHttp4xx = params['SourceHttp4xx']
|
5777
|
+
@Http2xx = params['Http2xx']
|
5778
|
+
@Http404 = params['Http404']
|
5779
|
+
@SourceHttp3xx = params['SourceHttp3xx']
|
5780
|
+
@Http3xx = params['Http3xx']
|
5781
|
+
end
|
5782
|
+
end
|
5783
|
+
|
5658
5784
|
# 单IP告警阈值配置
|
5659
5785
|
class IPAlarmThresholdRelation < TencentCloud::Common::AbstractModel
|
5660
5786
|
# @param AlarmType: 告警阈值类型,取值[
|
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.477
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-12-
|
11
|
+
date: 2022-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|