tencentcloud-sdk-dlc 3.0.923 → 3.0.924
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/v20210125/client.rb +24 -0
- data/lib/v20210125/models.rb +171 -6
- 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: 7b715fac88d63e721e150a20cd60005750b3539c
|
4
|
+
data.tar.gz: 87bfa6432effe44c3d905ef943c4266cb857cacf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac2b466f56e5bb13573ef6df240b1551f7b1b66d7591cdbde26903100bb5054325851df0effef3081e8b65a2830da503ff98c529863f5424e6c76f04376e93a3
|
7
|
+
data.tar.gz: 1f2a3e9776db5d5297afd3840a8c090df04f5d090e33c668ba67e54f544e42ffd9a8dc0f1847def51311ee7c5adf7b649a6cf9c843bd2650e55143bb8d419afd
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.924
|
data/lib/v20210125/client.rb
CHANGED
@@ -2261,6 +2261,30 @@ module TencentCloud
|
|
2261
2261
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2262
2262
|
end
|
2263
2263
|
|
2264
|
+
# 该接口用于洞察分析列表
|
2265
|
+
|
2266
|
+
# @param request: Request instance for DescribeTasksAnalysis.
|
2267
|
+
# @type request: :class:`Tencentcloud::dlc::V20210125::DescribeTasksAnalysisRequest`
|
2268
|
+
# @rtype: :class:`Tencentcloud::dlc::V20210125::DescribeTasksAnalysisResponse`
|
2269
|
+
def DescribeTasksAnalysis(request)
|
2270
|
+
body = send_request('DescribeTasksAnalysis', request.serialize)
|
2271
|
+
response = JSON.parse(body)
|
2272
|
+
if response['Response'].key?('Error') == false
|
2273
|
+
model = DescribeTasksAnalysisResponse.new
|
2274
|
+
model.deserialize(response['Response'])
|
2275
|
+
model
|
2276
|
+
else
|
2277
|
+
code = response['Response']['Error']['Code']
|
2278
|
+
message = response['Response']['Error']['Message']
|
2279
|
+
reqid = response['Response']['RequestId']
|
2280
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2281
|
+
end
|
2282
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2283
|
+
raise e
|
2284
|
+
rescue StandardError => e
|
2285
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2286
|
+
end
|
2287
|
+
|
2264
2288
|
# 该接口(DescribeTasksCostInfo)用于查询任务消耗
|
2265
2289
|
|
2266
2290
|
# @param request: Request instance for DescribeTasksCostInfo.
|
data/lib/v20210125/models.rb
CHANGED
@@ -376,6 +376,89 @@ module TencentCloud
|
|
376
376
|
end
|
377
377
|
end
|
378
378
|
|
379
|
+
# 洞察分析结果返回体
|
380
|
+
class AnalysisTaskResults < TencentCloud::Common::AbstractModel
|
381
|
+
# @param Id: 任务Id
|
382
|
+
# @type Id: String
|
383
|
+
# @param InstanceStartTime: 任务创建时间,毫秒时间戳
|
384
|
+
# @type InstanceStartTime: Integer
|
385
|
+
# @param InstanceCompleteTime: 任务结束时间,毫秒时间戳
|
386
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
387
|
+
# @type InstanceCompleteTime: Integer
|
388
|
+
# @param State: 任务状态:0 初始化, 1 执行中, 2 执行成功,3 数据写入中,4 排队中。-1 执行失败,-3 已取消。
|
389
|
+
# @type State: Integer
|
390
|
+
# @param SQL: 任务SQL语句
|
391
|
+
# @type SQL: String
|
392
|
+
# @param DataEngineName: 计算资源名字
|
393
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
394
|
+
# @type DataEngineName: String
|
395
|
+
# @param JobTimeSum: 单位毫秒,引擎内执行耗时
|
396
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
397
|
+
# @type JobTimeSum: Integer
|
398
|
+
# @param TaskTimeSum: 单位秒,CU资源消耗
|
399
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
400
|
+
# @type TaskTimeSum: Integer
|
401
|
+
# @param InputRecordsSum: 数据扫描总行数
|
402
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
403
|
+
# @type InputRecordsSum: Integer
|
404
|
+
# @param InputBytesSum: 数据扫描总 bytes
|
405
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
406
|
+
# @type InputBytesSum: Integer
|
407
|
+
# @param OutputRecordsSum: 输出总行数
|
408
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
409
|
+
# @type OutputRecordsSum: Integer
|
410
|
+
# @param OutputBytesSum: 输出总 bytes
|
411
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
412
|
+
# @type OutputBytesSum: Integer
|
413
|
+
# @param ShuffleReadBytesSum: shuffle read 总 bytes
|
414
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
415
|
+
# @type ShuffleReadBytesSum: Integer
|
416
|
+
# @param ShuffleReadRecordsSum: shuffle read 总行数
|
417
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
418
|
+
# @type ShuffleReadRecordsSum: Integer
|
419
|
+
# @param AnalysisStatus: 洞察结果类型分类,一个 json 数组,有如下几种类型:SPARK-StageScheduleDelay(资源抢占), SPARK-ShuffleFailure(Shuffle异常), SPARK-SlowTask(慢task), SPARK-DataSkew(数据倾斜), SPARK-InsufficientResource(磁盘或内存不足)
|
420
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
421
|
+
# @type AnalysisStatus: String
|
422
|
+
|
423
|
+
attr_accessor :Id, :InstanceStartTime, :InstanceCompleteTime, :State, :SQL, :DataEngineName, :JobTimeSum, :TaskTimeSum, :InputRecordsSum, :InputBytesSum, :OutputRecordsSum, :OutputBytesSum, :ShuffleReadBytesSum, :ShuffleReadRecordsSum, :AnalysisStatus
|
424
|
+
|
425
|
+
def initialize(id=nil, instancestarttime=nil, instancecompletetime=nil, state=nil, sql=nil, dataenginename=nil, jobtimesum=nil, tasktimesum=nil, inputrecordssum=nil, inputbytessum=nil, outputrecordssum=nil, outputbytessum=nil, shufflereadbytessum=nil, shufflereadrecordssum=nil, analysisstatus=nil)
|
426
|
+
@Id = id
|
427
|
+
@InstanceStartTime = instancestarttime
|
428
|
+
@InstanceCompleteTime = instancecompletetime
|
429
|
+
@State = state
|
430
|
+
@SQL = sql
|
431
|
+
@DataEngineName = dataenginename
|
432
|
+
@JobTimeSum = jobtimesum
|
433
|
+
@TaskTimeSum = tasktimesum
|
434
|
+
@InputRecordsSum = inputrecordssum
|
435
|
+
@InputBytesSum = inputbytessum
|
436
|
+
@OutputRecordsSum = outputrecordssum
|
437
|
+
@OutputBytesSum = outputbytessum
|
438
|
+
@ShuffleReadBytesSum = shufflereadbytessum
|
439
|
+
@ShuffleReadRecordsSum = shufflereadrecordssum
|
440
|
+
@AnalysisStatus = analysisstatus
|
441
|
+
end
|
442
|
+
|
443
|
+
def deserialize(params)
|
444
|
+
@Id = params['Id']
|
445
|
+
@InstanceStartTime = params['InstanceStartTime']
|
446
|
+
@InstanceCompleteTime = params['InstanceCompleteTime']
|
447
|
+
@State = params['State']
|
448
|
+
@SQL = params['SQL']
|
449
|
+
@DataEngineName = params['DataEngineName']
|
450
|
+
@JobTimeSum = params['JobTimeSum']
|
451
|
+
@TaskTimeSum = params['TaskTimeSum']
|
452
|
+
@InputRecordsSum = params['InputRecordsSum']
|
453
|
+
@InputBytesSum = params['InputBytesSum']
|
454
|
+
@OutputRecordsSum = params['OutputRecordsSum']
|
455
|
+
@OutputBytesSum = params['OutputBytesSum']
|
456
|
+
@ShuffleReadBytesSum = params['ShuffleReadBytesSum']
|
457
|
+
@ShuffleReadRecordsSum = params['ShuffleReadRecordsSum']
|
458
|
+
@AnalysisStatus = params['AnalysisStatus']
|
459
|
+
end
|
460
|
+
end
|
461
|
+
|
379
462
|
# 元数据基本对象
|
380
463
|
class Asset < TencentCloud::Common::AbstractModel
|
381
464
|
# @param Id: 主键
|
@@ -1635,8 +1718,8 @@ module TencentCloud
|
|
1635
1718
|
|
1636
1719
|
attr_accessor :EngineType, :DataEngineName, :ClusterType, :Mode, :AutoResume, :MinClusters, :MaxClusters, :DefaultDataEngine, :CidrBlock, :Message, :Size, :PayMode, :TimeSpan, :TimeUnit, :AutoRenew, :Tags, :AutoSuspend, :CrontabResumeSuspend, :CrontabResumeSuspendStrategy, :EngineExecType, :MaxConcurrency, :TolerableQueueTime, :AutoSuspendTime, :ResourceType, :DataEngineConfigPairs, :ImageVersionName, :MainClusterName, :ElasticSwitch, :ElasticLimit, :SessionResourceTemplate, :AutoAuthorization, :EngineNetworkId, :EngineGeneration
|
1637
1720
|
extend Gem::Deprecate
|
1638
|
-
deprecate :DefaultDataEngine, :none, 2024,
|
1639
|
-
deprecate :DefaultDataEngine=, :none, 2024,
|
1721
|
+
deprecate :DefaultDataEngine, :none, 2024, 10
|
1722
|
+
deprecate :DefaultDataEngine=, :none, 2024, 10
|
1640
1723
|
|
1641
1724
|
def initialize(enginetype=nil, dataenginename=nil, clustertype=nil, mode=nil, autoresume=nil, minclusters=nil, maxclusters=nil, defaultdataengine=nil, cidrblock=nil, message=nil, size=nil, paymode=nil, timespan=nil, timeunit=nil, autorenew=nil, tags=nil, autosuspend=nil, crontabresumesuspend=nil, crontabresumesuspendstrategy=nil, engineexectype=nil, maxconcurrency=nil, tolerablequeuetime=nil, autosuspendtime=nil, resourcetype=nil, dataengineconfigpairs=nil, imageversionname=nil, mainclustername=nil, elasticswitch=nil, elasticlimit=nil, sessionresourcetemplate=nil, autoauthorization=nil, enginenetworkid=nil, enginegeneration=nil)
|
1642
1725
|
@EngineType = enginetype
|
@@ -7366,6 +7449,88 @@ module TencentCloud
|
|
7366
7449
|
end
|
7367
7450
|
end
|
7368
7451
|
|
7452
|
+
# DescribeTasksAnalysis请求参数结构体
|
7453
|
+
class DescribeTasksAnalysisRequest < TencentCloud::Common::AbstractModel
|
7454
|
+
# @param DataEngineName: 数据引擎名称,用于筛选
|
7455
|
+
# @type DataEngineName: String
|
7456
|
+
# @param Limit: 返回数量,默认为10,最大值为100。
|
7457
|
+
# @type Limit: Integer
|
7458
|
+
# @param Offset: 偏移量,默认为0。
|
7459
|
+
# @type Offset: Integer
|
7460
|
+
# @param Filters: 过滤条件,如下支持的过滤类型,传参Name应为以下其中一个: task-id - String - (任务ID准确过滤)task-id 取值形如:e386471f-139a-4e59-877f-50ece8135b99。task-state - String - (任务状态过滤)取值范围 0(初始化), 1(运行中), 2(成功), -1(失败),rule-id - String - (洞察类型)取值范围 SPARK-StageScheduleDelay(资源抢占), SPARK-ShuffleFailure(Shuffle异常), SPARK-SlowTask(慢task), SPARK-DataSkew(数据倾斜), SPARK-InsufficientResource(磁盘或内存不足)
|
7461
|
+
# @type Filters: Array
|
7462
|
+
# @param SortBy: 排序字段,支持如下字段类型,instance-start-time (任务开始时间), instance-complete-time (任务结束时间),job-time-sum (单位毫秒,引擎内执行耗时),task-time-sum (CU资源消耗,单位秒),input-bytes-sum(数据扫描总大小,单位bytes),shuffle-read-bytes-sum(数据shuffle总大小,单位bytes)
|
7463
|
+
# @type SortBy: String
|
7464
|
+
# @param Sorting: 排序方式,desc表示正序,asc表示反序, 默认为asc。
|
7465
|
+
# @type Sorting: String
|
7466
|
+
# @param StartTime: 起始时间点,格式为yyyy-mm-dd HH:MM:SS
|
7467
|
+
# @type StartTime: String
|
7468
|
+
# @param EndTime: 结束时间点,格式为yyyy-mm-dd HH:MM:SS时间跨度在(0,30天],支持最近45天数据查询。默认为当前时刻
|
7469
|
+
# @type EndTime: String
|
7470
|
+
|
7471
|
+
attr_accessor :DataEngineName, :Limit, :Offset, :Filters, :SortBy, :Sorting, :StartTime, :EndTime
|
7472
|
+
|
7473
|
+
def initialize(dataenginename=nil, limit=nil, offset=nil, filters=nil, sortby=nil, sorting=nil, starttime=nil, endtime=nil)
|
7474
|
+
@DataEngineName = dataenginename
|
7475
|
+
@Limit = limit
|
7476
|
+
@Offset = offset
|
7477
|
+
@Filters = filters
|
7478
|
+
@SortBy = sortby
|
7479
|
+
@Sorting = sorting
|
7480
|
+
@StartTime = starttime
|
7481
|
+
@EndTime = endtime
|
7482
|
+
end
|
7483
|
+
|
7484
|
+
def deserialize(params)
|
7485
|
+
@DataEngineName = params['DataEngineName']
|
7486
|
+
@Limit = params['Limit']
|
7487
|
+
@Offset = params['Offset']
|
7488
|
+
unless params['Filters'].nil?
|
7489
|
+
@Filters = []
|
7490
|
+
params['Filters'].each do |i|
|
7491
|
+
filter_tmp = Filter.new
|
7492
|
+
filter_tmp.deserialize(i)
|
7493
|
+
@Filters << filter_tmp
|
7494
|
+
end
|
7495
|
+
end
|
7496
|
+
@SortBy = params['SortBy']
|
7497
|
+
@Sorting = params['Sorting']
|
7498
|
+
@StartTime = params['StartTime']
|
7499
|
+
@EndTime = params['EndTime']
|
7500
|
+
end
|
7501
|
+
end
|
7502
|
+
|
7503
|
+
# DescribeTasksAnalysis返回参数结构体
|
7504
|
+
class DescribeTasksAnalysisResponse < TencentCloud::Common::AbstractModel
|
7505
|
+
# @param TaskList: 洞察结果分页列表
|
7506
|
+
# @type TaskList: Array
|
7507
|
+
# @param TotalCount: 洞察结果总数
|
7508
|
+
# @type TotalCount: Integer
|
7509
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
7510
|
+
# @type RequestId: String
|
7511
|
+
|
7512
|
+
attr_accessor :TaskList, :TotalCount, :RequestId
|
7513
|
+
|
7514
|
+
def initialize(tasklist=nil, totalcount=nil, requestid=nil)
|
7515
|
+
@TaskList = tasklist
|
7516
|
+
@TotalCount = totalcount
|
7517
|
+
@RequestId = requestid
|
7518
|
+
end
|
7519
|
+
|
7520
|
+
def deserialize(params)
|
7521
|
+
unless params['TaskList'].nil?
|
7522
|
+
@TaskList = []
|
7523
|
+
params['TaskList'].each do |i|
|
7524
|
+
analysistaskresults_tmp = AnalysisTaskResults.new
|
7525
|
+
analysistaskresults_tmp.deserialize(i)
|
7526
|
+
@TaskList << analysistaskresults_tmp
|
7527
|
+
end
|
7528
|
+
end
|
7529
|
+
@TotalCount = params['TotalCount']
|
7530
|
+
@RequestId = params['RequestId']
|
7531
|
+
end
|
7532
|
+
end
|
7533
|
+
|
7369
7534
|
# DescribeTasksCostInfo请求参数结构体
|
7370
7535
|
class DescribeTasksCostInfoRequest < TencentCloud::Common::AbstractModel
|
7371
7536
|
# @param Filters: 过滤条件,如下支持的过滤类型,传参Name应为以下其中一个,其中task-id支持最大50个过滤个数,其他过滤参数支持的总数不超过5个。
|
@@ -12079,10 +12244,10 @@ module TencentCloud
|
|
12079
12244
|
|
12080
12245
|
attr_accessor :DatabaseName, :TableName, :DatasourceConnectionName, :TableComment, :Type, :TableFormat, :UserAlias, :UserSubUin, :GovernPolicy, :DbGovernPolicyIsDisable, :SmartPolicy
|
12081
12246
|
extend Gem::Deprecate
|
12082
|
-
deprecate :GovernPolicy, :none, 2024,
|
12083
|
-
deprecate :GovernPolicy=, :none, 2024,
|
12084
|
-
deprecate :DbGovernPolicyIsDisable, :none, 2024,
|
12085
|
-
deprecate :DbGovernPolicyIsDisable=, :none, 2024,
|
12247
|
+
deprecate :GovernPolicy, :none, 2024, 10
|
12248
|
+
deprecate :GovernPolicy=, :none, 2024, 10
|
12249
|
+
deprecate :DbGovernPolicyIsDisable, :none, 2024, 10
|
12250
|
+
deprecate :DbGovernPolicyIsDisable=, :none, 2024, 10
|
12086
12251
|
|
12087
12252
|
def initialize(databasename=nil, tablename=nil, datasourceconnectionname=nil, tablecomment=nil, type=nil, tableformat=nil, useralias=nil, usersubuin=nil, governpolicy=nil, dbgovernpolicyisdisable=nil, smartpolicy=nil)
|
12088
12253
|
@DatabaseName = databasename
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-dlc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.924
|
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-10-
|
11
|
+
date: 2024-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|