tencentcloud-sdk-cls 3.0.781 → 3.0.783
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 +0 -24
- data/lib/v20201016/models.rb +54 -56
- 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: ea76860e542d3ac65a6187a423f222341838bc3f
|
4
|
+
data.tar.gz: 082919a4e01fc6bb062e5c1a33918a466fdd9a45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7d8eb3f5bf50b769de50c9bdc48e421a25f76a5a9b7b4af7e4f2255604caabbfee6436eb9f007e45ee8eb110fa085f7ba7c76031232694b610641cd14e1b446
|
7
|
+
data.tar.gz: 499a69ce2064f1f6ae75d8f013172c48a0ae8fe67a798f8798903aabd142b6e9cc131b7cb675cc89d6d45159d3c1df25200ac439893ce76ef6dbf6c2b4c7bd4c
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.783
|
data/lib/v20201016/client.rb
CHANGED
@@ -1325,30 +1325,6 @@ module TencentCloud
|
|
1325
1325
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1326
1326
|
end
|
1327
1327
|
|
1328
|
-
# 本接口用于获取kafka用户信息
|
1329
|
-
|
1330
|
-
# @param request: Request instance for DescribeKafkaUser.
|
1331
|
-
# @type request: :class:`Tencentcloud::cls::V20201016::DescribeKafkaUserRequest`
|
1332
|
-
# @rtype: :class:`Tencentcloud::cls::V20201016::DescribeKafkaUserResponse`
|
1333
|
-
def DescribeKafkaUser(request)
|
1334
|
-
body = send_request('DescribeKafkaUser', request.serialize)
|
1335
|
-
response = JSON.parse(body)
|
1336
|
-
if response['Response'].key?('Error') == false
|
1337
|
-
model = DescribeKafkaUserResponse.new
|
1338
|
-
model.deserialize(response['Response'])
|
1339
|
-
model
|
1340
|
-
else
|
1341
|
-
code = response['Response']['Error']['Code']
|
1342
|
-
message = response['Response']['Error']['Message']
|
1343
|
-
reqid = response['Response']['RequestId']
|
1344
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1345
|
-
end
|
1346
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1347
|
-
raise e
|
1348
|
-
rescue StandardError => e
|
1349
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1350
|
-
end
|
1351
|
-
|
1352
1328
|
# 本接口用于搜索日志上下文附近的内容,详情参考[上下文检索](https://cloud.tencent.com/document/product/614/53248)。
|
1353
1329
|
# API返回数据包最大49MB,建议启用 gzip 压缩(HTTP Request Header Accept-Encoding:gzip)。
|
1354
1330
|
|
data/lib/v20201016/models.rb
CHANGED
@@ -1139,7 +1139,16 @@ module TencentCloud
|
|
1139
1139
|
# @param Path: 日志采集路径
|
1140
1140
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
1141
1141
|
# @type Path: String
|
1142
|
-
# @param LogType:
|
1142
|
+
# @param LogType: 采集的日志类型。
|
1143
|
+
# - json_log代表:JSON-文件日志(详见[使用 JSON 提取模式采集日志](https://cloud.tencent.com/document/product/614/17419));
|
1144
|
+
# - delimiter_log代表:分隔符-文件日志(详见[使用分隔符提取模式采集日志](https://cloud.tencent.com/document/product/614/17420));
|
1145
|
+
# - minimalist_log代表:单行全文-文件日志(详见[使用单行全文提取模式采集日志](https://cloud.tencent.com/document/product/614/17421));
|
1146
|
+
# - fullregex_log代表:单行完全正则-文件日志(详见[使用单行-完全正则提取模式采集日志](https://cloud.tencent.com/document/product/614/52365));
|
1147
|
+
# - multiline_log代表:多行全文-文件日志(详见[使用多行全文提取模式采集日志](https://cloud.tencent.com/document/product/614/17422));
|
1148
|
+
# - multiline_fullregex_log代表:多行完全正则-文件日志(详见[使用多行-完全正则提取模式采集日志](https://cloud.tencent.com/document/product/614/52366));
|
1149
|
+
# - user_define_log代表:组合解析(适用于多格式嵌套的日志,详见[使用组合解析提取模式采集日志](https://cloud.tencent.com/document/product/614/61310));
|
1150
|
+
# - service_syslog代表:syslog 采集(详见[采集 Syslog](https://cloud.tencent.com/document/product/614/81454));
|
1151
|
+
# - windows_event_log代表:Windows事件日志(详见[采集 Windows 事件日志](https://cloud.tencent.com/document/product/614/96678))。
|
1143
1152
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
1144
1153
|
# @type LogType: String
|
1145
1154
|
# @param ExtractRule: 提取规则,如果设置了ExtractRule,则必须设置LogType
|
@@ -1155,14 +1164,17 @@ module TencentCloud
|
|
1155
1164
|
# @type UpdateTime: String
|
1156
1165
|
# @param CreateTime: 创建时间
|
1157
1166
|
# @type CreateTime: String
|
1158
|
-
# @param UserDefineRule:
|
1167
|
+
# @param UserDefineRule: 用户自定义解析字符串,详见[使用组合解析提取模式采集日志](https://cloud.tencent.com/document/product/614/61310)。
|
1159
1168
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
1160
1169
|
# @type UserDefineRule: String
|
1161
1170
|
# @param AdvancedConfig: 高级采集配置。 Json字符串, Key/Value定义为如下:
|
1162
1171
|
# - ClsAgentFileTimeout(超时属性), 取值范围: 大于等于0的整数, 0为不超时
|
1163
1172
|
# - ClsAgentMaxDepth(最大目录深度),取值范围: 大于等于0的整数
|
1164
1173
|
# - ClsAgentParseFailMerge(合并解析失败日志),取值范围: true或false
|
1165
|
-
# 样例:
|
1174
|
+
# 样例:
|
1175
|
+
# `{\"ClsAgentFileTimeout\":0,\"ClsAgentMaxDepth\":10,\"ClsAgentParseFailMerge\":true}`
|
1176
|
+
|
1177
|
+
# 控制台默认占位值:`{\"ClsAgentDefault\":0}`
|
1166
1178
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
1167
1179
|
# @type AdvancedConfig: String
|
1168
1180
|
|
@@ -2000,19 +2012,31 @@ module TencentCloud
|
|
2000
2012
|
# @type Output: String
|
2001
2013
|
# @param Path: 日志采集路径,包含文件名
|
2002
2014
|
# @type Path: String
|
2003
|
-
# @param LogType:
|
2015
|
+
# @param LogType: 采集的日志类型,默认为minimalist_log。支持以下类型:
|
2016
|
+
# - json_log代表:JSON-文件日志(详见[使用 JSON 提取模式采集日志](https://cloud.tencent.com/document/product/614/17419));
|
2017
|
+
# - delimiter_log代表:分隔符-文件日志(详见[使用分隔符提取模式采集日志](https://cloud.tencent.com/document/product/614/17420));
|
2018
|
+
# - minimalist_log代表:单行全文-文件日志(详见[使用单行全文提取模式采集日志](https://cloud.tencent.com/document/product/614/17421));
|
2019
|
+
# - fullregex_log代表:单行完全正则-文件日志(详见[使用单行-完全正则提取模式采集日志](https://cloud.tencent.com/document/product/614/52365));
|
2020
|
+
# - multiline_log代表:多行全文-文件日志(详见[使用多行全文提取模式采集日志](https://cloud.tencent.com/document/product/614/17422));
|
2021
|
+
# - multiline_fullregex_log代表:多行完全正则-文件日志(详见[使用多行-完全正则提取模式采集日志](https://cloud.tencent.com/document/product/614/52366));
|
2022
|
+
# - user_define_log代表:组合解析(适用于多格式嵌套的日志,详见[使用组合解析提取模式采集日志](https://cloud.tencent.com/document/product/614/61310));
|
2023
|
+
# - service_syslog代表:syslog 采集(详见[采集 Syslog](https://cloud.tencent.com/document/product/614/81454));
|
2024
|
+
# - windows_event_log代表:Windows事件日志(详见[采集 Windows 事件日志](https://cloud.tencent.com/document/product/614/96678))。
|
2004
2025
|
# @type LogType: String
|
2005
2026
|
# @param ExtractRule: 提取规则,如果设置了ExtractRule,则必须设置LogType
|
2006
2027
|
# @type ExtractRule: :class:`Tencentcloud::Cls.v20201016.models.ExtractRuleInfo`
|
2007
2028
|
# @param ExcludePaths: 采集黑名单路径列表
|
2008
2029
|
# @type ExcludePaths: Array
|
2009
|
-
# @param UserDefineRule: 用户自定义采集规则,Json
|
2030
|
+
# @param UserDefineRule: 用户自定义采集规则,Json格式序列化的字符串。当LogType为user_define_log时,必填。
|
2010
2031
|
# @type UserDefineRule: String
|
2011
2032
|
# @param AdvancedConfig: 高级采集配置。 Json字符串, Key/Value定义为如下:
|
2012
2033
|
# - ClsAgentFileTimeout(超时属性), 取值范围: 大于等于0的整数, 0为不超时
|
2013
2034
|
# - ClsAgentMaxDepth(最大目录深度),取值范围: 大于等于0的整数
|
2014
2035
|
# - ClsAgentParseFailMerge(合并解析失败日志),取值范围: true或false
|
2015
|
-
# 样例:
|
2036
|
+
# 样例:
|
2037
|
+
# `{\"ClsAgentFileTimeout\":0,\"ClsAgentMaxDepth\":10,\"ClsAgentParseFailMerge\":true}`
|
2038
|
+
|
2039
|
+
# 控制台默认占位值:`{\"ClsAgentDefault\":0}`
|
2016
2040
|
# @type AdvancedConfig: String
|
2017
2041
|
|
2018
2042
|
attr_accessor :Name, :Output, :Path, :LogType, :ExtractRule, :ExcludePaths, :UserDefineRule, :AdvancedConfig
|
@@ -2463,6 +2487,8 @@ module TencentCloud
|
|
2463
2487
|
# @type UserKafkaTopics: String
|
2464
2488
|
# @param Offset: 导入数据位置,-2:最早(默认),-1:最晚
|
2465
2489
|
# @type Offset: Integer
|
2490
|
+
# @param LogRechargeRule: 日志导入规则。
|
2491
|
+
# @type LogRechargeRule: :class:`Tencentcloud::Cls.v20201016.models.LogRechargeRuleInfo`
|
2466
2492
|
# @param KafkaInstance: 腾讯云CKafka实例ID,KafkaType为0时必填
|
2467
2493
|
# @type KafkaInstance: String
|
2468
2494
|
# @param ServerAddr: 服务地址,KafkaType为1时必填
|
@@ -2474,24 +2500,21 @@ module TencentCloud
|
|
2474
2500
|
# @type Protocol: :class:`Tencentcloud::Cls.v20201016.models.KafkaProtocolInfo`
|
2475
2501
|
# @param ConsumerGroupName: 用户Kafka消费组名称
|
2476
2502
|
# @type ConsumerGroupName: String
|
2477
|
-
# @param LogRechargeRule: 日志导入规则。
|
2478
|
-
# 必填字段。
|
2479
|
-
# @type LogRechargeRule: :class:`Tencentcloud::Cls.v20201016.models.LogRechargeRuleInfo`
|
2480
2503
|
|
2481
|
-
attr_accessor :TopicId, :Name, :KafkaType, :UserKafkaTopics, :Offset, :KafkaInstance, :ServerAddr, :IsEncryptionAddr, :Protocol, :ConsumerGroupName
|
2504
|
+
attr_accessor :TopicId, :Name, :KafkaType, :UserKafkaTopics, :Offset, :LogRechargeRule, :KafkaInstance, :ServerAddr, :IsEncryptionAddr, :Protocol, :ConsumerGroupName
|
2482
2505
|
|
2483
|
-
def initialize(topicid=nil, name=nil, kafkatype=nil, userkafkatopics=nil, offset=nil, kafkainstance=nil, serveraddr=nil, isencryptionaddr=nil, protocol=nil, consumergroupname=nil
|
2506
|
+
def initialize(topicid=nil, name=nil, kafkatype=nil, userkafkatopics=nil, offset=nil, logrechargerule=nil, kafkainstance=nil, serveraddr=nil, isencryptionaddr=nil, protocol=nil, consumergroupname=nil)
|
2484
2507
|
@TopicId = topicid
|
2485
2508
|
@Name = name
|
2486
2509
|
@KafkaType = kafkatype
|
2487
2510
|
@UserKafkaTopics = userkafkatopics
|
2488
2511
|
@Offset = offset
|
2512
|
+
@LogRechargeRule = logrechargerule
|
2489
2513
|
@KafkaInstance = kafkainstance
|
2490
2514
|
@ServerAddr = serveraddr
|
2491
2515
|
@IsEncryptionAddr = isencryptionaddr
|
2492
2516
|
@Protocol = protocol
|
2493
2517
|
@ConsumerGroupName = consumergroupname
|
2494
|
-
@LogRechargeRule = logrechargerule
|
2495
2518
|
end
|
2496
2519
|
|
2497
2520
|
def deserialize(params)
|
@@ -2500,6 +2523,10 @@ module TencentCloud
|
|
2500
2523
|
@KafkaType = params['KafkaType']
|
2501
2524
|
@UserKafkaTopics = params['UserKafkaTopics']
|
2502
2525
|
@Offset = params['Offset']
|
2526
|
+
unless params['LogRechargeRule'].nil?
|
2527
|
+
@LogRechargeRule = LogRechargeRuleInfo.new
|
2528
|
+
@LogRechargeRule.deserialize(params['LogRechargeRule'])
|
2529
|
+
end
|
2503
2530
|
@KafkaInstance = params['KafkaInstance']
|
2504
2531
|
@ServerAddr = params['ServerAddr']
|
2505
2532
|
@IsEncryptionAddr = params['IsEncryptionAddr']
|
@@ -2508,10 +2535,6 @@ module TencentCloud
|
|
2508
2535
|
@Protocol.deserialize(params['Protocol'])
|
2509
2536
|
end
|
2510
2537
|
@ConsumerGroupName = params['ConsumerGroupName']
|
2511
|
-
unless params['LogRechargeRule'].nil?
|
2512
|
-
@LogRechargeRule = LogRechargeRuleInfo.new
|
2513
|
-
@LogRechargeRule.deserialize(params['LogRechargeRule'])
|
2514
|
-
end
|
2515
2538
|
end
|
2516
2539
|
end
|
2517
2540
|
|
@@ -4743,42 +4766,6 @@ module TencentCloud
|
|
4743
4766
|
end
|
4744
4767
|
end
|
4745
4768
|
|
4746
|
-
# DescribeKafkaUser请求参数结构体
|
4747
|
-
class DescribeKafkaUserRequest < TencentCloud::Common::AbstractModel
|
4748
|
-
# @param UserName: kafka用户名。
|
4749
|
-
# @type UserName: String
|
4750
|
-
|
4751
|
-
attr_accessor :UserName
|
4752
|
-
|
4753
|
-
def initialize(username=nil)
|
4754
|
-
@UserName = username
|
4755
|
-
end
|
4756
|
-
|
4757
|
-
def deserialize(params)
|
4758
|
-
@UserName = params['UserName']
|
4759
|
-
end
|
4760
|
-
end
|
4761
|
-
|
4762
|
-
# DescribeKafkaUser返回参数结构体
|
4763
|
-
class DescribeKafkaUserResponse < TencentCloud::Common::AbstractModel
|
4764
|
-
# @param UserName: 如果返回不为空,代表用户名UserName已经创建成功。
|
4765
|
-
# @type UserName: String
|
4766
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4767
|
-
# @type RequestId: String
|
4768
|
-
|
4769
|
-
attr_accessor :UserName, :RequestId
|
4770
|
-
|
4771
|
-
def initialize(username=nil, requestid=nil)
|
4772
|
-
@UserName = username
|
4773
|
-
@RequestId = requestid
|
4774
|
-
end
|
4775
|
-
|
4776
|
-
def deserialize(params)
|
4777
|
-
@UserName = params['UserName']
|
4778
|
-
@RequestId = params['RequestId']
|
4779
|
-
end
|
4780
|
-
end
|
4781
|
-
|
4782
4769
|
# DescribeLogContext请求参数结构体
|
4783
4770
|
class DescribeLogContextRequest < TencentCloud::Common::AbstractModel
|
4784
4771
|
# @param TopicId: 要查询的日志主题ID
|
@@ -7312,13 +7299,23 @@ module TencentCloud
|
|
7312
7299
|
|
7313
7300
|
# ModifyConfig请求参数结构体
|
7314
7301
|
class ModifyConfigRequest < TencentCloud::Common::AbstractModel
|
7315
|
-
# @param ConfigId: 采集规则配置ID
|
7302
|
+
# @param ConfigId: 采集规则配置ID,通过[获取采集规则配置](https://cloud.tencent.com/document/product/614/58616)返回信息获取。
|
7316
7303
|
# @type ConfigId: String
|
7317
7304
|
# @param Name: 采集规则配置名称
|
7318
7305
|
# @type Name: String
|
7319
7306
|
# @param Path: 日志采集路径,包含文件名
|
7320
7307
|
# @type Path: String
|
7321
|
-
# @param LogType:
|
7308
|
+
# @param LogType: 采集的日志类型。支持以下类型:
|
7309
|
+
# - json_log代表:JSON-文件日志(详见[使用 JSON 提取模式采集日志](https://cloud.tencent.com/document/product/614/17419));
|
7310
|
+
# - delimiter_log代表:分隔符-文件日志(详见[使用分隔符提取模式采集日志](https://cloud.tencent.com/document/product/614/17420));
|
7311
|
+
# - minimalist_log代表:单行全文-文件日志(详见[使用单行全文提取模式采集日志](https://cloud.tencent.com/document/product/614/17421));
|
7312
|
+
# - fullregex_log代表:单行完全正则-文件日志(详见[使用单行-完全正则提取模式采集日志](https://cloud.tencent.com/document/product/614/52365));
|
7313
|
+
# - multiline_log代表:多行全文-文件日志(详见[使用多行全文提取模式采集日志](https://cloud.tencent.com/document/product/614/17422));
|
7314
|
+
# - multiline_fullregex_log代表:多行完全正则-文件日志(详见[使用多行-完全正则提取模式采集日志](https://cloud.tencent.com/document/product/614/52366));
|
7315
|
+
# - user_define_log代表:组合解析(适用于多格式嵌套的日志,详见[使用组合解析提取模式采集日志](https://cloud.tencent.com/document/product/614/61310));
|
7316
|
+
# - service_syslog代表:syslog 采集(详见[采集 Syslog](https://cloud.tencent.com/document/product/614/81454));
|
7317
|
+
# - windows_event_log代表:Windows事件日志(详见[采集 Windows 事件日志](https://cloud.tencent.com/document/product/614/96678))。
|
7318
|
+
|
7322
7319
|
# @type LogType: String
|
7323
7320
|
# @param ExtractRule: 提取规则,如果设置了ExtractRule,则必须设置LogType
|
7324
7321
|
# @type ExtractRule: :class:`Tencentcloud::Cls.v20201016.models.ExtractRuleInfo`
|
@@ -7326,13 +7323,14 @@ module TencentCloud
|
|
7326
7323
|
# @type ExcludePaths: Array
|
7327
7324
|
# @param Output: 采集配置关联的日志主题(TopicId)
|
7328
7325
|
# @type Output: String
|
7329
|
-
# @param UserDefineRule: 用户自定义解析字符串,Json
|
7326
|
+
# @param UserDefineRule: 用户自定义解析字符串,Json格式序列化的字符串。
|
7330
7327
|
# @type UserDefineRule: String
|
7331
7328
|
# @param AdvancedConfig: 高级采集配置。 Json字符串, Key/Value定义为如下:
|
7332
7329
|
# - ClsAgentFileTimeout(超时属性), 取值范围: 大于等于0的整数, 0为不超时
|
7333
7330
|
# - ClsAgentMaxDepth(最大目录深度),取值范围: 大于等于0的整数
|
7334
7331
|
# - ClsAgentParseFailMerge(合并解析失败日志),取值范围: true或false
|
7335
|
-
# 样例:
|
7332
|
+
# 样例:
|
7333
|
+
# `{\"ClsAgentFileTimeout\":0,\"ClsAgentMaxDepth\":10,\"ClsAgentParseFailMerge\":true}`
|
7336
7334
|
# @type AdvancedConfig: String
|
7337
7335
|
|
7338
7336
|
attr_accessor :ConfigId, :Name, :Path, :LogType, :ExtractRule, :ExcludePaths, :Output, :UserDefineRule, :AdvancedConfig
|
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: 3.0.
|
4
|
+
version: 3.0.783
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|