tencentcloud-sdk-waf 3.0.622 → 3.0.623

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: d0ba75f207d36026821a3a8b80f6c8916380fee6
4
+ data.tar.gz: c6910c324fd4eb47240077a257d719d0181fc0b1
5
5
  SHA512:
6
- metadata.gz: 75db41346f55115a532c8c6e13469c401cf3e9c19ccc01eb3a7fd8133afc59a017e2f2073823874dbcc027ac4707c523ebeb4d8aea55d11e306f1b31c2f40302
7
- data.tar.gz: bd1b51f18d4142438ab44a55921a86b6d988ab850d0b2af30507a19f4dc452bf98df451d7f86e014660cfd7827ac05f5079c898f762d6082e2f9befb8aeffaef
6
+ metadata.gz: 1ad927899d60f231e04d9a949d313818e7b0720e6be6a716c64678a396a2e5a6596666e9a876f4d2d1ec703c066c9a5d32bd09f319921a3e9c46a73a80b39189
7
+ data.tar.gz: 522a2ff3fd97912d058cdea2736a283f734f78ef8e78d16960b8b45999752437717c34f699598d7936811049383a3a632c05adf921f8fe174c6a125891188053
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.622
1
+ 3.0.623
@@ -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.
@@ -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
 
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.623
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-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common