tencentcloud-sdk-teo 3.0.535 → 3.0.536
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 +205 -11
- 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: f25f40a48566b7629669d4437c0516cb0c9af79a
|
4
|
+
data.tar.gz: 7c6d253f8a56be4abd6ff80f3d546c05597bc318
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc82395c1009bc6f37f5da5753e6c56def3332048126d7af0a7f7f22ae023bed227ccd95a4a1e0423ca43ab674988e2b633091dab9a58ef381ee1acacde6a7fc
|
7
|
+
data.tar.gz: 008ae517011be5e697ac7922a3401360608dab501cc3c2a07baf55f919cbb4a94dd29134b7d14b4955d8b5f64ce9b4b7314e88f05af945afc9434fedac0810f7
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.536
|
data/lib/v20220901/client.rb
CHANGED
@@ -749,6 +749,30 @@ module TencentCloud
|
|
749
749
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
750
750
|
end
|
751
751
|
|
752
|
+
# 本接口(DescribeDDoSAttackEvent)用于查询DDoS攻击事件列表。
|
753
|
+
|
754
|
+
# @param request: Request instance for DescribeDDoSAttackEvent.
|
755
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DescribeDDoSAttackEventRequest`
|
756
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DescribeDDoSAttackEventResponse`
|
757
|
+
def DescribeDDoSAttackEvent(request)
|
758
|
+
body = send_request('DescribeDDoSAttackEvent', request.serialize)
|
759
|
+
response = JSON.parse(body)
|
760
|
+
if response['Response'].key?('Error') == false
|
761
|
+
model = DescribeDDoSAttackEventResponse.new
|
762
|
+
model.deserialize(response['Response'])
|
763
|
+
model
|
764
|
+
else
|
765
|
+
code = response['Response']['Error']['Code']
|
766
|
+
message = response['Response']['Error']['Message']
|
767
|
+
reqid = response['Response']['RequestId']
|
768
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
769
|
+
end
|
770
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
771
|
+
raise e
|
772
|
+
rescue StandardError => e
|
773
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
774
|
+
end
|
775
|
+
|
752
776
|
# 本接口(DescribeDDoSAttackTopData)用于查询DDoS攻击Top数据。
|
753
777
|
|
754
778
|
# @param request: Request instance for DescribeDDoSAttackTopData.
|
data/lib/v20220901/models.rb
CHANGED
@@ -2140,6 +2140,99 @@ module TencentCloud
|
|
2140
2140
|
end
|
2141
2141
|
end
|
2142
2142
|
|
2143
|
+
# DDoS攻击事件对象
|
2144
|
+
class DDoSAttackEvent < TencentCloud::Common::AbstractModel
|
2145
|
+
# @param EventId: 事件ID。
|
2146
|
+
# @type EventId: String
|
2147
|
+
# @param AttackType: 攻击类型(对应交互事件名称)。
|
2148
|
+
# @type AttackType: String
|
2149
|
+
# @param AttackStatus: 攻击状态。
|
2150
|
+
# @type AttackStatus: Integer
|
2151
|
+
# @param AttackMaxBandWidth: 攻击最大带宽。
|
2152
|
+
# @type AttackMaxBandWidth: Integer
|
2153
|
+
# @param AttackPacketMaxRate: 攻击包速率峰值。
|
2154
|
+
# @type AttackPacketMaxRate: Integer
|
2155
|
+
# @param AttackStartTime: 攻击开始时间,单位为s。
|
2156
|
+
# @type AttackStartTime: Integer
|
2157
|
+
# @param AttackEndTime: 攻击结束时间,单位为s。
|
2158
|
+
# @type AttackEndTime: Integer
|
2159
|
+
# @param PolicyId: DDoS策略组ID。
|
2160
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2161
|
+
# @type PolicyId: Integer
|
2162
|
+
# @param ZoneId: 站点ID。
|
2163
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2164
|
+
# @type ZoneId: String
|
2165
|
+
# @param Area: 攻击事件所属地区,取值有:
|
2166
|
+
# <li>overseas:全球(除中国大陆地区)数据;</li>
|
2167
|
+
# <li>mainland:中国大陆地区数据。</li>
|
2168
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2169
|
+
# @type Area: String
|
2170
|
+
# @param DDoSBlockData: 封禁解封信息。
|
2171
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2172
|
+
# @type DDoSBlockData: Array
|
2173
|
+
|
2174
|
+
attr_accessor :EventId, :AttackType, :AttackStatus, :AttackMaxBandWidth, :AttackPacketMaxRate, :AttackStartTime, :AttackEndTime, :PolicyId, :ZoneId, :Area, :DDoSBlockData
|
2175
|
+
|
2176
|
+
def initialize(eventid=nil, attacktype=nil, attackstatus=nil, attackmaxbandwidth=nil, attackpacketmaxrate=nil, attackstarttime=nil, attackendtime=nil, policyid=nil, zoneid=nil, area=nil, ddosblockdata=nil)
|
2177
|
+
@EventId = eventid
|
2178
|
+
@AttackType = attacktype
|
2179
|
+
@AttackStatus = attackstatus
|
2180
|
+
@AttackMaxBandWidth = attackmaxbandwidth
|
2181
|
+
@AttackPacketMaxRate = attackpacketmaxrate
|
2182
|
+
@AttackStartTime = attackstarttime
|
2183
|
+
@AttackEndTime = attackendtime
|
2184
|
+
@PolicyId = policyid
|
2185
|
+
@ZoneId = zoneid
|
2186
|
+
@Area = area
|
2187
|
+
@DDoSBlockData = ddosblockdata
|
2188
|
+
end
|
2189
|
+
|
2190
|
+
def deserialize(params)
|
2191
|
+
@EventId = params['EventId']
|
2192
|
+
@AttackType = params['AttackType']
|
2193
|
+
@AttackStatus = params['AttackStatus']
|
2194
|
+
@AttackMaxBandWidth = params['AttackMaxBandWidth']
|
2195
|
+
@AttackPacketMaxRate = params['AttackPacketMaxRate']
|
2196
|
+
@AttackStartTime = params['AttackStartTime']
|
2197
|
+
@AttackEndTime = params['AttackEndTime']
|
2198
|
+
@PolicyId = params['PolicyId']
|
2199
|
+
@ZoneId = params['ZoneId']
|
2200
|
+
@Area = params['Area']
|
2201
|
+
unless params['DDoSBlockData'].nil?
|
2202
|
+
@DDoSBlockData = []
|
2203
|
+
params['DDoSBlockData'].each do |i|
|
2204
|
+
ddosblockdata_tmp = DDoSBlockData.new
|
2205
|
+
ddosblockdata_tmp.deserialize(i)
|
2206
|
+
@DDoSBlockData << ddosblockdata_tmp
|
2207
|
+
end
|
2208
|
+
end
|
2209
|
+
end
|
2210
|
+
end
|
2211
|
+
|
2212
|
+
# DDoS封禁解封信息
|
2213
|
+
class DDoSBlockData < TencentCloud::Common::AbstractModel
|
2214
|
+
# @param StartTime: 开始时间,采用unix时间戳。
|
2215
|
+
# @type StartTime: Integer
|
2216
|
+
# @param EndTime: 结束时间,采用unix时间戳, 为0表示还处于封禁中。
|
2217
|
+
# @type EndTime: Integer
|
2218
|
+
# @param BlockArea: 封禁受影响区域。
|
2219
|
+
# @type BlockArea: String
|
2220
|
+
|
2221
|
+
attr_accessor :StartTime, :EndTime, :BlockArea
|
2222
|
+
|
2223
|
+
def initialize(starttime=nil, endtime=nil, blockarea=nil)
|
2224
|
+
@StartTime = starttime
|
2225
|
+
@EndTime = endtime
|
2226
|
+
@BlockArea = blockarea
|
2227
|
+
end
|
2228
|
+
|
2229
|
+
def deserialize(params)
|
2230
|
+
@StartTime = params['StartTime']
|
2231
|
+
@EndTime = params['EndTime']
|
2232
|
+
@BlockArea = params['BlockArea']
|
2233
|
+
end
|
2234
|
+
end
|
2235
|
+
|
2143
2236
|
# https 服务端证书配置
|
2144
2237
|
class DefaultServerCertInfo < TencentCloud::Common::AbstractModel
|
2145
2238
|
# @param CertId: 服务器证书 ID。
|
@@ -3001,6 +3094,97 @@ module TencentCloud
|
|
3001
3094
|
end
|
3002
3095
|
end
|
3003
3096
|
|
3097
|
+
# DescribeDDoSAttackEvent请求参数结构体
|
3098
|
+
class DescribeDDoSAttackEventRequest < TencentCloud::Common::AbstractModel
|
3099
|
+
# @param StartTime: 开始时间。
|
3100
|
+
# @type StartTime: String
|
3101
|
+
# @param EndTime: 结束时间。
|
3102
|
+
# @type EndTime: String
|
3103
|
+
# @param PolicyIds: ddos策略组集合,不填默认选择全部策略。
|
3104
|
+
# @type PolicyIds: Array
|
3105
|
+
# @param ZoneIds: 站点集合,此参数必填,不填默认查询为空。
|
3106
|
+
# @type ZoneIds: Array
|
3107
|
+
# @param Limit: 分页查询的限制数目,默认值为20,最大查询条目为1000。
|
3108
|
+
# @type Limit: Integer
|
3109
|
+
# @param Offset: 分页的偏移量,默认值为0。
|
3110
|
+
# @type Offset: Integer
|
3111
|
+
# @param ShowDetail: 是否展示详细信息。
|
3112
|
+
# @type ShowDetail: Boolean
|
3113
|
+
# @param Area: 数据归属地区,取值有:
|
3114
|
+
# <li>overseas:全球(除中国大陆地区)数据;</li>
|
3115
|
+
# <li>mainland:中国大陆地区数据;</li>
|
3116
|
+
# <li>global:全球数据;</li>不填默认取值为global。
|
3117
|
+
# @type Area: String
|
3118
|
+
# @param OrderBy: 排序字段,取值有:
|
3119
|
+
# <li>MaxBandWidth:带宽峰值;</li>
|
3120
|
+
# <li>AttackStartTime:攻击开始时间。</li>不填默认值为:AttackStartTime。
|
3121
|
+
# @type OrderBy: String
|
3122
|
+
# @param OrderType: 排序方式,取值有:
|
3123
|
+
# <li>asc:升序方式;</li>
|
3124
|
+
# <li>desc:降序方式。</li>不填默认值为:desc。
|
3125
|
+
# @type OrderType: String
|
3126
|
+
|
3127
|
+
attr_accessor :StartTime, :EndTime, :PolicyIds, :ZoneIds, :Limit, :Offset, :ShowDetail, :Area, :OrderBy, :OrderType
|
3128
|
+
|
3129
|
+
def initialize(starttime=nil, endtime=nil, policyids=nil, zoneids=nil, limit=nil, offset=nil, showdetail=nil, area=nil, orderby=nil, ordertype=nil)
|
3130
|
+
@StartTime = starttime
|
3131
|
+
@EndTime = endtime
|
3132
|
+
@PolicyIds = policyids
|
3133
|
+
@ZoneIds = zoneids
|
3134
|
+
@Limit = limit
|
3135
|
+
@Offset = offset
|
3136
|
+
@ShowDetail = showdetail
|
3137
|
+
@Area = area
|
3138
|
+
@OrderBy = orderby
|
3139
|
+
@OrderType = ordertype
|
3140
|
+
end
|
3141
|
+
|
3142
|
+
def deserialize(params)
|
3143
|
+
@StartTime = params['StartTime']
|
3144
|
+
@EndTime = params['EndTime']
|
3145
|
+
@PolicyIds = params['PolicyIds']
|
3146
|
+
@ZoneIds = params['ZoneIds']
|
3147
|
+
@Limit = params['Limit']
|
3148
|
+
@Offset = params['Offset']
|
3149
|
+
@ShowDetail = params['ShowDetail']
|
3150
|
+
@Area = params['Area']
|
3151
|
+
@OrderBy = params['OrderBy']
|
3152
|
+
@OrderType = params['OrderType']
|
3153
|
+
end
|
3154
|
+
end
|
3155
|
+
|
3156
|
+
# DescribeDDoSAttackEvent返回参数结构体
|
3157
|
+
class DescribeDDoSAttackEventResponse < TencentCloud::Common::AbstractModel
|
3158
|
+
# @param Data: DDOS攻击事件数据列表。
|
3159
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3160
|
+
# @type Data: Array
|
3161
|
+
# @param TotalCount: 查询结果的总条数。
|
3162
|
+
# @type TotalCount: Integer
|
3163
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3164
|
+
# @type RequestId: String
|
3165
|
+
|
3166
|
+
attr_accessor :Data, :TotalCount, :RequestId
|
3167
|
+
|
3168
|
+
def initialize(data=nil, totalcount=nil, requestid=nil)
|
3169
|
+
@Data = data
|
3170
|
+
@TotalCount = totalcount
|
3171
|
+
@RequestId = requestid
|
3172
|
+
end
|
3173
|
+
|
3174
|
+
def deserialize(params)
|
3175
|
+
unless params['Data'].nil?
|
3176
|
+
@Data = []
|
3177
|
+
params['Data'].each do |i|
|
3178
|
+
ddosattackevent_tmp = DDoSAttackEvent.new
|
3179
|
+
ddosattackevent_tmp.deserialize(i)
|
3180
|
+
@Data << ddosattackevent_tmp
|
3181
|
+
end
|
3182
|
+
end
|
3183
|
+
@TotalCount = params['TotalCount']
|
3184
|
+
@RequestId = params['RequestId']
|
3185
|
+
end
|
3186
|
+
end
|
3187
|
+
|
3004
3188
|
# DescribeDDoSAttackTopData请求参数结构体
|
3005
3189
|
class DescribeDDoSAttackTopDataRequest < TencentCloud::Common::AbstractModel
|
3006
3190
|
# @param StartTime: 开始时间。
|
@@ -4567,18 +4751,28 @@ module TencentCloud
|
|
4567
4751
|
# @param EndTime: 结束时间。
|
4568
4752
|
# @type EndTime: String
|
4569
4753
|
# @param MetricName: 查询的指标,取值有:
|
4570
|
-
# <li> l7Flow_outFlux_country
|
4571
|
-
# <li> l7Flow_outFlux_statusCode
|
4572
|
-
# <li> l7Flow_outFlux_domain
|
4573
|
-
# <li> l7Flow_outFlux_url
|
4574
|
-
# <li> l7Flow_outFlux_resourceType
|
4575
|
-
# <li> l7Flow_outFlux_sip
|
4576
|
-
# <li> l7Flow_outFlux_referers
|
4577
|
-
# <li> l7Flow_outFlux_ua_device
|
4578
|
-
# <li> l7Flow_outFlux_ua_browser
|
4579
|
-
# <li> l7Flow_outFlux_us_os
|
4754
|
+
# <li> l7Flow_outFlux_country:按国家维度统计流量指标;</li>
|
4755
|
+
# <li> l7Flow_outFlux_statusCode:按状态码维度统计流量指标;</li>
|
4756
|
+
# <li> l7Flow_outFlux_domain:按域名维度统计流量指标;</li>
|
4757
|
+
# <li> l7Flow_outFlux_url:按URL维度统计流量指标; </li>
|
4758
|
+
# <li> l7Flow_outFlux_resourceType:按资源类型维度统计流量指标;</li>
|
4759
|
+
# <li> l7Flow_outFlux_sip:按客户端的源IP维度统计流量指标;</li>
|
4760
|
+
# <li> l7Flow_outFlux_referers:按refer信息维度统计流量指标;</li>
|
4761
|
+
# <li> l7Flow_outFlux_ua_device:按设备类型维度统计流量指标; </li>
|
4762
|
+
# <li> l7Flow_outFlux_ua_browser:按浏览器类型维度统计流量指标;</li>
|
4763
|
+
# <li> l7Flow_outFlux_us_os:按操作系统类型维度统计流量指标;</li>
|
4764
|
+
# <li> l7Flow_request_country:按国家维度统计请求数指标;</li>
|
4765
|
+
# <li> l7Flow_request_statusCode:按状态码维度统计请求数指标;</li>
|
4766
|
+
# <li> l7Flow_request_domain:按域名维度统计请求数指标;</li>
|
4767
|
+
# <li> l7Flow_request_url:按URL维度统计请求数指标; </li>
|
4768
|
+
# <li> l7Flow_request_resourceType:按资源类型维度统计请求数指标;</li>
|
4769
|
+
# <li> l7Flow_request_sip:按客户端的源IP维度统计请求数指标;</li>
|
4770
|
+
# <li> l7Flow_request_refere请求的rs:按refer信息维度统计请求数指标;</li>
|
4771
|
+
# <li> l7Flow_request_ua_device:按设备类型维度统计请求数指标; </li>
|
4772
|
+
# <li> l7Flow_request_ua_browser:按浏览器类型维度统计请求数指标;</li>
|
4773
|
+
# <li> l7Flow_request_us_os:按操作系统类型维度统计请求数指标。</li>
|
4580
4774
|
# @type MetricName: String
|
4581
|
-
# @param ZoneIds:
|
4775
|
+
# @param ZoneIds: 站点集合,此参数必填,不填默认查询为空。
|
4582
4776
|
# @type ZoneIds: Array
|
4583
4777
|
# @param Limit: 查询前多少个数据,最大值为1000,不填默认默认为: 10, 表示查询前top10的数据。
|
4584
4778
|
# @type Limit: Integer
|
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.536
|
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-03-
|
11
|
+
date: 2023-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|