tencentcloud-sdk-cls 3.0.815 → 3.0.816

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20201016/models.rb +196 -46
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 98512e16f67d129db72e5bee2401704b4d3f19f0
4
- data.tar.gz: bfca529ea7aa147404e27feee502e5024b3cf439
3
+ metadata.gz: ba93f4db80fa725153714446fb0804242b70c6f1
4
+ data.tar.gz: 32f3948d962bca7a0761bc7ddff2caf6a22aa08f
5
5
  SHA512:
6
- metadata.gz: 39e77fe11896989aa8c31437ecf1c0baeda00a0177537acfb2daba0d7de8db1be048b261a77923ab9be9af2c4506448bed7824f41bc4b1ad433931be860c3ca7
7
- data.tar.gz: de1116301bca5fc6d3a195e4af7e47d74fb35162d8ee5b9b62ee55fd544cba1e3ceea6fe22e52e39d5eef9e605fc2f60c65e3f9a140ac3418a718ea173f52060
6
+ metadata.gz: fe955e14ca83dfe799e04f1967e74ce1549bfc0eeac096afc6caec97ec24456e000a6653a1c478fa83f301ce28d87e7e7ba86f62888733c37d3e7c07f496ecb6
7
+ data.tar.gz: 307ecb3be125c212b0a75459f8abd72c487fa3ffdb5d573ff6d051c288c8ce018737d5b80713aaf69d7192474f1b5ca9a353f0ae58b994ac9c8895e146bac792
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.815
1
+ 3.0.816
@@ -1598,23 +1598,27 @@ module TencentCloud
1598
1598
 
1599
1599
 
1600
1600
  # 注意:
1601
- # - Type、NoticeReceivers和WebCallbacks是一组配置,其中Type必填,NoticeReceivers和WebCallbacks至少一个不为空,NoticeRules是另一组配置,其中rule不许为空,2组配置互斥。
1602
- # - Type、NoticeReceivers和WebCallbacks是一组配置,NoticeRules是另一组配置,必须填写一组配置。
1601
+ # - Type、NoticeReceivers和WebCallbacks是一组rule配置,其中Type必填,NoticeReceivers和WebCallbacks至少一个不为空;NoticeRules是另一组rule配置,其中rule不许为空
1602
+ # - 2组rule配置互斥
1603
+ # - rule配置 与 deliver配置(DeliverStatus与DeliverConfig)至少填写一组配置
1603
1604
  # @type Type: String
1604
1605
  # @param NoticeReceivers: 通知接收对象。
1605
1606
  # 注意:
1606
- # - Type、NoticeReceivers和WebCallbacks是一组配置,其中Type必填,NoticeReceivers和WebCallbacks至少一个不为空,NoticeRules是另一组配置,其中rule不许为空,2组配置互斥。
1607
- # - Type、NoticeReceivers和WebCallbacks是一组配置,NoticeRules是另一组配置,必须填写一组配置。
1607
+ # - Type、NoticeReceivers和WebCallbacks是一组rule配置,其中Type必填,NoticeReceivers和WebCallbacks至少一个不为空;NoticeRules是另一组rule配置,其中rule不许为空
1608
+ # - 2组rule配置互斥
1609
+ # - rule配置 与 deliver配置(DeliverStatus与DeliverConfig)至少填写一组配置
1608
1610
  # @type NoticeReceivers: Array
1609
1611
  # @param WebCallbacks: 接口回调信息(包括企业微信)。
1610
1612
  # 注意:
1611
- # - Type、NoticeReceivers和WebCallbacks是一组配置,其中Type必填,NoticeReceivers和WebCallbacks至少一个不为空,NoticeRules是另一组配置,其中rule不许为空,2组配置互斥。
1612
- # - Type、NoticeReceivers和WebCallbacks是一组配置,NoticeRules是另一组配置,必须填写一组配置。
1613
+ # - Type、NoticeReceivers和WebCallbacks是一组rule配置,其中Type必填,NoticeReceivers和WebCallbacks至少一个不为空;NoticeRules是另一组rule配置,其中rule不许为空
1614
+ # - 2组rule配置互斥
1615
+ # - rule配置 与 deliver配置(DeliverStatus与DeliverConfig)至少填写一组配置
1613
1616
  # @type WebCallbacks: Array
1614
1617
  # @param NoticeRules: 通知规则。
1615
1618
  # 注意:
1616
- # - Type、NoticeReceivers和WebCallbacks是一组配置,其中Type必填,NoticeReceivers和WebCallbacks至少一个不为空,NoticeRules是另一组配置,其中rule不许为空,2组配置互斥。
1617
- # - Type、NoticeReceivers和WebCallbacks是一组配置,NoticeRules是另一组配置,必须填写一组配置。
1619
+ # - Type、NoticeReceivers和WebCallbacks是一组rule配置,其中Type必填,NoticeReceivers和WebCallbacks至少一个不为空;NoticeRules是另一组rule配置,其中rule不许为空
1620
+ # - 2组rule配置互斥
1621
+ # - rule配置 与 deliver配置(DeliverStatus与DeliverConfig)至少填写一组配置
1618
1622
 
1619
1623
  # @type NoticeRules: Array
1620
1624
 
@@ -1908,11 +1912,19 @@ module TencentCloud
1908
1912
  # @type Name: String
1909
1913
  # @param TopicId: 日志主题id
1910
1914
  # @type TopicId: String
1911
- # @param Type: 类型:container_stdoutcontainer_filehost_file
1915
+ # @param Type: 日志源类型。支持 container_stdout:容器标准输出;container_file:容器文件路径;host_file:节点文件路径。
1912
1916
  # @type Type: String
1913
- # @param LogType: 采集的日志类型,json_log代表json格式日志,delimiter_log代表分隔符格式日志,minimalist_log代表极简日志,multiline_log代表多行日志,fullregex_log代表完整正则,默认为minimalist_log
1917
+ # @param LogType: 采集的日志类型,默认为minimalist_log。支持以下类型:
1918
+ # - json_log代表:JSON-文件日志(详见[使用 JSON 提取模式采集日志](https://cloud.tencent.com/document/product/614/17419));
1919
+ # - delimiter_log代表:分隔符-文件日志(详见[使用分隔符提取模式采集日志](https://cloud.tencent.com/document/product/614/17420));
1920
+ # - minimalist_log代表:单行全文-文件日志(详见[使用单行全文提取模式采集日志](https://cloud.tencent.com/document/product/614/17421));
1921
+ # - fullregex_log代表:单行完全正则-文件日志(详见[使用单行-完全正则提取模式采集日志](https://cloud.tencent.com/document/product/614/52365));
1922
+ # - multiline_log代表:多行全文-文件日志(详见[使用多行全文提取模式采集日志](https://cloud.tencent.com/document/product/614/17422));
1923
+ # - multiline_fullregex_log代表:多行完全正则-文件日志(详见[使用多行-完全正则提取模式采集日志](https://cloud.tencent.com/document/product/614/52366));
1924
+ # - user_define_log代表:组合解析(适用于多格式嵌套的日志,详见[使用组合解析提取模式采集日志](https://cloud.tencent.com/document/product/614/61310))。
1914
1925
  # @type LogType: String
1915
- # @param ConfigFlag: 采集配置标
1926
+ # @param ConfigFlag: 采集配置标记。
1927
+ # - 目前只支持label_k8s,用于标记自建k8s集群使用的采集配置
1916
1928
  # @type ConfigFlag: String
1917
1929
  # @param LogsetId: 日志集id
1918
1930
  # @type LogsetId: String
@@ -1920,19 +1932,23 @@ module TencentCloud
1920
1932
  # @type LogsetName: String
1921
1933
  # @param TopicName: 日志主题名称
1922
1934
  # @type TopicName: String
1923
- # @param HostFile: 节点文件配置信息
1935
+ # @param HostFile: 节点文件路径类型配置。
1924
1936
  # @type HostFile: :class:`Tencentcloud::Cls.v20201016.models.HostFileInfo`
1925
- # @param ContainerFile: 容器文件路径信息
1937
+ # @param ContainerFile: 容器文件路径类型配置。
1926
1938
  # @type ContainerFile: :class:`Tencentcloud::Cls.v20201016.models.ContainerFileInfo`
1927
- # @param ContainerStdout: 容器标准输出信息
1939
+ # @param ContainerStdout: 容器标准输出类型配置。
1928
1940
  # @type ContainerStdout: :class:`Tencentcloud::Cls.v20201016.models.ContainerStdoutInfo`
1929
- # @param LogFormat: 日志格式化方式
1941
+ # @param LogFormat: 日志格式化方式,用于容器采集场景。
1942
+ # - stdout-docker-json:用于docker容器采集场景
1943
+ # - stdout-containerd:用于containerd容器采集场景
1930
1944
  # @type LogFormat: String
1931
1945
  # @param ExtractRule: 提取规则,如果设置了ExtractRule,则必须设置LogType
1932
1946
  # @type ExtractRule: :class:`Tencentcloud::Cls.v20201016.models.ExtractRuleInfo`
1933
1947
  # @param ExcludePaths: 采集黑名单路径列表
1934
1948
  # @type ExcludePaths: Array
1935
- # @param UserDefineRule: 用户自定义采集规则,Json格式序列化的字符串
1949
+ # @param UserDefineRule: 组合解析采集规则,用于复杂场景下的日志采集。
1950
+ # - 取值参考:[使用组合解析提取模式采集日志
1951
+ # ](https://cloud.tencent.com/document/product/614/61310)
1936
1952
  # @type UserDefineRule: String
1937
1953
  # @param GroupId: 绑定的机器组id
1938
1954
  # @type GroupId: String
@@ -1944,7 +1960,7 @@ module TencentCloud
1944
1960
  # - ClsAgentFileTimeout(超时属性), 取值范围: 大于等于0的整数, 0为不超时
1945
1961
  # - ClsAgentMaxDepth(最大目录深度),取值范围: 大于等于0的整数
1946
1962
  # - ClsAgentParseFailMerge(合并解析失败日志),取值范围: true或false
1947
- # 样例:{"ClsAgentFileTimeout":0,"ClsAgentMaxDepth":10,"ClsAgentParseFailMerge":true}
1963
+ # - ClsAgentDefault(自定义默认值,无特殊含义,用于清空其他选项),建议取值0
1948
1964
  # @type AdvancedConfig: String
1949
1965
 
1950
1966
  attr_accessor :Name, :TopicId, :Type, :LogType, :ConfigFlag, :LogsetId, :LogsetName, :TopicName, :HostFile, :ContainerFile, :ContainerStdout, :LogFormat, :ExtractRule, :ExcludePaths, :UserDefineRule, :GroupId, :GroupIds, :CollectInfos, :AdvancedConfig
@@ -2302,7 +2318,12 @@ module TencentCloud
2302
2318
  # @type SrcTopicId: String
2303
2319
  # @param Name: 加工任务名称
2304
2320
  # @type Name: String
2305
- # @param EtlContent: 加工语句。[创建加工任务](https://cloud.tencent.com/document/product/614/63940) [函数总览](https://cloud.tencent.com/document/product/614/70395)
2321
+ # @param EtlContent: 加工语句。 当FuncType为2时,EtlContent必须使用[log_auto_output](https://cloud.tencent.com/document/product/614/70733#b3c58797-4825-4807-bef4-68106e25024f)
2322
+
2323
+ # 其他参考文档:
2324
+
2325
+ # - [创建加工任务](https://cloud.tencent.com/document/product/614/63940)
2326
+ # - [函数总览](https://cloud.tencent.com/document/product/614/70395)
2306
2327
  # @type EtlContent: String
2307
2328
  # @param TaskType: 加工类型。
2308
2329
  # 1:使用源日志主题中的随机数据,进行加工预览;2:使用用户自定义测试数据,进行加工预览;3:创建真实加工任务。
@@ -2680,7 +2701,9 @@ module TencentCloud
2680
2701
  class CreateMachineGroupRequest < TencentCloud::Common::AbstractModel
2681
2702
  # @param GroupName: 机器组名字,不能重复
2682
2703
  # @type GroupName: String
2683
- # @param MachineGroupType: 创建机器组类型。Type:ip,Values中为ip字符串列表创建机器组;Type:label,Values中为标签字符串列表创建机器组。
2704
+ # @param MachineGroupType: 创建机器组类型。取值如下:
2705
+ # - Type:ip,Values中为ip字符串列表创建机器组
2706
+ # - Type:label,Values中为标签字符串列表创建机器组
2684
2707
  # @type MachineGroupType: :class:`Tencentcloud::Cls.v20201016.models.MachineGroupTypeInfo`
2685
2708
  # @param Tags: 标签描述列表,通过指定该参数可以同时绑定标签到相应的机器组。最大支持10个标签键值对,同一个资源只能绑定到同一个标签键下。
2686
2709
  # @type Tags: Array
@@ -2696,7 +2719,9 @@ module TencentCloud
2696
2719
  # @type DelayCleanupTime: Integer
2697
2720
  # @param MetaTags: 机器组元数据信息列表
2698
2721
  # @type MetaTags: Array
2699
- # @param OSType: 系统类型,默认0,0:Linux,1: Windows
2722
+ # @param OSType: 系统类型,取值如下:
2723
+ # - 0:Linux (默认值)
2724
+ # - 1:Windows
2700
2725
  # @type OSType: Integer
2701
2726
 
2702
2727
  attr_accessor :GroupName, :MachineGroupType, :Tags, :AutoUpdate, :UpdateStartTime, :UpdateEndTime, :ServiceLogging, :DelayCleanupTime, :MetaTags, :OSType
@@ -4302,25 +4327,22 @@ module TencentCloud
4302
4327
 
4303
4328
  # DescribeConfigExtras请求参数结构体
4304
4329
  class DescribeConfigExtrasRequest < TencentCloud::Common::AbstractModel
4305
- # @param Filters: name
4330
+ # @param Filters: 过滤器,支持如下选项:
4331
+ # name
4306
4332
  # - 按照【特殊采集配置名称】进行模糊匹配过滤。
4307
4333
  # - 类型:String
4308
- # - 必选:否
4309
4334
 
4310
4335
  # configExtraId
4311
4336
  # - 按照【特殊采集配置ID】进行过滤。
4312
4337
  # - 类型:String
4313
- # - 必选:否
4314
4338
 
4315
4339
  # topicId
4316
4340
  # - 按照【日志主题】进行过滤。
4317
4341
  # - 类型:String
4318
- # - 必选:否
4319
4342
 
4320
4343
  # machineGroupId
4321
4344
  # - 按照【机器组ID】进行过滤。
4322
4345
  # - 类型:String
4323
- # - 必选:否
4324
4346
 
4325
4347
  # 每次请求的Filters的上限为10,Filter.Values的上限为5。
4326
4348
  # @type Filters: Array
@@ -5958,7 +5980,6 @@ module TencentCloud
5958
5980
  # 注意:此字段可能返回 null,表示取不到有效值。
5959
5981
  # @type IsGBK: Integer
5960
5982
  # @param JsonStandard: 是否为标准json。 0:否; 1:是。
5961
- # 注
5962
5983
  # - 标准json指采集器使用业界标准开源解析器进行json解析,非标json指采集器使用CLS自研json解析器进行解析,两种解析器没有本质区别,建议客户使用标准json进行解析。
5963
5984
  # 注意:此字段可能返回 null,表示取不到有效值。
5964
5985
  # @type JsonStandard: Integer
@@ -7490,19 +7511,31 @@ module TencentCloud
7490
7511
  # @type TopicId: String
7491
7512
  # @param HostFile: 节点文件配置信息
7492
7513
  # @type HostFile: :class:`Tencentcloud::Cls.v20201016.models.HostFileInfo`
7493
- # @param ContainerFile: 容器文件路径信息
7514
+ # @param ContainerFile: 采集配置标记。
7515
+ # - 目前只支持label_k8s,用于标记自建k8s集群使用的采集配置
7494
7516
  # @type ContainerFile: :class:`Tencentcloud::Cls.v20201016.models.ContainerFileInfo`
7495
7517
  # @param ContainerStdout: 容器标准输出信息
7496
7518
  # @type ContainerStdout: :class:`Tencentcloud::Cls.v20201016.models.ContainerStdoutInfo`
7497
- # @param LogType: 采集的日志类型,json_log代表json格式日志,delimiter_log代表分隔符格式日志,minimalist_log代表极简日志,multiline_log代表多行日志,fullregex_log代表完整正则,默认为minimalist_log
7519
+ # @param LogType: 采集的日志类型,默认为minimalist_log。支持以下类型:
7520
+ # - json_log代表:JSON-文件日志(详见[使用 JSON 提取模式采集日志](https://cloud.tencent.com/document/product/614/17419));
7521
+ # - delimiter_log代表:分隔符-文件日志(详见[使用分隔符提取模式采集日志](https://cloud.tencent.com/document/product/614/17420));
7522
+ # - minimalist_log代表:单行全文-文件日志(详见[使用单行全文提取模式采集日志](https://cloud.tencent.com/document/product/614/17421));
7523
+ # - fullregex_log代表:单行完全正则-文件日志(详见[使用单行-完全正则提取模式采集日志](https://cloud.tencent.com/document/product/614/52365));
7524
+ # - multiline_log代表:多行全文-文件日志(详见[使用多行全文提取模式采集日志](https://cloud.tencent.com/document/product/614/17422));
7525
+ # - multiline_fullregex_log代表:多行完全正则-文件日志(详见[使用多行-完全正则提取模式采集日志](https://cloud.tencent.com/document/product/614/52366));
7526
+ # - user_define_log代表:组合解析(适用于多格式嵌套的日志,详见[使用组合解析提取模式采集日志](https://cloud.tencent.com/document/product/614/61310))。
7498
7527
  # @type LogType: String
7499
- # @param LogFormat: 日志格式化方式
7528
+ # @param LogFormat: 日志格式化方式,用于容器采集场景。
7529
+ # - stdout-docker-json:用于docker容器采集场景
7530
+ # - stdout-containerd:用于containerd容器采集场景
7500
7531
  # @type LogFormat: String
7501
7532
  # @param ExtractRule: 提取规则,如果设置了ExtractRule,则必须设置LogType
7502
7533
  # @type ExtractRule: :class:`Tencentcloud::Cls.v20201016.models.ExtractRuleInfo`
7503
7534
  # @param ExcludePaths: 采集黑名单路径列表
7504
7535
  # @type ExcludePaths: Array
7505
- # @param UserDefineRule: 用户自定义采集规则,Json格式序列化的字符串
7536
+ # @param UserDefineRule: 组合解析采集规则,用于复杂场景下的日志采集。
7537
+ # - 取值参考:[使用组合解析提取模式采集日志
7538
+ # ](https://cloud.tencent.com/document/product/614/61310)
7506
7539
  # @type UserDefineRule: String
7507
7540
  # @param Type: 类型:container_stdout、container_file、host_file
7508
7541
  # @type Type: String
@@ -7520,7 +7553,7 @@ module TencentCloud
7520
7553
  # - ClsAgentFileTimeout(超时属性), 取值范围: 大于等于0的整数, 0为不超时
7521
7554
  # - ClsAgentMaxDepth(最大目录深度),取值范围: 大于等于0的整数
7522
7555
  # - ClsAgentParseFailMerge(合并解析失败日志),取值范围: true或false
7523
- # 样例:{"ClsAgentFileTimeout":0,"ClsAgentMaxDepth":10,"ClsAgentParseFailMerge":true}
7556
+ # - ClsAgentDefault(自定义默认值,无特殊含义,用于清空其他选项),建议取值0
7524
7557
  # @type AdvancedConfig: String
7525
7558
 
7526
7559
  attr_accessor :ConfigExtraId, :Name, :TopicId, :HostFile, :ContainerFile, :ContainerStdout, :LogType, :LogFormat, :ExtractRule, :ExcludePaths, :UserDefineRule, :Type, :GroupId, :ConfigFlag, :LogsetId, :LogsetName, :TopicName, :AdvancedConfig
@@ -7864,7 +7897,12 @@ module TencentCloud
7864
7897
  # @type TaskId: String
7865
7898
  # @param Name: 加工任务名称
7866
7899
  # @type Name: String
7867
- # @param EtlContent: 加工语句
7900
+ # @param EtlContent: 加工语句。 当FuncType为2时,EtlContent必须使用[log_auto_output](https://cloud.tencent.com/document/product/614/70733#b3c58797-4825-4807-bef4-68106e25024f)
7901
+
7902
+ # 其他参考文档:
7903
+
7904
+ # - [创建加工任务](https://cloud.tencent.com/document/product/614/63940)
7905
+ # - [函数总览](https://cloud.tencent.com/document/product/614/70395)
7868
7906
  # @type EtlContent: String
7869
7907
  # @param EnableFlag: 任务启动状态. 默认为1,开启, 2关闭
7870
7908
  # @type EnableFlag: Integer
@@ -8569,13 +8607,13 @@ module TencentCloud
8569
8607
  # - WeChat - 微信
8570
8608
  # - Phone - 电话
8571
8609
  # @type ReceiverChannels: Array
8572
- # @param StartTime: 允许接收信息的开始时间。
8610
+ # @param StartTime: 允许接收信息的开始时间。格式:`15:04:05`,必填。
8573
8611
  # @type StartTime: String
8574
- # @param EndTime: 允许接收信息的结束时间。
8612
+ # @param EndTime: 允许接收信息的结束时间。格式:`15:04:05`,必填。
8575
8613
  # @type EndTime: String
8576
8614
  # @param Index: 位序。
8577
8615
 
8578
- # - 入参无效。
8616
+ # - 入参时无效。
8579
8617
  # - 出参时有效。
8580
8618
  # @type Index: Integer
8581
8619
 
@@ -8609,11 +8647,110 @@ module TencentCloud
8609
8647
  # 注意:此字段可能返回 null,表示取不到有效值。
8610
8648
  # @type WebCallbacks: Array
8611
8649
  # @param Rule: 匹配规则 JSON串。
8612
- # `{\"Value\":\"AND\",\"Type\":\"Operation\",\"Children\":[{\"Type\":\"Condition\",\"Value\":\"NotifyType\",\"Children\":[{\"Value\":\"In\",\"Type\":\"Compare\"},{\"Value\":\"[1,2]\",\"Type\":\"Value\"}]}]}
8650
+ # **rule格式为如下嵌套结构体JSON字符串**
8651
+ # ```
8652
+ # {
8653
+ # "Value": "AND",
8654
+ # "Type": "Operation",
8655
+ # "Children": [
8656
+ # {
8657
+ # "Value": "OR",
8658
+ # "Type": "Operation",
8659
+ # "Children": [
8660
+ # {
8661
+ # "Type": "Condition",
8662
+ # "Value": "Level",
8663
+ # "Children": [
8664
+ # {
8665
+ # "Value": "In",
8666
+ # "Type": "Compare"
8667
+ # },
8668
+ # {
8669
+ # "Value": "[1,0]",
8670
+ # "Type": "Value"
8671
+ # }
8672
+ # ]
8673
+ # },
8674
+ # {
8675
+ # "Type": "Condition",
8676
+ # "Value": "Level",
8677
+ # "Children": [
8678
+ # {
8679
+ # "Value": "NotIn",
8680
+ # "Type": "Compare"
8681
+ # },
8682
+ # {
8683
+ # "Value": "[2]",
8684
+ # "Type": "Value"
8685
+ # }
8686
+ # ]
8687
+ # }
8688
+ # ]
8689
+ # }
8690
+ # ]
8691
+ # }
8692
+ # ```
8693
+ # **rule规则树限制规则如下**:
8694
+ # - 顶层rule中Type可取值:`Condition`,`Operation`
8695
+ # - Type为`Operation`的子节点支持的Type可取值:`Condition`,`Operation`
8696
+ # - Type为`Condition`的子节点支持的Type可取值:`String`,`Compare`,`Array`,`TimeRange`,`Value`,`Key`
8697
+ # - 其他Type无子节点
8698
+ # - 当rule Type为`Operation`时,value可取值:`AND`,`OR`
8699
+ # - 当rule Type为`Condition`时,value不可为空,子节点个数不能小于2
8700
+ # - 当子节点Type为 `Compare` 时,value可取值:`>`,`<`,`>=`,`<=`,`=`,`!=`,`Between`,`NotBetween`,`=~`,`!=~`,`In`,`NotIn`
8701
+ # - value为`Between`,`NotBetween`时,下一个子节点value必须是长度为2的数组
8702
+ # - value为`=~`,`!=~`时,下一个子节点value必须是一个正则表达式
8703
+ # - value为`In`,`NotIn`时, 下一个子节点value必须是一个数组
8704
+
8705
+ # **业务参数含义**:
8706
+ # - Type:Condition 表示是规则条件,Value:Level 表示告警等级
8707
+ # - 子节点Type支持`Compare`,Value支持`In`,`NotIn`
8708
+ # - 下一个子节点value支持的值:0(警告),1(提醒),2 (紧急)
8709
+ # 以下示例表示:告警等级属于提醒
8710
+ # `{\"Value\":\"AND\",\"Type\":\"Operation\",\"Children\":[{\"Type\":\"Condition\",\"Value\":\"Level\",\"Children\":[{\"Value\":\"In\",\"Type\":\"Compare\"},{\"Value\":\"[1]\",\"Type\":\"Value\"}]}]}
8711
+ # `
8712
+
8713
+ # - Type:Condition 表示是规则条件,Value:NotifyType 表示通知类型
8714
+ # - 子节点Type支持`Compare`,Value支持`In`,`NotIn`
8715
+ # - 下一个子节点value支持的值:1(告警通知),2 (恢复通知)
8716
+ # 以下示例表示:通知类型属于告警通知或通知类型不属于恢复通知
8717
+ # `{\"Value\":\"AND\",\"Type\":\"Operation\",\"Children\":[{\"Value\":\"OR\",\"Type\":\"Operation\",\"Children\":[{\"Type\":\"Condition\",\"Value\":\"NotifyType\",\"Children\":[{\"Value\":\"In\",\"Type\":\"Compare\"},{\"Value\":\"[1]\",\"Type\":\"Value\"}]},{\"Type\":\"Condition\",\"Value\":\"NotifyType\",\"Children\":[{\"Value\":\"NotIn\",\"Type\":\"Compare\"},{\"Value\":\"[2]\",\"Type\":\"Value\"}]}]}]}
8718
+ # `
8719
+
8720
+ # - Type:Condition 表示是规则条件,Value:AlarmID 表示告警策略
8721
+ # - 子节点Type支持`Compare`,Value支持`In`,`NotIn`
8722
+ # - 下一个子节点value支持的值:告警策略id数组
8723
+ # 以下示例表示:告警策略属于alarm-53af048c-254b-4c73-bb48-xxx,alarm-6dfa8bc5-08da-4d64-b6cb-xxx或告警策略不属于alarm-1036314c-1e49-4cee-a8fb-xxx
8724
+ # `"{\"Value\":\"AND\",\"Type\":\"Operation\",\"Children\":[{\"Value\":\"OR\",\"Type\":\"Operation\",\"Children\":[{\"Type\":\"Condition\",\"Value\":\"AlarmID\",\"Children\":[{\"Value\":\"In\",\"Type\":\"Compare\"},{\"Value\":\"[\\\"alarm-53af048c-254b-4c73-bb48-xxx\\\",\\\"alarm-6dfa8bc5-08da-4d64-b6cb-xxx\\\"]\",\"Type\":\"Value\"}]},{\"Type\":\"Condition\",\"Value\":\"AlarmID\",\"Children\":[{\"Value\":\"NotIn\",\"Type\":\"Compare\"},{\"Value\":\"[\\\"alarm-1036314c-1e49-4cee-a8fb-xxx\\\"]\",\"Type\":\"Value\"}]}]}]}"
8725
+ # `
8726
+
8727
+ # - Type:Condition 表示是规则条件,Value:AlarmName 表示告警策略名称
8728
+ # - 子节点Type支持`Compare`,Value支持`=~`,`!=~`
8729
+ # - 下一个子节点value支持的值:必须是正则表达式
8730
+ # 以下示例表示:告警策略名称正则匹配^test$或告警策略名称正则不匹配^hahaha$
8731
+ # `{\"Value\":\"AND\",\"Type\":\"Operation\",\"Children\":[{\"Value\":\"OR\",\"Type\":\"Operation\",\"Children\":[{\"Type\":\"Condition\",\"Value\":\"AlarmName\",\"Children\":[{\"Value\":\"=~\",\"Type\":\"Compare\"},{\"Value\":\"^test$\",\"Type\":\"Value\"}]},{\"Type\":\"Condition\",\"Value\":\"AlarmName\",\"Children\":[{\"Value\":\"!=~\",\"Type\":\"Compare\"},{\"Value\":\"^hahaha$\",\"Type\":\"Value\"}]}]}]}
8732
+ # `
8733
+
8734
+ # - Type:Condition 表示是规则条件,Value:Label 表示告警分类字段
8735
+ # - 子节点Type支持`Compare`,Value支持`In`,`NotIn`,`=~`,`!=~`
8736
+ # - 下一个子节点value支持的值:`In`,`NotIn` 时value是数组,`=~`,`!=~`时value是正则表达式
8737
+ # 以下示例表示:告警分类字段key1属于v1或告警分类字段key2不属于v2或告警分类字段key3正则匹配^test$或告警分类字段key4正则不匹配^hahaha$
8738
+ # `{\"Value\":\"AND\",\"Type\":\"Operation\",\"Children\":[{\"Value\":\"OR\",\"Type\":\"Operation\",\"Children\":[{\"Type\":\"Condition\",\"Value\":\"Label\",\"Children\":[{\"Value\":\"key1\",\"Type\":\"Key\"},{\"Value\":\"In\",\"Type\":\"Compare\"},{\"Value\":\"[\\\"v1\\\"]\",\"Type\":\"Value\"}]},{\"Type\":\"Condition\",\"Value\":\"Label\",\"Children\":[{\"Value\":\"key2\",\"Type\":\"Key\"},{\"Value\":\"NotIn\",\"Type\":\"Compare\"},{\"Value\":\"[\\\"v2\\\"]\",\"Type\":\"Value\"}]},{\"Type\":\"Condition\",\"Value\":\"Label\",\"Children\":[{\"Value\":\"key3\",\"Type\":\"Key\"},{\"Value\":\"=~\",\"Type\":\"Compare\"},{\"Value\":\"^test$\",\"Type\":\"Value\"}]},{\"Type\":\"Condition\",\"Value\":\"Label\",\"Children\":[{\"Value\":\"key4\",\"Type\":\"Key\"},{\"Value\":\"!=~\",\"Type\":\"Compare\"},{\"Value\":\"^hahaha$\",\"Type\":\"Value\"}]}]}]}
8739
+ # `
8740
+
8741
+ # - Type:Condition 表示是规则条件,Value:NotifyTime 表示通知时间
8742
+ # - 子节点Type支持`Compare`,Value支持`Between `,`NotBetween `
8743
+ # - 下一个子节点value支持的值:长度为2,格式为`14:20:36`的字符串数组
8744
+ # 以下示例表示:通知时间在指定范围内14:18:36至14:33:36或通知时间不在指定范围内14:20:36至14:30:36
8745
+ # `{\"Value\":\"AND\",\"Type\":\"Operation\",\"Children\":[{\"Value\":\"OR\",\"Type\":\"Operation\",\"Children\":[{\"Type\":\"Condition\",\"Value\":\"NotifyTime\",\"Children\":[{\"Value\":\"Between\",\"Type\":\"Compare\"},{\"Value\":\"[\\\"14:18:36\\\",\\\"14:33:36\\\"]\",\"Type\":\"Value\"}]},{\"Type\":\"Condition\",\"Value\":\"NotifyTime\",\"Children\":[{\"Value\":\"NotBetween\",\"Type\":\"Compare\"},{\"Value\":\"[\\\"14:20:36\\\",\\\"14:30:36\\\"]\",\"Type\":\"Value\"}]}]}]}
8746
+ # `
8747
+
8748
+ # - Type:Condition 表示是规则条件,Value:Duration 表示告警持续时间
8749
+ # - 子节点Type支持`Compare`,Value支持`>`,`<`,`>=`,`<=`
8750
+ # - 下一个子节点value支持的值:整型值单位分钟
8751
+ # 以下示例表示:告警持续时间大于1分钟或告警持续时间大于等于2分钟或告警持续时间小于3分钟或告警持续时间小于等于4分钟
8752
+ # `{\"Value\":\"AND\",\"Type\":\"Operation\",\"Children\":[{\"Value\":\"OR\",\"Type\":\"Operation\",\"Children\":[{\"Type\":\"Condition\",\"Value\":\"Duration\",\"Children\":[{\"Value\":\">\",\"Type\":\"Compare\"},{\"Value\":1,\"Type\":\"Value\"}]},{\"Type\":\"Condition\",\"Value\":\"Duration\",\"Children\":[{\"Value\":\">=\",\"Type\":\"Compare\"},{\"Value\":2,\"Type\":\"Value\"}]},{\"Type\":\"Condition\",\"Value\":\"Duration\",\"Children\":[{\"Value\":\"<\",\"Type\":\"Compare\"},{\"Value\":3,\"Type\":\"Value\"}]},{\"Type\":\"Condition\",\"Value\":\"Duration\",\"Children\":[{\"Value\":\"<=\",\"Type\":\"Compare\"},{\"Value\":4,\"Type\":\"Value\"}]}]}]}
8613
8753
  # `
8614
- # 以上示例表示:
8615
- # 规则:
8616
- # 通知类型属于告警通知,恢复通知
8617
8754
  # 注意:此字段可能返回 null,表示取不到有效值。
8618
8755
  # @type Rule: String
8619
8756
 
@@ -8869,19 +9006,25 @@ module TencentCloud
8869
9006
  class PreviewLogStatistic < TencentCloud::Common::AbstractModel
8870
9007
  # @param LogContent: 日志内容
8871
9008
  # @type LogContent: String
8872
- # @param LineNum: 行号
9009
+ # @param LineNum: 行号。从0开始
8873
9010
  # @type LineNum: Integer
8874
9011
  # @param DstTopicId: 目标日志主题
8875
9012
  # @type DstTopicId: String
8876
- # @param FailReason: 失败错误码, 空字符串""表示正常
9013
+ # @param FailReason: 失败错误信息, 空字符串""表示正常
8877
9014
  # @type FailReason: String
8878
- # @param Time: 日志时间戳
9015
+ # @param Time: 日志时间,格式:`2024-05-07 17:13:17.105`
9016
+
9017
+ # - 入参时无效
9018
+ # - 出参时有效,为日志中的时间格式
8879
9019
  # @type Time: String
8880
9020
  # @param DstTopicName: 目标topic-name
8881
9021
  # 注意:此字段可能返回 null,表示取不到有效值。
8882
9022
  # @type DstTopicName: String
8883
9023
 
8884
9024
  attr_accessor :LogContent, :LineNum, :DstTopicId, :FailReason, :Time, :DstTopicName
9025
+ extend Gem::Deprecate
9026
+ deprecate :DstTopicName, :none, 2024, 5
9027
+ deprecate :DstTopicName=, :none, 2024, 5
8885
9028
 
8886
9029
  def initialize(logcontent=nil, linenum=nil, dsttopicid=nil, failreason=nil, time=nil, dsttopicname=nil)
8887
9030
  @LogContent = logcontent
@@ -9235,10 +9378,13 @@ module TencentCloud
9235
9378
  # @param SyntaxRule: 语法规则,0:Lucene语法,1:CQL语法
9236
9379
  # 注意:此字段可能返回 null,表示取不到有效值。
9237
9380
  # @type SyntaxRule: Integer
9381
+ # @param HasServicesLog: 是否开启投递服务日志。1:关闭,2:开启。
9382
+ # 注意:此字段可能返回 null,表示取不到有效值。
9383
+ # @type HasServicesLog: Integer
9238
9384
 
9239
- attr_accessor :TaskId, :Name, :SrcTopicId, :SrcTopicName, :DstResource, :CreateTime, :UpdateTime, :Status, :EnableFlag, :ScheduledSqlContent, :ProcessStartTime, :ProcessType, :ProcessEndTime, :ProcessPeriod, :ProcessTimeWindow, :ProcessDelay, :SrcTopicRegion, :SyntaxRule
9385
+ attr_accessor :TaskId, :Name, :SrcTopicId, :SrcTopicName, :DstResource, :CreateTime, :UpdateTime, :Status, :EnableFlag, :ScheduledSqlContent, :ProcessStartTime, :ProcessType, :ProcessEndTime, :ProcessPeriod, :ProcessTimeWindow, :ProcessDelay, :SrcTopicRegion, :SyntaxRule, :HasServicesLog
9240
9386
 
9241
- def initialize(taskid=nil, name=nil, srctopicid=nil, srctopicname=nil, dstresource=nil, createtime=nil, updatetime=nil, status=nil, enableflag=nil, scheduledsqlcontent=nil, processstarttime=nil, processtype=nil, processendtime=nil, processperiod=nil, processtimewindow=nil, processdelay=nil, srctopicregion=nil, syntaxrule=nil)
9387
+ def initialize(taskid=nil, name=nil, srctopicid=nil, srctopicname=nil, dstresource=nil, createtime=nil, updatetime=nil, status=nil, enableflag=nil, scheduledsqlcontent=nil, processstarttime=nil, processtype=nil, processendtime=nil, processperiod=nil, processtimewindow=nil, processdelay=nil, srctopicregion=nil, syntaxrule=nil, hasserviceslog=nil)
9242
9388
  @TaskId = taskid
9243
9389
  @Name = name
9244
9390
  @SrcTopicId = srctopicid
@@ -9257,6 +9403,7 @@ module TencentCloud
9257
9403
  @ProcessDelay = processdelay
9258
9404
  @SrcTopicRegion = srctopicregion
9259
9405
  @SyntaxRule = syntaxrule
9406
+ @HasServicesLog = hasserviceslog
9260
9407
  end
9261
9408
 
9262
9409
  def deserialize(params)
@@ -9281,6 +9428,7 @@ module TencentCloud
9281
9428
  @ProcessDelay = params['ProcessDelay']
9282
9429
  @SrcTopicRegion = params['SrcTopicRegion']
9283
9430
  @SyntaxRule = params['SyntaxRule']
9431
+ @HasServicesLog = params['HasServicesLog']
9284
9432
  end
9285
9433
  end
9286
9434
 
@@ -10159,9 +10307,11 @@ module TencentCloud
10159
10307
  # - Lark
10160
10308
  # @type CallbackType: String
10161
10309
  # @param Method: 回调方法。可选值:
10162
- # - POST
10310
+ # - POST(默认值)
10163
10311
  # - PUT
10164
- # 默认值为POST。CallbackType为Http时为必选。
10312
+
10313
+ # 注意:
10314
+ # - 参数CallbackType为Http时为必选。
10165
10315
  # 注意:此字段可能返回 null,表示取不到有效值。
10166
10316
  # @type Method: String
10167
10317
  # @param Headers: 请求头。
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.815
4
+ version: 3.0.816
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-05-06 00:00:00.000000000 Z
11
+ date: 2024-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -33,9 +33,9 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - lib/tencentcloud-sdk-cls.rb
37
- - lib/v20201016/models.rb
38
36
  - lib/v20201016/client.rb
37
+ - lib/v20201016/models.rb
38
+ - lib/tencentcloud-sdk-cls.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: