tencentcloud-sdk-waf 3.0.623 → 3.0.624

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: d0ba75f207d36026821a3a8b80f6c8916380fee6
4
- data.tar.gz: c6910c324fd4eb47240077a257d719d0181fc0b1
3
+ metadata.gz: 6b94cf161913ffe85f145a578701683706264706
4
+ data.tar.gz: b34d6ebda4fe26b703b39028d330334e08a163ee
5
5
  SHA512:
6
- metadata.gz: 1ad927899d60f231e04d9a949d313818e7b0720e6be6a716c64678a396a2e5a6596666e9a876f4d2d1ec703c066c9a5d32bd09f319921a3e9c46a73a80b39189
7
- data.tar.gz: 522a2ff3fd97912d058cdea2736a283f734f78ef8e78d16960b8b45999752437717c34f699598d7936811049383a3a632c05adf921f8fe174c6a125891188053
6
+ metadata.gz: e86618b3e9875abe8299f3ef9011442d45ada7de2ca768d4d337135829903ac55413fac746874ebeeaaee3f3dc622b6e1e276949cd20a1ab61109f7cfc452ba0
7
+ data.tar.gz: 4e073b86cb25ef3c149b73569f960c4dae21563af15e8a9825586d45d3266d63dcca82bb09caca77d8618ed30569ab5d83bb337f6af7dc1eb25f38bba240d64d
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.623
1
+ 3.0.624
@@ -943,6 +943,30 @@ module TencentCloud
943
943
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
944
944
  end
945
945
 
946
+ # 生成攻击日志的产生时间柱状图
947
+
948
+ # @param request: Request instance for GetAttackHistogram.
949
+ # @type request: :class:`Tencentcloud::waf::V20180125::GetAttackHistogramRequest`
950
+ # @rtype: :class:`Tencentcloud::waf::V20180125::GetAttackHistogramResponse`
951
+ def GetAttackHistogram(request)
952
+ body = send_request('GetAttackHistogram', request.serialize)
953
+ response = JSON.parse(body)
954
+ if response['Response'].key?('Error') == false
955
+ model = GetAttackHistogramResponse.new
956
+ model.deserialize(response['Response'])
957
+ model
958
+ else
959
+ code = response['Response']['Error']['Code']
960
+ message = response['Response']['Error']['Message']
961
+ reqid = response['Response']['RequestId']
962
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
963
+ end
964
+ rescue TencentCloud::Common::TencentCloudSDKException => e
965
+ raise e
966
+ rescue StandardError => e
967
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
968
+ end
969
+
946
970
  # 本接口用于修改访问日志保存期限及大字段是否存储
947
971
 
948
972
  # @param request: Request instance for ModifyAccessPeriod.
@@ -3310,6 +3310,69 @@ module TencentCloud
3310
3310
  end
3311
3311
  end
3312
3312
 
3313
+ # GetAttackHistogram请求参数结构体
3314
+ class GetAttackHistogramRequest < TencentCloud::Common::AbstractModel
3315
+ # @param Domain: 查询的域名,所有域名使用all
3316
+ # @type Domain: String
3317
+ # @param StartTime: 查询起始时间
3318
+ # @type StartTime: String
3319
+ # @param EndTime: 查询结束时间
3320
+ # @type EndTime: String
3321
+ # @param QueryString: Lucene语法
3322
+ # @type QueryString: String
3323
+
3324
+ attr_accessor :Domain, :StartTime, :EndTime, :QueryString
3325
+
3326
+ def initialize(domain=nil, starttime=nil, endtime=nil, querystring=nil)
3327
+ @Domain = domain
3328
+ @StartTime = starttime
3329
+ @EndTime = endtime
3330
+ @QueryString = querystring
3331
+ end
3332
+
3333
+ def deserialize(params)
3334
+ @Domain = params['Domain']
3335
+ @StartTime = params['StartTime']
3336
+ @EndTime = params['EndTime']
3337
+ @QueryString = params['QueryString']
3338
+ end
3339
+ end
3340
+
3341
+ # GetAttackHistogram返回参数结构体
3342
+ class GetAttackHistogramResponse < TencentCloud::Common::AbstractModel
3343
+ # @param Data: 统计详情
3344
+ # @type Data: Array
3345
+ # @param Period: 时间段大小
3346
+ # @type Period: Integer
3347
+ # @param TotalCount: 统计的条目数
3348
+ # @type TotalCount: Integer
3349
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3350
+ # @type RequestId: String
3351
+
3352
+ attr_accessor :Data, :Period, :TotalCount, :RequestId
3353
+
3354
+ def initialize(data=nil, period=nil, totalcount=nil, requestid=nil)
3355
+ @Data = data
3356
+ @Period = period
3357
+ @TotalCount = totalcount
3358
+ @RequestId = requestid
3359
+ end
3360
+
3361
+ def deserialize(params)
3362
+ unless params['Data'].nil?
3363
+ @Data = []
3364
+ params['Data'].each do |i|
3365
+ loghistograminfo_tmp = LogHistogramInfo.new
3366
+ loghistograminfo_tmp.deserialize(i)
3367
+ @Data << loghistograminfo_tmp
3368
+ end
3369
+ end
3370
+ @Period = params['Period']
3371
+ @TotalCount = params['TotalCount']
3372
+ @RequestId = params['RequestId']
3373
+ end
3374
+ end
3375
+
3313
3376
  # clb-waf防护域名
3314
3377
  class HostRecord < TencentCloud::Common::AbstractModel
3315
3378
  # @param Domain: 域名
@@ -3816,6 +3879,26 @@ module TencentCloud
3816
3879
  end
3817
3880
  end
3818
3881
 
3882
+ # 攻击日志统计详情
3883
+ class LogHistogramInfo < TencentCloud::Common::AbstractModel
3884
+ # @param Count: 日志条数
3885
+ # @type Count: Integer
3886
+ # @param TimeStamp: 时间戳
3887
+ # @type TimeStamp: Integer
3888
+
3889
+ attr_accessor :Count, :TimeStamp
3890
+
3891
+ def initialize(count=nil, timestamp=nil)
3892
+ @Count = count
3893
+ @TimeStamp = timestamp
3894
+ end
3895
+
3896
+ def deserialize(params)
3897
+ @Count = params['Count']
3898
+ @TimeStamp = params['TimeStamp']
3899
+ end
3900
+ end
3901
+
3819
3902
  # ModifyAccessPeriod请求参数结构体
3820
3903
  class ModifyAccessPeriodRequest < TencentCloud::Common::AbstractModel
3821
3904
  # @param Period: 访问日志保存期限,范围为[1, 30]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-waf
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.623
4
+ version: 3.0.624
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-28 00:00:00.000000000 Z
11
+ date: 2023-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common