tencentcloud-sdk-waf 3.0.622 → 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: 184ba6fc53f65782d041703c195aacabcbb2f9a5
4
- data.tar.gz: 23a4b98949bd0a4eb6552cceaa75afa0d18763a9
3
+ metadata.gz: 6b94cf161913ffe85f145a578701683706264706
4
+ data.tar.gz: b34d6ebda4fe26b703b39028d330334e08a163ee
5
5
  SHA512:
6
- metadata.gz: 75db41346f55115a532c8c6e13469c401cf3e9c19ccc01eb3a7fd8133afc59a017e2f2073823874dbcc027ac4707c523ebeb4d8aea55d11e306f1b31c2f40302
7
- data.tar.gz: bd1b51f18d4142438ab44a55921a86b6d988ab850d0b2af30507a19f4dc452bf98df451d7f86e014660cfd7827ac05f5079c898f762d6082e2f9befb8aeffaef
6
+ metadata.gz: e86618b3e9875abe8299f3ef9011442d45ada7de2ca768d4d337135829903ac55413fac746874ebeeaaee3f3dc622b6e1e276949cd20a1ab61109f7cfc452ba0
7
+ data.tar.gz: 4e073b86cb25ef3c149b73569f960c4dae21563af15e8a9825586d45d3266d63dcca82bb09caca77d8618ed30569ab5d83bb337f6af7dc1eb25f38bba240d64d
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.622
1
+ 3.0.624
@@ -389,6 +389,30 @@ module TencentCloud
389
389
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
390
390
  end
391
391
 
392
+ # 本接口用于访问日志柱状趋势图
393
+
394
+ # @param request: Request instance for DescribeAccessHistogram.
395
+ # @type request: :class:`Tencentcloud::waf::V20180125::DescribeAccessHistogramRequest`
396
+ # @rtype: :class:`Tencentcloud::waf::V20180125::DescribeAccessHistogramResponse`
397
+ def DescribeAccessHistogram(request)
398
+ body = send_request('DescribeAccessHistogram', request.serialize)
399
+ response = JSON.parse(body)
400
+ if response['Response'].key?('Error') == false
401
+ model = DescribeAccessHistogramResponse.new
402
+ model.deserialize(response['Response'])
403
+ model
404
+ else
405
+ code = response['Response']['Error']['Code']
406
+ message = response['Response']['Error']['Message']
407
+ reqid = response['Response']['RequestId']
408
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
409
+ end
410
+ rescue TencentCloud::Common::TencentCloudSDKException => e
411
+ raise e
412
+ rescue StandardError => e
413
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
414
+ end
415
+
392
416
  # 本接口用于获取访问日志索引配置信息
393
417
 
394
418
  # @param request: Request instance for DescribeAccessIndex.
@@ -919,6 +943,30 @@ module TencentCloud
919
943
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
920
944
  end
921
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
+
922
970
  # 本接口用于修改访问日志保存期限及大字段是否存储
923
971
 
924
972
  # @param request: Request instance for ModifyAccessPeriod.
@@ -45,6 +45,26 @@ module TencentCloud
45
45
  end
46
46
  end
47
47
 
48
+ # 用于接口DescribeAccessHistogram 的出参
49
+ class AccessHistogramItem < TencentCloud::Common::AbstractModel
50
+ # @param BTime: 时间,单位ms
51
+ # @type BTime: Integer
52
+ # @param Count: 日志条数
53
+ # @type Count: Integer
54
+
55
+ attr_accessor :BTime, :Count
56
+
57
+ def initialize(btime=nil, count=nil)
58
+ @BTime = btime
59
+ @Count = count
60
+ end
61
+
62
+ def deserialize(params)
63
+ @BTime = params['BTime']
64
+ @Count = params['Count']
65
+ end
66
+ end
67
+
48
68
  # 用于 DescribeAccessIndex 的出参
49
69
  class AccessKeyValueInfo < TencentCloud::Common::AbstractModel
50
70
  # @param Key: 需要配置键值或者元字段索引的字段
@@ -1397,6 +1417,74 @@ module TencentCloud
1397
1417
  end
1398
1418
  end
1399
1419
 
1420
+ # DescribeAccessHistogram请求参数结构体
1421
+ class DescribeAccessHistogramRequest < TencentCloud::Common::AbstractModel
1422
+ # @param TopicId: 老版本查询的日志主题ID,新版本传空字符串即可
1423
+ # @type TopicId: String
1424
+ # @param From: 要查询的日志的起始时间,Unix时间戳,单位ms
1425
+ # @type From: Integer
1426
+ # @param To: 要查询的日志的结束时间,Unix时间戳,单位ms
1427
+ # @type To: Integer
1428
+ # @param Query: 查询语句,语句长度最大为4096
1429
+ # @type Query: String
1430
+ # @param Interval: 柱状图间隔时间差,单位ms
1431
+ # @type Interval: Integer
1432
+
1433
+ attr_accessor :TopicId, :From, :To, :Query, :Interval
1434
+
1435
+ def initialize(topicid=nil, from=nil, to=nil, query=nil, interval=nil)
1436
+ @TopicId = topicid
1437
+ @From = from
1438
+ @To = to
1439
+ @Query = query
1440
+ @Interval = interval
1441
+ end
1442
+
1443
+ def deserialize(params)
1444
+ @TopicId = params['TopicId']
1445
+ @From = params['From']
1446
+ @To = params['To']
1447
+ @Query = params['Query']
1448
+ @Interval = params['Interval']
1449
+ end
1450
+ end
1451
+
1452
+ # DescribeAccessHistogram返回参数结构体
1453
+ class DescribeAccessHistogramResponse < TencentCloud::Common::AbstractModel
1454
+ # @param Interval: 柱状图间隔时间差,单位ms
1455
+ # @type Interval: Integer
1456
+ # @param TotalCount: 满足条件的日志条数
1457
+ # @type TotalCount: Integer
1458
+ # @param HistogramInfos: 注意:此字段可能返回 null,表示取不到有效值
1459
+ # 注意:此字段可能返回 null,表示取不到有效值。
1460
+ # @type HistogramInfos: Array
1461
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1462
+ # @type RequestId: String
1463
+
1464
+ attr_accessor :Interval, :TotalCount, :HistogramInfos, :RequestId
1465
+
1466
+ def initialize(interval=nil, totalcount=nil, histograminfos=nil, requestid=nil)
1467
+ @Interval = interval
1468
+ @TotalCount = totalcount
1469
+ @HistogramInfos = histograminfos
1470
+ @RequestId = requestid
1471
+ end
1472
+
1473
+ def deserialize(params)
1474
+ @Interval = params['Interval']
1475
+ @TotalCount = params['TotalCount']
1476
+ unless params['HistogramInfos'].nil?
1477
+ @HistogramInfos = []
1478
+ params['HistogramInfos'].each do |i|
1479
+ accesshistogramitem_tmp = AccessHistogramItem.new
1480
+ accesshistogramitem_tmp.deserialize(i)
1481
+ @HistogramInfos << accesshistogramitem_tmp
1482
+ end
1483
+ end
1484
+ @RequestId = params['RequestId']
1485
+ end
1486
+ end
1487
+
1400
1488
  # DescribeAccessIndex请求参数结构体
1401
1489
  class DescribeAccessIndexRequest < TencentCloud::Common::AbstractModel
1402
1490
 
@@ -3222,6 +3310,69 @@ module TencentCloud
3222
3310
  end
3223
3311
  end
3224
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
+
3225
3376
  # clb-waf防护域名
3226
3377
  class HostRecord < TencentCloud::Common::AbstractModel
3227
3378
  # @param Domain: 域名
@@ -3728,6 +3879,26 @@ module TencentCloud
3728
3879
  end
3729
3880
  end
3730
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
+
3731
3902
  # ModifyAccessPeriod请求参数结构体
3732
3903
  class ModifyAccessPeriodRequest < TencentCloud::Common::AbstractModel
3733
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.622
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-27 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