tencentcloud-sdk-teo 3.0.494 → 3.0.496

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: ce074666e2bc74e9286c60ab73d77686e5476493
4
- data.tar.gz: 2ab2786a8835d3ed797456799193e8e7d8a19b2f
3
+ metadata.gz: d3460fa19f22d86e34b9499c7cb7176d49398ed5
4
+ data.tar.gz: 172c7234587ee52c6f65dad9cd1c6e6aa8c1b5bd
5
5
  SHA512:
6
- metadata.gz: 53d17e18a6a9b63e221909cf2f157c8f783de3f007ca7c33a33ad1c081e259f00f121d739af239f0e53c7fcbd891a5888f13ce5ef4d3f3aa4d02295546aa0aaf
7
- data.tar.gz: 28fb3d14e132cf93a7dad44e7e04cfde9cc911df28e172a313636927ed80a1e171e6682355b985d0274575c579548355fd3ae113df46000ee003102aefee1113
6
+ metadata.gz: 02e3be3be2aa4e3be767b1f1af6ba0c4ecedefb4366ff0366cbefda33c5341fb0ef36b56c90e9cbbcce0654f87d661047452ed991f38192fbeb8d83b1c2599e3
7
+ data.tar.gz: e6563e7af0cf6b499835f56bdc42546bf3c14a66af149035e297218bf245ebf60537eb8209eaf4c8ae8b8ee61cedb8120ac0ac4842fc01e578c575505a72fb1a
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.494
1
+ 3.0.496
@@ -1181,6 +1181,30 @@ module TencentCloud
1181
1181
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1182
1182
  end
1183
1183
 
1184
+ # 本接口(DescribeTimingL7SourceData)查询七层回源分析时序数据。
1185
+
1186
+ # @param request: Request instance for DescribeTimingL7SourceData.
1187
+ # @type request: :class:`Tencentcloud::teo::V20220901::DescribeTimingL7SourceDataRequest`
1188
+ # @rtype: :class:`Tencentcloud::teo::V20220901::DescribeTimingL7SourceDataResponse`
1189
+ def DescribeTimingL7SourceData(request)
1190
+ body = send_request('DescribeTimingL7SourceData', request.serialize)
1191
+ response = JSON.parse(body)
1192
+ if response['Response'].key?('Error') == false
1193
+ model = DescribeTimingL7SourceDataResponse.new
1194
+ model.deserialize(response['Response'])
1195
+ model
1196
+ else
1197
+ code = response['Response']['Error']['Code']
1198
+ message = response['Response']['Error']['Message']
1199
+ reqid = response['Response']['RequestId']
1200
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1201
+ end
1202
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1203
+ raise e
1204
+ rescue StandardError => e
1205
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1206
+ end
1207
+
1184
1208
  # 本接口(DescribeTopL7AnalysisData)用于查询七层流量前topN的数据。
1185
1209
 
1186
1210
  # @param request: Request instance for DescribeTopL7AnalysisData.
@@ -99,12 +99,16 @@ module TencentCloud
99
99
  # @type Switch: String
100
100
  # @param AclUserRules: 用户自定义规则。
101
101
  # @type AclUserRules: Array
102
+ # @param Customizes: 托管定制规则
103
+ # 注意:此字段可能返回 null,表示取不到有效值。
104
+ # @type Customizes: Array
102
105
 
103
- attr_accessor :Switch, :AclUserRules
106
+ attr_accessor :Switch, :AclUserRules, :Customizes
104
107
 
105
- def initialize(switch=nil, acluserrules=nil)
108
+ def initialize(switch=nil, acluserrules=nil, customizes=nil)
106
109
  @Switch = switch
107
110
  @AclUserRules = acluserrules
111
+ @Customizes = customizes
108
112
  end
109
113
 
110
114
  def deserialize(params)
@@ -117,6 +121,14 @@ module TencentCloud
117
121
  @AclUserRules << acluserrule_tmp
118
122
  end
119
123
  end
124
+ unless params['Customizes'].nil?
125
+ @Customizes = []
126
+ params['Customizes'].each do |i|
127
+ acluserrule_tmp = AclUserRule.new
128
+ acluserrule_tmp.deserialize(i)
129
+ @Customizes << acluserrule_tmp
130
+ end
131
+ end
120
132
  end
121
133
  end
122
134
 
@@ -4073,6 +4085,101 @@ module TencentCloud
4073
4085
  end
4074
4086
  end
4075
4087
 
4088
+ # DescribeTimingL7SourceData请求参数结构体
4089
+ class DescribeTimingL7SourceDataRequest < TencentCloud::Common::AbstractModel
4090
+ # @param StartTime: 开始时间。
4091
+ # @type StartTime: String
4092
+ # @param EndTime: 结束时间。
4093
+ # @type EndTime: String
4094
+ # @param MetricNames: 指标列表,取值有:
4095
+ # <li>l7Flow_outFlux_hy: Edgeone请求流量;</li>
4096
+ # <li>l7Flow_outBandwidth_hy: Edgeone请求带宽;</li>
4097
+ # <li>l7Flow_inFlux_hy: 源站响应流量;</li>
4098
+ # <li>l7Flow_inBandwidth_hy: 源站响应带宽;</li>
4099
+ # <li>l7Flow_request_hy: 回源请求数;</li>
4100
+ # @type MetricNames: Array
4101
+ # @param ZoneIds: 站点集合,不填默认选择全部站点。
4102
+ # @type ZoneIds: Array
4103
+ # @param Interval: 查询时间粒度,取值有:
4104
+ # <li>min: 1分钟;</li>
4105
+ # <li>5min: 5分钟;</li>
4106
+ # <li>hour: 1小时;</li>
4107
+ # <li>day: 1天。</li>不填将根据开始时间跟结束时间的间距自动推算粒度,具体为:一小时范围内以min粒度查询,两天范围内以5min粒度查询,七天范围内以hour粒度查询,超过七天以day粒度查询。
4108
+ # @type Interval: String
4109
+ # @param Filters: 过滤条件,详细的过滤条件如下:
4110
+ # <li>domain<br>   按照【<strong>回源Host</strong>】进行过滤。<br>   类型:String<br>   必选:否</li>
4111
+ # <li>origin<br>   按照【<strong>源站</strong>】进行过滤。<br>   类型:String<br>   必选:否</li>
4112
+ # <li>originGroup<br>   按照【<strong>源站组</strong>】进行过滤,源站组形如:origin-xxxxx。<br>   类型:String<br>   必选:否</li>
4113
+ # <li>flowType<br>   按照【<strong>源站响应类型</strong>】进行过滤,优先级高于 MetricNames.N 参数。<br>   类型:String<br>   必选:否<br>   可选项:<br>   inFlow:源站响应流量,对应MetricNames中l7Flow_inFlux_hy、l7Flow_inBandwidth_hy、l7Flow_request_hy三个指标;<br>   outFlow:EdgeOne请求流量,对应MetricNames中l7Flow_outFlux_hy、l7Flow_outBandwidth_hy、l7Flow_request_hy三个指标。</li>
4114
+ # @type Filters: Array
4115
+ # @param Area: 数据归属地区,取值有:
4116
+ # <li>overseas:全球(除中国大陆地区)数据;</li>
4117
+ # <li>mainland:中国大陆地区数据;</li>
4118
+ # <li>global:全球数据。</li>不填默认取值为global。
4119
+ # @type Area: String
4120
+
4121
+ attr_accessor :StartTime, :EndTime, :MetricNames, :ZoneIds, :Interval, :Filters, :Area
4122
+
4123
+ def initialize(starttime=nil, endtime=nil, metricnames=nil, zoneids=nil, interval=nil, filters=nil, area=nil)
4124
+ @StartTime = starttime
4125
+ @EndTime = endtime
4126
+ @MetricNames = metricnames
4127
+ @ZoneIds = zoneids
4128
+ @Interval = interval
4129
+ @Filters = filters
4130
+ @Area = area
4131
+ end
4132
+
4133
+ def deserialize(params)
4134
+ @StartTime = params['StartTime']
4135
+ @EndTime = params['EndTime']
4136
+ @MetricNames = params['MetricNames']
4137
+ @ZoneIds = params['ZoneIds']
4138
+ @Interval = params['Interval']
4139
+ unless params['Filters'].nil?
4140
+ @Filters = []
4141
+ params['Filters'].each do |i|
4142
+ querycondition_tmp = QueryCondition.new
4143
+ querycondition_tmp.deserialize(i)
4144
+ @Filters << querycondition_tmp
4145
+ end
4146
+ end
4147
+ @Area = params['Area']
4148
+ end
4149
+ end
4150
+
4151
+ # DescribeTimingL7SourceData返回参数结构体
4152
+ class DescribeTimingL7SourceDataResponse < TencentCloud::Common::AbstractModel
4153
+ # @param TotalCount: 查询结果的总条数。
4154
+ # @type TotalCount: Integer
4155
+ # @param TimingDataRecords: 时序流量数据列表。
4156
+ # 注意:此字段可能返回 null,表示取不到有效值。
4157
+ # @type TimingDataRecords: Array
4158
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4159
+ # @type RequestId: String
4160
+
4161
+ attr_accessor :TotalCount, :TimingDataRecords, :RequestId
4162
+
4163
+ def initialize(totalcount=nil, timingdatarecords=nil, requestid=nil)
4164
+ @TotalCount = totalcount
4165
+ @TimingDataRecords = timingdatarecords
4166
+ @RequestId = requestid
4167
+ end
4168
+
4169
+ def deserialize(params)
4170
+ @TotalCount = params['TotalCount']
4171
+ unless params['TimingDataRecords'].nil?
4172
+ @TimingDataRecords = []
4173
+ params['TimingDataRecords'].each do |i|
4174
+ timingdatarecord_tmp = TimingDataRecord.new
4175
+ timingdatarecord_tmp.deserialize(i)
4176
+ @TimingDataRecords << timingdatarecord_tmp
4177
+ end
4178
+ end
4179
+ @RequestId = params['RequestId']
4180
+ end
4181
+ end
4182
+
4076
4183
  # DescribeTopL7AnalysisData请求参数结构体
4077
4184
  class DescribeTopL7AnalysisDataRequest < TencentCloud::Common::AbstractModel
4078
4185
  # @param StartTime: 开始时间。
@@ -5774,6 +5881,30 @@ module TencentCloud
5774
5881
  end
5775
5882
  end
5776
5883
 
5884
+ # 慢速攻击的首段包配置。
5885
+ class FirstPartConfig < TencentCloud::Common::AbstractModel
5886
+ # @param Switch: 开关,取值有:
5887
+ # <li>on:开启;</li>
5888
+ # <li>off:关闭。</li>
5889
+ # 注意:此字段可能返回 null,表示取不到有效值。
5890
+ # @type Switch: String
5891
+ # @param StatTime: 首段包的统计时长,单位是秒,即期望首段包的统计时长是多少,默认5秒。
5892
+ # 注意:此字段可能返回 null,表示取不到有效值。
5893
+ # @type StatTime: Integer
5894
+
5895
+ attr_accessor :Switch, :StatTime
5896
+
5897
+ def initialize(switch=nil, stattime=nil)
5898
+ @Switch = switch
5899
+ @StatTime = stattime
5900
+ end
5901
+
5902
+ def deserialize(params)
5903
+ @Switch = params['Switch']
5904
+ @StatTime = params['StatTime']
5905
+ end
5906
+ end
5907
+
5777
5908
  # 缓存遵循源站配置
5778
5909
  class FollowOrigin < TencentCloud::Common::AbstractModel
5779
5910
  # @param Switch: 遵循源站配置开关,取值有:
@@ -7928,7 +8059,7 @@ module TencentCloud
7928
8059
  end
7929
8060
  end
7930
8061
 
7931
- # RateLimit配置
8062
+ # 速率限制规则
7932
8063
  class RateLimitConfig < TencentCloud::Common::AbstractModel
7933
8064
  # @param Switch: 开关,取值有:
7934
8065
  # <li>on:开启;</li>
@@ -7942,14 +8073,18 @@ module TencentCloud
7942
8073
  # @param RateLimitIntelligence: 智能客户端过滤。如果为null,默认使用历史配置。
7943
8074
  # 注意:此字段可能返回 null,表示取不到有效值。
7944
8075
  # @type RateLimitIntelligence: :class:`Tencentcloud::Teo.v20220901.models.RateLimitIntelligence`
8076
+ # @param RateLimitCustomizes: 速率限制-托管定制规则。如果为null,默认使用历史配置。
8077
+ # 注意:此字段可能返回 null,表示取不到有效值。
8078
+ # @type RateLimitCustomizes: Array
7945
8079
 
7946
- attr_accessor :Switch, :RateLimitUserRules, :RateLimitTemplate, :RateLimitIntelligence
8080
+ attr_accessor :Switch, :RateLimitUserRules, :RateLimitTemplate, :RateLimitIntelligence, :RateLimitCustomizes
7947
8081
 
7948
- def initialize(switch=nil, ratelimituserrules=nil, ratelimittemplate=nil, ratelimitintelligence=nil)
8082
+ def initialize(switch=nil, ratelimituserrules=nil, ratelimittemplate=nil, ratelimitintelligence=nil, ratelimitcustomizes=nil)
7949
8083
  @Switch = switch
7950
8084
  @RateLimitUserRules = ratelimituserrules
7951
8085
  @RateLimitTemplate = ratelimittemplate
7952
8086
  @RateLimitIntelligence = ratelimitintelligence
8087
+ @RateLimitCustomizes = ratelimitcustomizes
7953
8088
  end
7954
8089
 
7955
8090
  def deserialize(params)
@@ -7970,6 +8105,14 @@ module TencentCloud
7970
8105
  @RateLimitIntelligence = RateLimitIntelligence.new
7971
8106
  @RateLimitIntelligence.deserialize(params['RateLimitIntelligence'])
7972
8107
  end
8108
+ unless params['RateLimitCustomizes'].nil?
8109
+ @RateLimitCustomizes = []
8110
+ params['RateLimitCustomizes'].each do |i|
8111
+ ratelimituserrule_tmp = RateLimitUserRule.new
8112
+ ratelimituserrule_tmp.deserialize(i)
8113
+ @RateLimitCustomizes << ratelimituserrule_tmp
8114
+ end
8115
+ end
7973
8116
  end
7974
8117
  end
7975
8118
 
@@ -9050,10 +9193,13 @@ module TencentCloud
9050
9193
  # @param TemplateConfig: 模板配置。此处仅出参数使用。
9051
9194
  # 注意:此字段可能返回 null,表示取不到有效值。
9052
9195
  # @type TemplateConfig: :class:`Tencentcloud::Teo.v20220901.models.TemplateConfig`
9196
+ # @param SlowPostConfig: 慢速攻击配置。如果为null,默认使用历史配置。
9197
+ # 注意:此字段可能返回 null,表示取不到有效值。
9198
+ # @type SlowPostConfig: :class:`Tencentcloud::Teo.v20220901.models.SlowPostConfig`
9053
9199
 
9054
- attr_accessor :WafConfig, :RateLimitConfig, :AclConfig, :BotConfig, :SwitchConfig, :IpTableConfig, :ExceptConfig, :DropPageConfig, :TemplateConfig
9200
+ attr_accessor :WafConfig, :RateLimitConfig, :AclConfig, :BotConfig, :SwitchConfig, :IpTableConfig, :ExceptConfig, :DropPageConfig, :TemplateConfig, :SlowPostConfig
9055
9201
 
9056
- def initialize(wafconfig=nil, ratelimitconfig=nil, aclconfig=nil, botconfig=nil, switchconfig=nil, iptableconfig=nil, exceptconfig=nil, droppageconfig=nil, templateconfig=nil)
9202
+ def initialize(wafconfig=nil, ratelimitconfig=nil, aclconfig=nil, botconfig=nil, switchconfig=nil, iptableconfig=nil, exceptconfig=nil, droppageconfig=nil, templateconfig=nil, slowpostconfig=nil)
9057
9203
  @WafConfig = wafconfig
9058
9204
  @RateLimitConfig = ratelimitconfig
9059
9205
  @AclConfig = aclconfig
@@ -9063,6 +9209,7 @@ module TencentCloud
9063
9209
  @ExceptConfig = exceptconfig
9064
9210
  @DropPageConfig = droppageconfig
9065
9211
  @TemplateConfig = templateconfig
9212
+ @SlowPostConfig = slowpostconfig
9066
9213
  end
9067
9214
 
9068
9215
  def deserialize(params)
@@ -9102,6 +9249,10 @@ module TencentCloud
9102
9249
  @TemplateConfig = TemplateConfig.new
9103
9250
  @TemplateConfig.deserialize(params['TemplateConfig'])
9104
9251
  end
9252
+ unless params['SlowPostConfig'].nil?
9253
+ @SlowPostConfig = SlowPostConfig.new
9254
+ @SlowPostConfig.deserialize(params['SlowPostConfig'])
9255
+ end
9105
9256
  end
9106
9257
  end
9107
9258
 
@@ -9275,6 +9426,80 @@ module TencentCloud
9275
9426
  end
9276
9427
  end
9277
9428
 
9429
+ # 慢速攻击配置。
9430
+ class SlowPostConfig < TencentCloud::Common::AbstractModel
9431
+ # @param Switch: 开关,取值有:
9432
+ # <li>on:开启;</li>
9433
+ # <li>off:关闭。</li>
9434
+ # @type Switch: String
9435
+ # @param FirstPartConfig: 首包配置。
9436
+ # 注意:此字段可能返回 null,表示取不到有效值。
9437
+ # @type FirstPartConfig: :class:`Tencentcloud::Teo.v20220901.models.FirstPartConfig`
9438
+ # @param SlowRateConfig: 基础配置。
9439
+ # 注意:此字段可能返回 null,表示取不到有效值。
9440
+ # @type SlowRateConfig: :class:`Tencentcloud::Teo.v20220901.models.SlowRateConfig`
9441
+ # @param Action: 慢速攻击的处置动作,取值有:
9442
+ # <li>monitor:观察;</li>
9443
+ # <li>drop:拦截。</li>
9444
+ # 注意:此字段可能返回 null,表示取不到有效值。
9445
+ # @type Action: String
9446
+ # @param RuleId: 本规则的Id。
9447
+ # 注意:此字段可能返回 null,表示取不到有效值。
9448
+ # @type RuleId: Integer
9449
+
9450
+ attr_accessor :Switch, :FirstPartConfig, :SlowRateConfig, :Action, :RuleId
9451
+
9452
+ def initialize(switch=nil, firstpartconfig=nil, slowrateconfig=nil, action=nil, ruleid=nil)
9453
+ @Switch = switch
9454
+ @FirstPartConfig = firstpartconfig
9455
+ @SlowRateConfig = slowrateconfig
9456
+ @Action = action
9457
+ @RuleId = ruleid
9458
+ end
9459
+
9460
+ def deserialize(params)
9461
+ @Switch = params['Switch']
9462
+ unless params['FirstPartConfig'].nil?
9463
+ @FirstPartConfig = FirstPartConfig.new
9464
+ @FirstPartConfig.deserialize(params['FirstPartConfig'])
9465
+ end
9466
+ unless params['SlowRateConfig'].nil?
9467
+ @SlowRateConfig = SlowRateConfig.new
9468
+ @SlowRateConfig.deserialize(params['SlowRateConfig'])
9469
+ end
9470
+ @Action = params['Action']
9471
+ @RuleId = params['RuleId']
9472
+ end
9473
+ end
9474
+
9475
+ # 慢速攻击的基础配置。
9476
+ class SlowRateConfig < TencentCloud::Common::AbstractModel
9477
+ # @param Switch: 开关,取值有:
9478
+ # <li>on:开启;</li>
9479
+ # <li>off:关闭。</li>
9480
+ # @type Switch: String
9481
+ # @param Interval: 统计的间隔,单位是秒,即在首段包传输结束后,将数据传输轴按照本参数切分,每个分片独立计算慢速攻击。
9482
+ # 注意:此字段可能返回 null,表示取不到有效值。
9483
+ # @type Interval: Integer
9484
+ # @param Threshold: 统计时应用的速率阈值,单位是bps,即如果本分片中的传输速率没达到本参数的值,则判定为慢速攻击,应用慢速攻击的处置方式。
9485
+ # 注意:此字段可能返回 null,表示取不到有效值。
9486
+ # @type Threshold: Integer
9487
+
9488
+ attr_accessor :Switch, :Interval, :Threshold
9489
+
9490
+ def initialize(switch=nil, interval=nil, threshold=nil)
9491
+ @Switch = switch
9492
+ @Interval = interval
9493
+ @Threshold = threshold
9494
+ end
9495
+
9496
+ def deserialize(params)
9497
+ @Switch = params['Switch']
9498
+ @Interval = params['Interval']
9499
+ @Threshold = params['Threshold']
9500
+ end
9501
+ end
9502
+
9278
9503
  # 智能加速配置
9279
9504
  class SmartRouting < TencentCloud::Common::AbstractModel
9280
9505
  # @param Switch: 智能加速配置开关,取值有:
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.494
4
+ version: 3.0.496
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-16 00:00:00.000000000 Z
11
+ date: 2023-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common