tencentcloud-sdk-cls 1.0.286 → 1.0.287
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/v20201016/client.rb +24 -0
- data/lib/v20201016/models.rb +87 -0
- 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: afafccfea4c38ffd9c6e36f13ba3405c8a4648aa
|
4
|
+
data.tar.gz: 11532d76ae7246f2670ecfa152f077642645642c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49deaaf28a47742755a4042cd64fdbb7a6973db9f0de323d3221ca2dced9508c3d891b90ad829b16d0449e6e426f629215e0ff0e11469a8a3834d6025ae78205
|
7
|
+
data.tar.gz: 00a909945c258c5f34e9925cf2151b34ee00666ff9f33be249bd30f8a8eb47ca63250b16ad9c1579323376e63bfa7bda95afd89bacc1b14dafd35c6b570e4b98
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.287
|
data/lib/v20201016/client.rb
CHANGED
@@ -821,6 +821,30 @@ module TencentCloud
|
|
821
821
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
822
822
|
end
|
823
823
|
|
824
|
+
# 本接口用于构建直方图
|
825
|
+
|
826
|
+
# @param request: Request instance for DescribeLogHistogram.
|
827
|
+
# @type request: :class:`Tencentcloud::cls::V20201016::DescribeLogHistogramRequest`
|
828
|
+
# @rtype: :class:`Tencentcloud::cls::V20201016::DescribeLogHistogramResponse`
|
829
|
+
def DescribeLogHistogram(request)
|
830
|
+
body = send_request('DescribeLogHistogram', request.serialize)
|
831
|
+
response = JSON.parse(body)
|
832
|
+
if response['Response'].key?('Error') == false
|
833
|
+
model = DescribeLogHistogramResponse.new
|
834
|
+
model.deserialize(response['Response'])
|
835
|
+
model
|
836
|
+
else
|
837
|
+
code = response['Response']['Error']['Code']
|
838
|
+
message = response['Response']['Error']['Message']
|
839
|
+
reqid = response['Response']['RequestId']
|
840
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
841
|
+
end
|
842
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
843
|
+
raise e
|
844
|
+
rescue StandardError => e
|
845
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
846
|
+
end
|
847
|
+
|
824
848
|
# 本接口用于获取日志集信息列表。
|
825
849
|
|
826
850
|
# @param request: Request instance for DescribeLogsets.
|
data/lib/v20201016/models.rb
CHANGED
@@ -2580,6 +2580,73 @@ module TencentCloud
|
|
2580
2580
|
end
|
2581
2581
|
end
|
2582
2582
|
|
2583
|
+
# DescribeLogHistogram请求参数结构体
|
2584
|
+
class DescribeLogHistogramRequest < TencentCloud::Common::AbstractModel
|
2585
|
+
# @param TopicId: 要查询的日志主题ID
|
2586
|
+
# @type TopicId: String
|
2587
|
+
# @param From: 要查询的日志的起始时间,Unix时间戳,单位ms
|
2588
|
+
# @type From: Integer
|
2589
|
+
# @param To: 要查询的日志的结束时间,Unix时间戳,单位ms
|
2590
|
+
# @type To: Integer
|
2591
|
+
# @param Query: 查询语句
|
2592
|
+
# @type Query: String
|
2593
|
+
# @param Interval: 时间间隔: 单位ms
|
2594
|
+
# @type Interval: Integer
|
2595
|
+
|
2596
|
+
attr_accessor :TopicId, :From, :To, :Query, :Interval
|
2597
|
+
|
2598
|
+
def initialize(topicid=nil, from=nil, to=nil, query=nil, interval=nil)
|
2599
|
+
@TopicId = topicid
|
2600
|
+
@From = from
|
2601
|
+
@To = to
|
2602
|
+
@Query = query
|
2603
|
+
@Interval = interval
|
2604
|
+
end
|
2605
|
+
|
2606
|
+
def deserialize(params)
|
2607
|
+
@TopicId = params['TopicId']
|
2608
|
+
@From = params['From']
|
2609
|
+
@To = params['To']
|
2610
|
+
@Query = params['Query']
|
2611
|
+
@Interval = params['Interval']
|
2612
|
+
end
|
2613
|
+
end
|
2614
|
+
|
2615
|
+
# DescribeLogHistogram返回参数结构体
|
2616
|
+
class DescribeLogHistogramResponse < TencentCloud::Common::AbstractModel
|
2617
|
+
# @param Interval: 统计周期: 单位ms
|
2618
|
+
# @type Interval: Integer
|
2619
|
+
# @param TotalCount: 命中关键字的日志总条数
|
2620
|
+
# @type TotalCount: Integer
|
2621
|
+
# @param HistogramInfos: 周期内统计结果详情
|
2622
|
+
# @type HistogramInfos: Array
|
2623
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2624
|
+
# @type RequestId: String
|
2625
|
+
|
2626
|
+
attr_accessor :Interval, :TotalCount, :HistogramInfos, :RequestId
|
2627
|
+
|
2628
|
+
def initialize(interval=nil, totalcount=nil, histograminfos=nil, requestid=nil)
|
2629
|
+
@Interval = interval
|
2630
|
+
@TotalCount = totalcount
|
2631
|
+
@HistogramInfos = histograminfos
|
2632
|
+
@RequestId = requestid
|
2633
|
+
end
|
2634
|
+
|
2635
|
+
def deserialize(params)
|
2636
|
+
@Interval = params['Interval']
|
2637
|
+
@TotalCount = params['TotalCount']
|
2638
|
+
unless params['HistogramInfos'].nil?
|
2639
|
+
@HistogramInfos = []
|
2640
|
+
params['HistogramInfos'].each do |i|
|
2641
|
+
histograminfo_tmp = HistogramInfo.new
|
2642
|
+
histograminfo_tmp.deserialize(i)
|
2643
|
+
@HistogramInfos << histograminfo_tmp
|
2644
|
+
end
|
2645
|
+
end
|
2646
|
+
@RequestId = params['RequestId']
|
2647
|
+
end
|
2648
|
+
end
|
2649
|
+
|
2583
2650
|
# DescribeLogsets请求参数结构体
|
2584
2651
|
class DescribeLogsetsRequest < TencentCloud::Common::AbstractModel
|
2585
2652
|
# @param Filters: <br><li> logsetName
|
@@ -3450,6 +3517,26 @@ module TencentCloud
|
|
3450
3517
|
end
|
3451
3518
|
end
|
3452
3519
|
|
3520
|
+
# 直方图详细信息
|
3521
|
+
class HistogramInfo < TencentCloud::Common::AbstractModel
|
3522
|
+
# @param Count: 统计周期内的日志条数
|
3523
|
+
# @type Count: Integer
|
3524
|
+
# @param BTime: 按 period 取整后的 unix timestamp: 单位毫秒
|
3525
|
+
# @type BTime: Integer
|
3526
|
+
|
3527
|
+
attr_accessor :Count, :BTime
|
3528
|
+
|
3529
|
+
def initialize(count=nil, btime=nil)
|
3530
|
+
@Count = count
|
3531
|
+
@BTime = btime
|
3532
|
+
end
|
3533
|
+
|
3534
|
+
def deserialize(params)
|
3535
|
+
@Count = params['Count']
|
3536
|
+
@BTime = params['BTime']
|
3537
|
+
end
|
3538
|
+
end
|
3539
|
+
|
3453
3540
|
# 自建k8s-节点文件配置信息
|
3454
3541
|
class HostFileInfo < TencentCloud::Common::AbstractModel
|
3455
3542
|
# @param LogPath: 日志文件夹
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-cls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.287
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|