tencentcloud-sdk-cls 3.0.971 → 3.0.972

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: 5a88bbe7d385c5dab9c382415d69ab0d11ad1f8a
4
- data.tar.gz: aa65f1841bbe63c410603631c0d611623dbce9dd
3
+ metadata.gz: 72c28c70443f508367d68172603ed17808695736
4
+ data.tar.gz: 3cbc165c96b0bce44669b94aec6bf737c2084fa0
5
5
  SHA512:
6
- metadata.gz: 3c3d35cb67a0ea54cba1b66c9638376b133b67f2ab865fb06db625247b470c2f594d03636efe9175871f1645c789a9f0568733aa68fd641cc90d388963e4db88
7
- data.tar.gz: 16e530702244fa14a311083136eabdf463626c31f22013d23be6fc8f7a275d1998ce726805b0bdcfdfb70afd1e8f6619b3a930b40da8975665df674dc4075f04
6
+ metadata.gz: 467ebe93e2311b8b379eebb0b56822a30b577c47ced6fed2330790ae4da858f27dd171ee0e8de842cc285b335d376083616b04fd828d80b95c31446b47911467
7
+ data.tar.gz: 97c38db03dddbc562ac1479f24355fc729c00efbf009e0bda3cb8cef28a80d9864ca911c5bd65d3b5744598ef9cbaeb66a27f736fa518467fc8c0458e2edd02c
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.971
1
+ 3.0.972
@@ -660,6 +660,30 @@ module TencentCloud
660
660
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
661
661
  end
662
662
 
663
+ # 该接口用于创建告警渠道回调配置。
664
+
665
+ # @param request: Request instance for CreateWebCallback.
666
+ # @type request: :class:`Tencentcloud::cls::V20201016::CreateWebCallbackRequest`
667
+ # @rtype: :class:`Tencentcloud::cls::V20201016::CreateWebCallbackResponse`
668
+ def CreateWebCallback(request)
669
+ body = send_request('CreateWebCallback', request.serialize)
670
+ response = JSON.parse(body)
671
+ if response['Response'].key?('Error') == false
672
+ model = CreateWebCallbackResponse.new
673
+ model.deserialize(response['Response'])
674
+ model
675
+ else
676
+ code = response['Response']['Error']['Code']
677
+ message = response['Response']['Error']['Message']
678
+ reqid = response['Response']['RequestId']
679
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
680
+ end
681
+ rescue TencentCloud::Common::TencentCloudSDKException => e
682
+ raise e
683
+ rescue StandardError => e
684
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
685
+ end
686
+
663
687
  # 本接口用于删除告警策略。
664
688
 
665
689
  # @param request: Request instance for DeleteAlarm.
@@ -1164,6 +1188,30 @@ module TencentCloud
1164
1188
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1165
1189
  end
1166
1190
 
1191
+ # 该接口用于删除告警渠道回调配置。
1192
+
1193
+ # @param request: Request instance for DeleteWebCallback.
1194
+ # @type request: :class:`Tencentcloud::cls::V20201016::DeleteWebCallbackRequest`
1195
+ # @rtype: :class:`Tencentcloud::cls::V20201016::DeleteWebCallbackResponse`
1196
+ def DeleteWebCallback(request)
1197
+ body = send_request('DeleteWebCallback', request.serialize)
1198
+ response = JSON.parse(body)
1199
+ if response['Response'].key?('Error') == false
1200
+ model = DeleteWebCallbackResponse.new
1201
+ model.deserialize(response['Response'])
1202
+ model
1203
+ else
1204
+ code = response['Response']['Error']['Code']
1205
+ message = response['Response']['Error']['Message']
1206
+ reqid = response['Response']['RequestId']
1207
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1208
+ end
1209
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1210
+ raise e
1211
+ rescue StandardError => e
1212
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1213
+ end
1214
+
1167
1215
  # 该接口用于获取通知渠道组列表
1168
1216
 
1169
1217
  # @param request: Request instance for DescribeAlarmNotices.
@@ -1885,6 +1933,30 @@ module TencentCloud
1885
1933
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1886
1934
  end
1887
1935
 
1936
+ # 获取告警渠道回调配置列表。
1937
+
1938
+ # @param request: Request instance for DescribeWebCallbacks.
1939
+ # @type request: :class:`Tencentcloud::cls::V20201016::DescribeWebCallbacksRequest`
1940
+ # @rtype: :class:`Tencentcloud::cls::V20201016::DescribeWebCallbacksResponse`
1941
+ def DescribeWebCallbacks(request)
1942
+ body = send_request('DescribeWebCallbacks', request.serialize)
1943
+ response = JSON.parse(body)
1944
+ if response['Response'].key?('Error') == false
1945
+ model = DescribeWebCallbacksResponse.new
1946
+ model.deserialize(response['Response'])
1947
+ model
1948
+ else
1949
+ code = response['Response']['Error']['Code']
1950
+ message = response['Response']['Error']['Message']
1951
+ reqid = response['Response']['RequestId']
1952
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1953
+ end
1954
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1955
+ raise e
1956
+ rescue StandardError => e
1957
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1958
+ end
1959
+
1888
1960
  # 本接口用于获取告警策略执行详情
1889
1961
 
1890
1962
  # @param request: Request instance for GetAlarmLog.
@@ -2413,6 +2485,30 @@ module TencentCloud
2413
2485
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2414
2486
  end
2415
2487
 
2488
+ # 该接口用于修改告警渠道回调配置。
2489
+
2490
+ # @param request: Request instance for ModifyWebCallback.
2491
+ # @type request: :class:`Tencentcloud::cls::V20201016::ModifyWebCallbackRequest`
2492
+ # @rtype: :class:`Tencentcloud::cls::V20201016::ModifyWebCallbackResponse`
2493
+ def ModifyWebCallback(request)
2494
+ body = send_request('ModifyWebCallback', request.serialize)
2495
+ response = JSON.parse(body)
2496
+ if response['Response'].key?('Error') == false
2497
+ model = ModifyWebCallbackResponse.new
2498
+ model.deserialize(response['Response'])
2499
+ model
2500
+ else
2501
+ code = response['Response']['Error']['Code']
2502
+ message = response['Response']['Error']['Message']
2503
+ reqid = response['Response']['RequestId']
2504
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2505
+ end
2506
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2507
+ raise e
2508
+ rescue StandardError => e
2509
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2510
+ end
2511
+
2416
2512
  # 打开Kafka协议消费功能
2417
2513
 
2418
2514
  # @param request: Request instance for OpenKafkaConsumer.
@@ -727,7 +727,6 @@ module TencentCloud
727
727
  # "Key": "SyntaxRule", // 查不到这个字段也是老语法
728
728
  # "Value": "0"//0:Lucene, 1:CQL
729
729
  # }
730
- # 注意:此字段可能返回 null,表示取不到有效值。
731
730
  # @type ConfigInfo: Array
732
731
 
733
732
  attr_accessor :Name, :Type, :Content, :ConfigInfo
@@ -2338,7 +2337,7 @@ module TencentCloud
2338
2337
  # @type ContainerFile: :class:`Tencentcloud::Cls.v20201016.models.ContainerFileInfo`
2339
2338
  # @param ContainerStdout: 容器标准输出类型配置。
2340
2339
  # @type ContainerStdout: :class:`Tencentcloud::Cls.v20201016.models.ContainerStdoutInfo`
2341
- # @param LogFormat: 日志格式化方式,用于容器采集场景。
2340
+ # @param LogFormat: 日志格式化方式,用于容器采集场景。 - 已废弃
2342
2341
  # - stdout-docker-json:用于docker容器采集场景
2343
2342
  # - stdout-containerd:用于containerd容器采集场景
2344
2343
  # @type LogFormat: String
@@ -3606,6 +3605,62 @@ module TencentCloud
3606
3605
  end
3607
3606
  end
3608
3607
 
3608
+ # CreateWebCallback请求参数结构体
3609
+ class CreateWebCallbackRequest < TencentCloud::Common::AbstractModel
3610
+ # @param Name: 通知内容名称。
3611
+ # @type Name: String
3612
+ # @param Type: 渠道类型。
3613
+
3614
+ # WeCom:企业微信;DingTalk:钉钉;Lark:飞书;Http:自定义回调。
3615
+ # @type Type: String
3616
+ # @param Webhook: Webhook地址。
3617
+ # @type Webhook: String
3618
+ # @param Method: 请求方式。 支持POST、PUT。
3619
+
3620
+ # 当Type为Http时,必填。
3621
+ # @type Method: String
3622
+ # @param Key: 秘钥。
3623
+ # @type Key: String
3624
+
3625
+ attr_accessor :Name, :Type, :Webhook, :Method, :Key
3626
+
3627
+ def initialize(name=nil, type=nil, webhook=nil, method=nil, key=nil)
3628
+ @Name = name
3629
+ @Type = type
3630
+ @Webhook = webhook
3631
+ @Method = method
3632
+ @Key = key
3633
+ end
3634
+
3635
+ def deserialize(params)
3636
+ @Name = params['Name']
3637
+ @Type = params['Type']
3638
+ @Webhook = params['Webhook']
3639
+ @Method = params['Method']
3640
+ @Key = params['Key']
3641
+ end
3642
+ end
3643
+
3644
+ # CreateWebCallback返回参数结构体
3645
+ class CreateWebCallbackResponse < TencentCloud::Common::AbstractModel
3646
+ # @param WebCallbackId: 回调配置ID。
3647
+ # @type WebCallbackId: String
3648
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3649
+ # @type RequestId: String
3650
+
3651
+ attr_accessor :WebCallbackId, :RequestId
3652
+
3653
+ def initialize(webcallbackid=nil, requestid=nil)
3654
+ @WebCallbackId = webcallbackid
3655
+ @RequestId = requestid
3656
+ end
3657
+
3658
+ def deserialize(params)
3659
+ @WebCallbackId = params['WebCallbackId']
3660
+ @RequestId = params['RequestId']
3661
+ end
3662
+ end
3663
+
3609
3664
  # csv内容描述
3610
3665
  class CsvInfo < TencentCloud::Common::AbstractModel
3611
3666
  # @param PrintKey: csv首行是否打印key
@@ -4682,6 +4737,38 @@ module TencentCloud
4682
4737
  end
4683
4738
  end
4684
4739
 
4740
+ # DeleteWebCallback请求参数结构体
4741
+ class DeleteWebCallbackRequest < TencentCloud::Common::AbstractModel
4742
+ # @param WebCallbackId: 告警渠道回调配置ID。
4743
+ # @type WebCallbackId: String
4744
+
4745
+ attr_accessor :WebCallbackId
4746
+
4747
+ def initialize(webcallbackid=nil)
4748
+ @WebCallbackId = webcallbackid
4749
+ end
4750
+
4751
+ def deserialize(params)
4752
+ @WebCallbackId = params['WebCallbackId']
4753
+ end
4754
+ end
4755
+
4756
+ # DeleteWebCallback返回参数结构体
4757
+ class DeleteWebCallbackResponse < TencentCloud::Common::AbstractModel
4758
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4759
+ # @type RequestId: String
4760
+
4761
+ attr_accessor :RequestId
4762
+
4763
+ def initialize(requestid=nil)
4764
+ @RequestId = requestid
4765
+ end
4766
+
4767
+ def deserialize(params)
4768
+ @RequestId = params['RequestId']
4769
+ end
4770
+ end
4771
+
4685
4772
  # 投递配置入参
4686
4773
  class DeliverConfig < TencentCloud::Common::AbstractModel
4687
4774
  # @param Region: 地域信息。
@@ -6744,8 +6831,8 @@ module TencentCloud
6744
6831
  # <li>3: topicName 和logsetName 都精确匹配</li></ul>
6745
6832
  # @type PreciseSearch: Integer
6746
6833
  # @param BizType: 主题类型
6747
- # <ul><li>0:日志主题,默认值</li>
6748
- # <li>1:指标主题</li></ul>
6834
+ # - 0:日志主题,默认值
6835
+ # - 1:指标主题
6749
6836
  # @type BizType: Integer
6750
6837
 
6751
6838
  attr_accessor :Filters, :Offset, :Limit, :PreciseSearch, :BizType
@@ -6805,6 +6892,82 @@ module TencentCloud
6805
6892
  end
6806
6893
  end
6807
6894
 
6895
+ # DescribeWebCallbacks请求参数结构体
6896
+ class DescribeWebCallbacksRequest < TencentCloud::Common::AbstractModel
6897
+ # @param Filters: <li> name
6898
+ # 按照【告警渠道回调配置名称】进行过滤。
6899
+ # 类型:String
6900
+ # 必选:否
6901
+ # <li> webCallbackId
6902
+ # 按照【告警渠道回调配置ID】进行过滤。
6903
+ # 类型:String
6904
+ # 必选:否
6905
+ # <li> type
6906
+ # 按照【告警渠道回调配置渠道类型】进行过滤。
6907
+ # 类型:String
6908
+ # 必选:否
6909
+
6910
+ # 每次请求的Filters的上限为10,Filter.Values的上限为100。
6911
+ # @type Filters: Array
6912
+ # @param Offset: 分页的偏移量,默认值为0。
6913
+ # @type Offset: Integer
6914
+ # @param Limit: 分页单页限制数目,默认值为20,最大值100。
6915
+ # @type Limit: Integer
6916
+
6917
+ attr_accessor :Filters, :Offset, :Limit
6918
+
6919
+ def initialize(filters=nil, offset=nil, limit=nil)
6920
+ @Filters = filters
6921
+ @Offset = offset
6922
+ @Limit = limit
6923
+ end
6924
+
6925
+ def deserialize(params)
6926
+ unless params['Filters'].nil?
6927
+ @Filters = []
6928
+ params['Filters'].each do |i|
6929
+ filter_tmp = Filter.new
6930
+ filter_tmp.deserialize(i)
6931
+ @Filters << filter_tmp
6932
+ end
6933
+ end
6934
+ @Offset = params['Offset']
6935
+ @Limit = params['Limit']
6936
+ end
6937
+ end
6938
+
6939
+ # DescribeWebCallbacks返回参数结构体
6940
+ class DescribeWebCallbacksResponse < TencentCloud::Common::AbstractModel
6941
+ # @param WebCallbacks: 告警渠道回调配置列表。
6942
+ # 注意:此字段可能返回 null,表示取不到有效值。
6943
+ # @type WebCallbacks: Array
6944
+ # @param TotalCount: 符合条件的通知内容配置总数。
6945
+ # @type TotalCount: Integer
6946
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6947
+ # @type RequestId: String
6948
+
6949
+ attr_accessor :WebCallbacks, :TotalCount, :RequestId
6950
+
6951
+ def initialize(webcallbacks=nil, totalcount=nil, requestid=nil)
6952
+ @WebCallbacks = webcallbacks
6953
+ @TotalCount = totalcount
6954
+ @RequestId = requestid
6955
+ end
6956
+
6957
+ def deserialize(params)
6958
+ unless params['WebCallbacks'].nil?
6959
+ @WebCallbacks = []
6960
+ params['WebCallbacks'].each do |i|
6961
+ webcallbackinfo_tmp = WebCallbackInfo.new
6962
+ webcallbackinfo_tmp.deserialize(i)
6963
+ @WebCallbacks << webcallbackinfo_tmp
6964
+ end
6965
+ end
6966
+ @TotalCount = params['TotalCount']
6967
+ @RequestId = params['RequestId']
6968
+ end
6969
+ end
6970
+
6808
6971
  # 键值索引自动配置,启用后自动将日志内的字段添加到键值索引中,包括日志中后续新增的字段。
6809
6972
  class DynamicIndex < TencentCloud::Common::AbstractModel
6810
6973
  # @param Status: 键值索引自动配置开关
@@ -9833,6 +9996,64 @@ module TencentCloud
9833
9996
  end
9834
9997
  end
9835
9998
 
9999
+ # ModifyWebCallback请求参数结构体
10000
+ class ModifyWebCallbackRequest < TencentCloud::Common::AbstractModel
10001
+ # @param WebCallbackId: 告警渠道回调配置ID。
10002
+ # @type WebCallbackId: String
10003
+ # @param Name: 告警渠道回调配置名称。
10004
+ # @type Name: String
10005
+ # @param Type: 渠道类型
10006
+
10007
+ # WeCom:企业微信;DingTalk:钉钉;Lark:飞书;Http:自定义回调;
10008
+ # @type Type: String
10009
+ # @param Webhook: 回调地址。
10010
+ # @type Webhook: String
10011
+ # @param Method: 请求方式。
10012
+
10013
+ # 支持POST、PUT。
10014
+
10015
+ # 注意:当Type为Http时,必填。
10016
+ # @type Method: String
10017
+ # @param Key: 秘钥信息。
10018
+ # @type Key: String
10019
+
10020
+ attr_accessor :WebCallbackId, :Name, :Type, :Webhook, :Method, :Key
10021
+
10022
+ def initialize(webcallbackid=nil, name=nil, type=nil, webhook=nil, method=nil, key=nil)
10023
+ @WebCallbackId = webcallbackid
10024
+ @Name = name
10025
+ @Type = type
10026
+ @Webhook = webhook
10027
+ @Method = method
10028
+ @Key = key
10029
+ end
10030
+
10031
+ def deserialize(params)
10032
+ @WebCallbackId = params['WebCallbackId']
10033
+ @Name = params['Name']
10034
+ @Type = params['Type']
10035
+ @Webhook = params['Webhook']
10036
+ @Method = params['Method']
10037
+ @Key = params['Key']
10038
+ end
10039
+ end
10040
+
10041
+ # ModifyWebCallback返回参数结构体
10042
+ class ModifyWebCallbackResponse < TencentCloud::Common::AbstractModel
10043
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10044
+ # @type RequestId: String
10045
+
10046
+ attr_accessor :RequestId
10047
+
10048
+ def initialize(requestid=nil)
10049
+ @RequestId = requestid
10050
+ end
10051
+
10052
+ def deserialize(params)
10053
+ @RequestId = params['RequestId']
10054
+ end
10055
+ end
10056
+
9836
10057
  # 告警策略中监控任务的执行时间点
9837
10058
  class MonitorTime < TencentCloud::Common::AbstractModel
9838
10059
  # @param Type: 执行周期, 可选值:`Period`、`Fixed`、`Cron`。
@@ -11871,6 +12092,70 @@ module TencentCloud
11871
12092
  end
11872
12093
  end
11873
12094
 
12095
+ # 告警渠道回调配置信息
12096
+ class WebCallbackInfo < TencentCloud::Common::AbstractModel
12097
+ # @param WebCallbackId: 告警渠道回调配置id。
12098
+ # 注意:此字段可能返回 null,表示取不到有效值。
12099
+ # @type WebCallbackId: String
12100
+ # @param Name: 告警渠道回调配置名称。
12101
+ # 注意:此字段可能返回 null,表示取不到有效值。
12102
+ # @type Name: String
12103
+ # @param Type: 渠道类型
12104
+
12105
+ # WeCom:企业微信;DingTalk:钉钉;Lark:飞书;Http:自定义回调;
12106
+ # 注意:此字段可能返回 null,表示取不到有效值。
12107
+ # @type Type: String
12108
+ # @param Webhook: 回调地址。
12109
+ # 注意:此字段可能返回 null,表示取不到有效值。
12110
+ # @type Webhook: String
12111
+ # @param Method: 请求方式。
12112
+ # 注意:此字段可能返回 null,表示取不到有效值。
12113
+ # @type Method: String
12114
+ # @param Key: 秘钥信息。
12115
+ # 注意:此字段可能返回 null,表示取不到有效值。
12116
+ # @type Key: String
12117
+ # @param Uin: 主账号。
12118
+ # 注意:此字段可能返回 null,表示取不到有效值。
12119
+ # @type Uin: Integer
12120
+ # @param SubUin: 子账号。
12121
+ # 注意:此字段可能返回 null,表示取不到有效值。
12122
+ # @type SubUin: Integer
12123
+ # @param CreateTime: 创建时间。秒级时间戳
12124
+ # 注意:此字段可能返回 null,表示取不到有效值。
12125
+ # @type CreateTime: Integer
12126
+ # @param UpdateTime: 更新时间。秒级时间戳
12127
+ # 注意:此字段可能返回 null,表示取不到有效值。
12128
+ # @type UpdateTime: Integer
12129
+
12130
+ attr_accessor :WebCallbackId, :Name, :Type, :Webhook, :Method, :Key, :Uin, :SubUin, :CreateTime, :UpdateTime
12131
+
12132
+ def initialize(webcallbackid=nil, name=nil, type=nil, webhook=nil, method=nil, key=nil, uin=nil, subuin=nil, createtime=nil, updatetime=nil)
12133
+ @WebCallbackId = webcallbackid
12134
+ @Name = name
12135
+ @Type = type
12136
+ @Webhook = webhook
12137
+ @Method = method
12138
+ @Key = key
12139
+ @Uin = uin
12140
+ @SubUin = subuin
12141
+ @CreateTime = createtime
12142
+ @UpdateTime = updatetime
12143
+ end
12144
+
12145
+ def deserialize(params)
12146
+ @WebCallbackId = params['WebCallbackId']
12147
+ @Name = params['Name']
12148
+ @Type = params['Type']
12149
+ @Webhook = params['Webhook']
12150
+ @Method = params['Method']
12151
+ @Key = params['Key']
12152
+ @Uin = params['Uin']
12153
+ @SubUin = params['SubUin']
12154
+ @CreateTime = params['CreateTime']
12155
+ @UpdateTime = params['UpdateTime']
12156
+ end
12157
+ end
12158
+
11874
12159
  end
11875
12160
  end
11876
12161
  end
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.971
4
+ version: 3.0.972
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-12-29 00:00:00.000000000 Z
11
+ date: 2024-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common