tencentcloud-sdk-cls 3.0.619 → 3.0.621

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d6d4112a0925985d68546594a2c1f709bf129cb8
4
- data.tar.gz: a0265b234e746e3235b66e471f856fbec1659b6d
3
+ metadata.gz: 8c669450f681fcc1c9b17ad7ede8b1b24f5972be
4
+ data.tar.gz: bbd16a347c9c0d45517de230fd3c2b4962ebad19
5
5
  SHA512:
6
- metadata.gz: 00a422f2a9e6fc4196d4d239657d61b44af79f4e74819a8d3fdb8191d1cb123f3bbb4e054d029b9724fb31317189057615e16cbb501940eabcba7ba8c44dc314
7
- data.tar.gz: 14530ed0c8fcc111132d17b1a0682e5420f319af31029f45790cd7aa73c54ac65c9aa6cf0ee1d526d92c9f912b4f0f27850c7a837da4a29ba27026973ba86aad
6
+ metadata.gz: bcfb97692f2506065b61fe9a3c98b50b5c632b90d7873bc6687a932f0021996a1505ac4ca294e1fb6310e63f11a2efbc3493515a1bac770895623aa6c8bb60c2
7
+ data.tar.gz: 805b844f5435cf496b0d97358d7f5ee03b04b6b74bf063c60e54298d83c51bceb4aecdca19f6017fdc85d240dddfc8de632aea57990b28326fa8a17a9ee3ece0
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.619
1
+ 3.0.621
@@ -797,6 +797,30 @@ module TencentCloud
797
797
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
798
798
  end
799
799
 
800
+ # 本接口用于删除ScheduledSql任务
801
+
802
+ # @param request: Request instance for DeleteScheduledSql.
803
+ # @type request: :class:`Tencentcloud::cls::V20201016::DeleteScheduledSqlRequest`
804
+ # @rtype: :class:`Tencentcloud::cls::V20201016::DeleteScheduledSqlResponse`
805
+ def DeleteScheduledSql(request)
806
+ body = send_request('DeleteScheduledSql', request.serialize)
807
+ response = JSON.parse(body)
808
+ if response['Response'].key?('Error') == false
809
+ model = DeleteScheduledSqlResponse.new
810
+ model.deserialize(response['Response'])
811
+ model
812
+ else
813
+ code = response['Response']['Error']['Code']
814
+ message = response['Response']['Error']['Message']
815
+ reqid = response['Response']['RequestId']
816
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
817
+ end
818
+ rescue TencentCloud::Common::TencentCloudSDKException => e
819
+ raise e
820
+ rescue StandardError => e
821
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
822
+ end
823
+
800
824
  # 删除投递COS任务
801
825
 
802
826
  # @param request: Request instance for DeleteShipper.
@@ -1301,6 +1325,30 @@ module TencentCloud
1301
1325
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1302
1326
  end
1303
1327
 
1328
+ # 本接口用于获取ScheduledSql任务列表
1329
+
1330
+ # @param request: Request instance for DescribeScheduledSqlInfo.
1331
+ # @type request: :class:`Tencentcloud::cls::V20201016::DescribeScheduledSqlInfoRequest`
1332
+ # @rtype: :class:`Tencentcloud::cls::V20201016::DescribeScheduledSqlInfoResponse`
1333
+ def DescribeScheduledSqlInfo(request)
1334
+ body = send_request('DescribeScheduledSqlInfo', request.serialize)
1335
+ response = JSON.parse(body)
1336
+ if response['Response'].key?('Error') == false
1337
+ model = DescribeScheduledSqlInfoResponse.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
+
1304
1352
  # 获取投递任务列表
1305
1353
 
1306
1354
  # @param request: Request instance for DescribeShipperTasks.
@@ -1685,6 +1733,30 @@ module TencentCloud
1685
1733
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1686
1734
  end
1687
1735
 
1736
+ # 本接口用于修改ScheduledSql任务
1737
+
1738
+ # @param request: Request instance for ModifyScheduledSql.
1739
+ # @type request: :class:`Tencentcloud::cls::V20201016::ModifyScheduledSqlRequest`
1740
+ # @rtype: :class:`Tencentcloud::cls::V20201016::ModifyScheduledSqlResponse`
1741
+ def ModifyScheduledSql(request)
1742
+ body = send_request('ModifyScheduledSql', request.serialize)
1743
+ response = JSON.parse(body)
1744
+ if response['Response'].key?('Error') == false
1745
+ model = ModifyScheduledSqlResponse.new
1746
+ model.deserialize(response['Response'])
1747
+ model
1748
+ else
1749
+ code = response['Response']['Error']['Code']
1750
+ message = response['Response']['Error']['Message']
1751
+ reqid = response['Response']['RequestId']
1752
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1753
+ end
1754
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1755
+ raise e
1756
+ rescue StandardError => e
1757
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1758
+ end
1759
+
1688
1760
  # 修改现有的投递规则,客户如果使用此接口,需要自行处理CLS对指定bucket的写权限。
1689
1761
 
1690
1762
  # @param request: Request instance for ModifyShipper.
@@ -2069,9 +2069,9 @@ module TencentCloud
2069
2069
  # @type Name: String
2070
2070
  # @param EnableFlag: 任务启动状态. 1正常开启, 2关闭
2071
2071
  # @type EnableFlag: Integer
2072
- # @param DstResource: 加工任务目的topic_id以及别名
2072
+ # @param DstResource: 定时SQL分析目标日志主题
2073
2073
  # @type DstResource: :class:`Tencentcloud::Cls.v20201016.models.ScheduledSqlResouceInfo`
2074
- # @param ScheduledSqlContent: ScheduledSQL语句
2074
+ # @param ScheduledSqlContent: 查询语句
2075
2075
  # @type ScheduledSqlContent: String
2076
2076
  # @param ProcessStartTime: 调度开始时间,Unix时间戳,单位ms
2077
2077
  # @type ProcessStartTime: Integer
@@ -2079,7 +2079,7 @@ module TencentCloud
2079
2079
  # @type ProcessType: Integer
2080
2080
  # @param ProcessPeriod: 调度周期(分钟)
2081
2081
  # @type ProcessPeriod: Integer
2082
- # @param ProcessTimeWindow: 调度时间窗口
2082
+ # @param ProcessTimeWindow: 单次查询的时间窗口
2083
2083
  # @type ProcessTimeWindow: String
2084
2084
  # @param ProcessDelay: 执行延迟(秒)
2085
2085
  # @type ProcessDelay: Integer
@@ -2885,6 +2885,42 @@ module TencentCloud
2885
2885
  end
2886
2886
  end
2887
2887
 
2888
+ # DeleteScheduledSql请求参数结构体
2889
+ class DeleteScheduledSqlRequest < TencentCloud::Common::AbstractModel
2890
+ # @param TaskId: 任务ID
2891
+ # @type TaskId: String
2892
+ # @param SrcTopicId: 源日志主题ID
2893
+ # @type SrcTopicId: String
2894
+
2895
+ attr_accessor :TaskId, :SrcTopicId
2896
+
2897
+ def initialize(taskid=nil, srctopicid=nil)
2898
+ @TaskId = taskid
2899
+ @SrcTopicId = srctopicid
2900
+ end
2901
+
2902
+ def deserialize(params)
2903
+ @TaskId = params['TaskId']
2904
+ @SrcTopicId = params['SrcTopicId']
2905
+ end
2906
+ end
2907
+
2908
+ # DeleteScheduledSql返回参数结构体
2909
+ class DeleteScheduledSqlResponse < TencentCloud::Common::AbstractModel
2910
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2911
+ # @type RequestId: String
2912
+
2913
+ attr_accessor :RequestId
2914
+
2915
+ def initialize(requestid=nil)
2916
+ @RequestId = requestid
2917
+ end
2918
+
2919
+ def deserialize(params)
2920
+ @RequestId = params['RequestId']
2921
+ end
2922
+ end
2923
+
2888
2924
  # DeleteShipper请求参数结构体
2889
2925
  class DeleteShipperRequest < TencentCloud::Common::AbstractModel
2890
2926
  # @param ShipperId: 投递规则ID
@@ -4211,6 +4247,65 @@ module TencentCloud
4211
4247
  end
4212
4248
  end
4213
4249
 
4250
+ # DescribeScheduledSqlInfo请求参数结构体
4251
+ class DescribeScheduledSqlInfoRequest < TencentCloud::Common::AbstractModel
4252
+ # @param Offset: 分页的偏移量,默认值为0。
4253
+ # @type Offset: Integer
4254
+ # @param Limit: 分页单页限制数目,默认值为20,最大值100。
4255
+ # @type Limit: Integer
4256
+ # @param Name: 任务名称
4257
+ # @type Name: String
4258
+ # @param TaskId: 任务id
4259
+ # @type TaskId: String
4260
+
4261
+ attr_accessor :Offset, :Limit, :Name, :TaskId
4262
+
4263
+ def initialize(offset=nil, limit=nil, name=nil, taskid=nil)
4264
+ @Offset = offset
4265
+ @Limit = limit
4266
+ @Name = name
4267
+ @TaskId = taskid
4268
+ end
4269
+
4270
+ def deserialize(params)
4271
+ @Offset = params['Offset']
4272
+ @Limit = params['Limit']
4273
+ @Name = params['Name']
4274
+ @TaskId = params['TaskId']
4275
+ end
4276
+ end
4277
+
4278
+ # DescribeScheduledSqlInfo返回参数结构体
4279
+ class DescribeScheduledSqlInfoResponse < TencentCloud::Common::AbstractModel
4280
+ # @param ScheduledSqlTaskInfos: ScheduledSQL任务列表信息
4281
+ # @type ScheduledSqlTaskInfos: Array
4282
+ # @param TotalCount: 任务总次数
4283
+ # @type TotalCount: Integer
4284
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4285
+ # @type RequestId: String
4286
+
4287
+ attr_accessor :ScheduledSqlTaskInfos, :TotalCount, :RequestId
4288
+
4289
+ def initialize(scheduledsqltaskinfos=nil, totalcount=nil, requestid=nil)
4290
+ @ScheduledSqlTaskInfos = scheduledsqltaskinfos
4291
+ @TotalCount = totalcount
4292
+ @RequestId = requestid
4293
+ end
4294
+
4295
+ def deserialize(params)
4296
+ unless params['ScheduledSqlTaskInfos'].nil?
4297
+ @ScheduledSqlTaskInfos = []
4298
+ params['ScheduledSqlTaskInfos'].each do |i|
4299
+ scheduledsqltaskinfo_tmp = ScheduledSqlTaskInfo.new
4300
+ scheduledsqltaskinfo_tmp.deserialize(i)
4301
+ @ScheduledSqlTaskInfos << scheduledsqltaskinfo_tmp
4302
+ end
4303
+ end
4304
+ @TotalCount = params['TotalCount']
4305
+ @RequestId = params['RequestId']
4306
+ end
4307
+ end
4308
+
4214
4309
  # DescribeShipperTasks请求参数结构体
4215
4310
  class DescribeShipperTasksRequest < TencentCloud::Common::AbstractModel
4216
4311
  # @param ShipperId: 投递规则ID
@@ -6372,6 +6467,81 @@ module TencentCloud
6372
6467
  end
6373
6468
  end
6374
6469
 
6470
+ # ModifyScheduledSql请求参数结构体
6471
+ class ModifyScheduledSqlRequest < TencentCloud::Common::AbstractModel
6472
+ # @param TaskId: 任务ID
6473
+ # @type TaskId: String
6474
+ # @param SrcTopicId: 源日志主题
6475
+ # @type SrcTopicId: String
6476
+ # @param EnableFlag: 任务启动状态. 1正常开启, 2关闭
6477
+ # @type EnableFlag: Integer
6478
+ # @param DstResource: 定时SQL分析的目标日志主题
6479
+ # @type DstResource: :class:`Tencentcloud::Cls.v20201016.models.ScheduledSqlResouceInfo`
6480
+ # @param ScheduledSqlContent: 查询语句
6481
+ # @type ScheduledSqlContent: String
6482
+ # @param ProcessPeriod: 调度周期(分钟)
6483
+ # @type ProcessPeriod: Integer
6484
+ # @param ProcessTimeWindow: 单次查询的时间窗口. 例子中为近15分钟
6485
+ # @type ProcessTimeWindow: String
6486
+ # @param ProcessDelay: 执行延迟(秒)
6487
+ # @type ProcessDelay: Integer
6488
+ # @param SrcTopicRegion: 源topicId的地域信息
6489
+ # @type SrcTopicRegion: String
6490
+ # @param Name: 任务名称
6491
+ # @type Name: String
6492
+ # @param SyntaxRule: 语法规则。 默认值为0。 0:Lucene语法,1:CQL语法
6493
+ # @type SyntaxRule: Integer
6494
+
6495
+ attr_accessor :TaskId, :SrcTopicId, :EnableFlag, :DstResource, :ScheduledSqlContent, :ProcessPeriod, :ProcessTimeWindow, :ProcessDelay, :SrcTopicRegion, :Name, :SyntaxRule
6496
+
6497
+ def initialize(taskid=nil, srctopicid=nil, enableflag=nil, dstresource=nil, scheduledsqlcontent=nil, processperiod=nil, processtimewindow=nil, processdelay=nil, srctopicregion=nil, name=nil, syntaxrule=nil)
6498
+ @TaskId = taskid
6499
+ @SrcTopicId = srctopicid
6500
+ @EnableFlag = enableflag
6501
+ @DstResource = dstresource
6502
+ @ScheduledSqlContent = scheduledsqlcontent
6503
+ @ProcessPeriod = processperiod
6504
+ @ProcessTimeWindow = processtimewindow
6505
+ @ProcessDelay = processdelay
6506
+ @SrcTopicRegion = srctopicregion
6507
+ @Name = name
6508
+ @SyntaxRule = syntaxrule
6509
+ end
6510
+
6511
+ def deserialize(params)
6512
+ @TaskId = params['TaskId']
6513
+ @SrcTopicId = params['SrcTopicId']
6514
+ @EnableFlag = params['EnableFlag']
6515
+ unless params['DstResource'].nil?
6516
+ @DstResource = ScheduledSqlResouceInfo.new
6517
+ @DstResource.deserialize(params['DstResource'])
6518
+ end
6519
+ @ScheduledSqlContent = params['ScheduledSqlContent']
6520
+ @ProcessPeriod = params['ProcessPeriod']
6521
+ @ProcessTimeWindow = params['ProcessTimeWindow']
6522
+ @ProcessDelay = params['ProcessDelay']
6523
+ @SrcTopicRegion = params['SrcTopicRegion']
6524
+ @Name = params['Name']
6525
+ @SyntaxRule = params['SyntaxRule']
6526
+ end
6527
+ end
6528
+
6529
+ # ModifyScheduledSql返回参数结构体
6530
+ class ModifyScheduledSqlResponse < TencentCloud::Common::AbstractModel
6531
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6532
+ # @type RequestId: String
6533
+
6534
+ attr_accessor :RequestId
6535
+
6536
+ def initialize(requestid=nil)
6537
+ @RequestId = requestid
6538
+ end
6539
+
6540
+ def deserialize(params)
6541
+ @RequestId = params['RequestId']
6542
+ end
6543
+ end
6544
+
6375
6545
  # ModifyShipper请求参数结构体
6376
6546
  class ModifyShipperRequest < TencentCloud::Common::AbstractModel
6377
6547
  # @param ShipperId: 投递规则ID
@@ -7030,6 +7200,96 @@ module TencentCloud
7030
7200
  end
7031
7201
  end
7032
7202
 
7203
+ # ScheduledSql任务详情
7204
+ class ScheduledSqlTaskInfo < TencentCloud::Common::AbstractModel
7205
+ # @param TaskId: ScheduledSql任务id
7206
+ # @type TaskId: String
7207
+ # @param Name: ScheduledSql任务名称
7208
+ # @type Name: String
7209
+ # @param SrcTopicId: 源日志主题id
7210
+ # @type SrcTopicId: String
7211
+ # @param SrcTopicName: 源日志主题名称
7212
+ # @type SrcTopicName: String
7213
+ # @param DstResource: 定时SQL分析目标主题
7214
+ # @type DstResource: :class:`Tencentcloud::Cls.v20201016.models.ScheduledSqlResouceInfo`
7215
+ # @param CreateTime: 任务创建时间
7216
+ # @type CreateTime: String
7217
+ # @param UpdateTime: 任务更新时间
7218
+ # @type UpdateTime: String
7219
+ # @param Status: 任务状态,1:运行 2:停止 3:异常-找不到源日志主题 4:异常-找不到目标主题
7220
+
7221
+ # 5: 访问权限问题 6:内部故障 7:其他故障
7222
+ # @type Status: Integer
7223
+ # @param EnableFlag: 任务启用状态,1开启, 2关闭
7224
+ # @type EnableFlag: Integer
7225
+ # @param ScheduledSqlContent: 查询语句
7226
+ # @type ScheduledSqlContent: String
7227
+ # @param ProcessStartTime: 调度开始时间
7228
+ # @type ProcessStartTime: String
7229
+ # @param ProcessType: 调度类型,1:持续运行 2:指定调度结束时间
7230
+ # @type ProcessType: Integer
7231
+ # @param ProcessEndTime: 调度结束时间,当process_type=2时为必传字段
7232
+ # @type ProcessEndTime: String
7233
+ # @param ProcessPeriod: 调度周期(分钟)
7234
+ # @type ProcessPeriod: Integer
7235
+ # @param ProcessTimeWindow: 查询的时间窗口. @m-15m, @m,意为近15分钟
7236
+ # @type ProcessTimeWindow: String
7237
+ # @param ProcessDelay: 执行延迟(秒)
7238
+ # @type ProcessDelay: Integer
7239
+ # @param SrcTopicRegion: 源topicId的地域信息
7240
+ # @type SrcTopicRegion: String
7241
+ # @param SyntaxRule: 语法规则,0:Lucene语法,1:CQL语法
7242
+ # 注意:此字段可能返回 null,表示取不到有效值。
7243
+ # @type SyntaxRule: Integer
7244
+
7245
+ attr_accessor :TaskId, :Name, :SrcTopicId, :SrcTopicName, :DstResource, :CreateTime, :UpdateTime, :Status, :EnableFlag, :ScheduledSqlContent, :ProcessStartTime, :ProcessType, :ProcessEndTime, :ProcessPeriod, :ProcessTimeWindow, :ProcessDelay, :SrcTopicRegion, :SyntaxRule
7246
+
7247
+ 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)
7248
+ @TaskId = taskid
7249
+ @Name = name
7250
+ @SrcTopicId = srctopicid
7251
+ @SrcTopicName = srctopicname
7252
+ @DstResource = dstresource
7253
+ @CreateTime = createtime
7254
+ @UpdateTime = updatetime
7255
+ @Status = status
7256
+ @EnableFlag = enableflag
7257
+ @ScheduledSqlContent = scheduledsqlcontent
7258
+ @ProcessStartTime = processstarttime
7259
+ @ProcessType = processtype
7260
+ @ProcessEndTime = processendtime
7261
+ @ProcessPeriod = processperiod
7262
+ @ProcessTimeWindow = processtimewindow
7263
+ @ProcessDelay = processdelay
7264
+ @SrcTopicRegion = srctopicregion
7265
+ @SyntaxRule = syntaxrule
7266
+ end
7267
+
7268
+ def deserialize(params)
7269
+ @TaskId = params['TaskId']
7270
+ @Name = params['Name']
7271
+ @SrcTopicId = params['SrcTopicId']
7272
+ @SrcTopicName = params['SrcTopicName']
7273
+ unless params['DstResource'].nil?
7274
+ @DstResource = ScheduledSqlResouceInfo.new
7275
+ @DstResource.deserialize(params['DstResource'])
7276
+ end
7277
+ @CreateTime = params['CreateTime']
7278
+ @UpdateTime = params['UpdateTime']
7279
+ @Status = params['Status']
7280
+ @EnableFlag = params['EnableFlag']
7281
+ @ScheduledSqlContent = params['ScheduledSqlContent']
7282
+ @ProcessStartTime = params['ProcessStartTime']
7283
+ @ProcessType = params['ProcessType']
7284
+ @ProcessEndTime = params['ProcessEndTime']
7285
+ @ProcessPeriod = params['ProcessPeriod']
7286
+ @ProcessTimeWindow = params['ProcessTimeWindow']
7287
+ @ProcessDelay = params['ProcessDelay']
7288
+ @SrcTopicRegion = params['SrcTopicRegion']
7289
+ @SyntaxRule = params['SyntaxRule']
7290
+ end
7291
+ end
7292
+
7033
7293
  # SearchLog请求参数结构体
7034
7294
  class SearchLogRequest < TencentCloud::Common::AbstractModel
7035
7295
  # @param From: 要检索分析的日志的起始时间,Unix时间戳(毫秒)
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.619
4
+ version: 3.0.621
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-24 00:00:00.000000000 Z
11
+ date: 2023-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common