tencentcloud-sdk-oceanus 3.0.613 → 3.0.614

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: 70fa636eeac9e0583d044ad03f2759e348ffacad
4
- data.tar.gz: e4b0414e30debd2a2e763554c2fc2357f4775205
3
+ metadata.gz: f8cbc7b48cb0ba006f33ae96c5f343db46d40695
4
+ data.tar.gz: e59d7cc14bebf773e54aa52a17a45380b27f42e0
5
5
  SHA512:
6
- metadata.gz: 2b91b48f1004049b7cb41265e36ab23fa728ce6f11de7b42db63344843a08fd7eb4db82416883f2a90eb1d0ebed6b7004b8e41b93e1b82ba859bf985a91e45c7
7
- data.tar.gz: d6cd0dadbeb3711e0f723185f1f8fcffda92a00181c0ee915b2f26f9cece4e894741590d60f7e1203c83e487c1269c8f17bb5e025cfd519d40cc902dd0637d35
6
+ metadata.gz: 5b309499fb99f5b1a408cb3aa8dc422378cc3d577c8c20ef699821b12091fed8a60f4d1d0b847744118237a34cfecf7d8e96ca9626754b6fb2f9a2b1da9789b5
7
+ data.tar.gz: 587c7af9286e00c8de439d040f9b52c8ef8781ae859db02b5424983faf9f7e25d04c04a063d354245464241afbecb6df92829fd36f85097350936bf4df45acad
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.613
1
+ 3.0.614
@@ -365,6 +365,30 @@ module TencentCloud
365
365
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
366
366
  end
367
367
 
368
+ # 查询作业实例启动日志
369
+
370
+ # @param request: Request instance for DescribeJobSubmissionLog.
371
+ # @type request: :class:`Tencentcloud::oceanus::V20190422::DescribeJobSubmissionLogRequest`
372
+ # @rtype: :class:`Tencentcloud::oceanus::V20190422::DescribeJobSubmissionLogResponse`
373
+ def DescribeJobSubmissionLog(request)
374
+ body = send_request('DescribeJobSubmissionLog', request.serialize)
375
+ response = JSON.parse(body)
376
+ if response['Response'].key?('Error') == false
377
+ model = DescribeJobSubmissionLogResponse.new
378
+ model.deserialize(response['Response'])
379
+ model
380
+ else
381
+ code = response['Response']['Error']['Code']
382
+ message = response['Response']['Error']['Message']
383
+ reqid = response['Response']['RequestId']
384
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
385
+ end
386
+ rescue TencentCloud::Common::TencentCloudSDKException => e
387
+ raise e
388
+ rescue StandardError => e
389
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
390
+ end
391
+
368
392
  # 查询作业
369
393
 
370
394
  # @param request: Request instance for DescribeJobs.
@@ -1339,6 +1339,108 @@ module TencentCloud
1339
1339
  end
1340
1340
  end
1341
1341
 
1342
+ # DescribeJobSubmissionLog请求参数结构体
1343
+ class DescribeJobSubmissionLogRequest < TencentCloud::Common::AbstractModel
1344
+ # @param JobId: 作业ID,例如:cql-6v1jkxrn
1345
+ # @type JobId: String
1346
+ # @param StartTime: 起始时间,unix时间戳,毫秒级,例如:1611754219108
1347
+ # @type StartTime: Integer
1348
+ # @param EndTime: 结束时间,unix时间戳,毫秒级,例如:1611754219108
1349
+ # @type EndTime: Integer
1350
+ # @param RunningOrderId: 作业运行的实例ID, 例如:1,2,3。默认为0,表示未选中任何实例,搜索该时间段内最近的一个实例的日志
1351
+ # @type RunningOrderId: Integer
1352
+ # @param Keyword: 日志搜索的关键词,默认为空
1353
+ # @type Keyword: String
1354
+ # @param Cursor: 日志搜索的游标,可透传上次返回的值,默认为空
1355
+ # @type Cursor: String
1356
+ # @param OrderType: 时间戳排序规则,asc - 升序,desc - 降序。默认为升序
1357
+ # @type OrderType: String
1358
+ # @param Limit: 搜索的日志条数上限值,最大为100
1359
+ # @type Limit: Integer
1360
+
1361
+ attr_accessor :JobId, :StartTime, :EndTime, :RunningOrderId, :Keyword, :Cursor, :OrderType, :Limit
1362
+
1363
+ def initialize(jobid=nil, starttime=nil, endtime=nil, runningorderid=nil, keyword=nil, cursor=nil, ordertype=nil, limit=nil)
1364
+ @JobId = jobid
1365
+ @StartTime = starttime
1366
+ @EndTime = endtime
1367
+ @RunningOrderId = runningorderid
1368
+ @Keyword = keyword
1369
+ @Cursor = cursor
1370
+ @OrderType = ordertype
1371
+ @Limit = limit
1372
+ end
1373
+
1374
+ def deserialize(params)
1375
+ @JobId = params['JobId']
1376
+ @StartTime = params['StartTime']
1377
+ @EndTime = params['EndTime']
1378
+ @RunningOrderId = params['RunningOrderId']
1379
+ @Keyword = params['Keyword']
1380
+ @Cursor = params['Cursor']
1381
+ @OrderType = params['OrderType']
1382
+ @Limit = params['Limit']
1383
+ end
1384
+ end
1385
+
1386
+ # DescribeJobSubmissionLog返回参数结构体
1387
+ class DescribeJobSubmissionLogResponse < TencentCloud::Common::AbstractModel
1388
+ # @param Cursor: 日志搜索的游标,需要搜索更多时透传这个值
1389
+ # @type Cursor: String
1390
+ # @param ListOver: 是否返回了所有的日志记录
1391
+ # @type ListOver: Boolean
1392
+ # @param JobRequestId: 作业启动的requestId
1393
+ # 注意:此字段可能返回 null,表示取不到有效值。
1394
+ # @type JobRequestId: String
1395
+ # @param JobInstanceList: 该时间段内符合关键字的所有的作业实例列表
1396
+ # 注意:此字段可能返回 null,表示取不到有效值。
1397
+ # @type JobInstanceList: Array
1398
+ # @param LogList: 废弃,请使用LogContentList
1399
+ # 注意:此字段可能返回 null,表示取不到有效值。
1400
+ # @type LogList: Array
1401
+ # @param LogContentList: 日志列表
1402
+ # 注意:此字段可能返回 null,表示取不到有效值。
1403
+ # @type LogContentList: Array
1404
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1405
+ # @type RequestId: String
1406
+
1407
+ attr_accessor :Cursor, :ListOver, :JobRequestId, :JobInstanceList, :LogList, :LogContentList, :RequestId
1408
+
1409
+ def initialize(cursor=nil, listover=nil, jobrequestid=nil, jobinstancelist=nil, loglist=nil, logcontentlist=nil, requestid=nil)
1410
+ @Cursor = cursor
1411
+ @ListOver = listover
1412
+ @JobRequestId = jobrequestid
1413
+ @JobInstanceList = jobinstancelist
1414
+ @LogList = loglist
1415
+ @LogContentList = logcontentlist
1416
+ @RequestId = requestid
1417
+ end
1418
+
1419
+ def deserialize(params)
1420
+ @Cursor = params['Cursor']
1421
+ @ListOver = params['ListOver']
1422
+ @JobRequestId = params['JobRequestId']
1423
+ unless params['JobInstanceList'].nil?
1424
+ @JobInstanceList = []
1425
+ params['JobInstanceList'].each do |i|
1426
+ jobinstanceforsubmissionlog_tmp = JobInstanceForSubmissionLog.new
1427
+ jobinstanceforsubmissionlog_tmp.deserialize(i)
1428
+ @JobInstanceList << jobinstanceforsubmissionlog_tmp
1429
+ end
1430
+ end
1431
+ @LogList = params['LogList']
1432
+ unless params['LogContentList'].nil?
1433
+ @LogContentList = []
1434
+ params['LogContentList'].each do |i|
1435
+ logcontent_tmp = LogContent.new
1436
+ logcontent_tmp.deserialize(i)
1437
+ @LogContentList << logcontent_tmp
1438
+ end
1439
+ end
1440
+ @RequestId = params['RequestId']
1441
+ end
1442
+ end
1443
+
1342
1444
  # DescribeJobs请求参数结构体
1343
1445
  class DescribeJobsRequest < TencentCloud::Common::AbstractModel
1344
1446
  # @param JobIds: 按照一个或者多个作业ID查询。作业ID形如:cql-11112222,每次请求的作业上限为100。参数不支持同时指定JobIds和Filters。
@@ -2068,6 +2170,30 @@ module TencentCloud
2068
2170
  end
2069
2171
  end
2070
2172
 
2173
+ # 搜索启动日志时返回的作业实例
2174
+ class JobInstanceForSubmissionLog < TencentCloud::Common::AbstractModel
2175
+ # @param RunningOrderId: 实例的Id, 按照启动的时间顺序,从1开始
2176
+ # @type RunningOrderId: Integer
2177
+ # @param JobInstanceStartTime: 作业实例的启动时间
2178
+ # @type JobInstanceStartTime: String
2179
+ # @param StartingMillis: 作业实例启动的时间(毫秒)
2180
+ # @type StartingMillis: Integer
2181
+
2182
+ attr_accessor :RunningOrderId, :JobInstanceStartTime, :StartingMillis
2183
+
2184
+ def initialize(runningorderid=nil, jobinstancestarttime=nil, startingmillis=nil)
2185
+ @RunningOrderId = runningorderid
2186
+ @JobInstanceStartTime = jobinstancestarttime
2187
+ @StartingMillis = startingmillis
2188
+ end
2189
+
2190
+ def deserialize(params)
2191
+ @RunningOrderId = params['RunningOrderId']
2192
+ @JobInstanceStartTime = params['JobInstanceStartTime']
2193
+ @StartingMillis = params['StartingMillis']
2194
+ end
2195
+ end
2196
+
2071
2197
  # Job详细信息
2072
2198
  class JobV1 < TencentCloud::Common::AbstractModel
2073
2199
  # @param JobId: 作业ID
@@ -2247,6 +2373,42 @@ module TencentCloud
2247
2373
  end
2248
2374
  end
2249
2375
 
2376
+ # 日志查询的每行日志信息
2377
+ class LogContent < TencentCloud::Common::AbstractModel
2378
+ # @param Log: 日志内容
2379
+ # 注意:此字段可能返回 null,表示取不到有效值。
2380
+ # @type Log: String
2381
+ # @param Time: 毫秒级时间戳
2382
+ # 注意:此字段可能返回 null,表示取不到有效值。
2383
+ # @type Time: Integer
2384
+ # @param PkgId: 日志组Id
2385
+ # 注意:此字段可能返回 null,表示取不到有效值。
2386
+ # @type PkgId: String
2387
+ # @param PkgLogId: 日志Id,在日志组范围里唯一
2388
+ # @type PkgLogId: Integer
2389
+ # @param ContainerName: 日志所属的容器名
2390
+ # 注意:此字段可能返回 null,表示取不到有效值。
2391
+ # @type ContainerName: String
2392
+
2393
+ attr_accessor :Log, :Time, :PkgId, :PkgLogId, :ContainerName
2394
+
2395
+ def initialize(log=nil, time=nil, pkgid=nil, pkglogid=nil, containername=nil)
2396
+ @Log = log
2397
+ @Time = time
2398
+ @PkgId = pkgid
2399
+ @PkgLogId = pkglogid
2400
+ @ContainerName = containername
2401
+ end
2402
+
2403
+ def deserialize(params)
2404
+ @Log = params['Log']
2405
+ @Time = params['Time']
2406
+ @PkgId = params['PkgId']
2407
+ @PkgLogId = params['PkgLogId']
2408
+ @ContainerName = params['ContainerName']
2409
+ end
2410
+ end
2411
+
2250
2412
  # ModifyJob请求参数结构体
2251
2413
  class ModifyJobRequest < TencentCloud::Common::AbstractModel
2252
2414
  # @param JobId: 作业Id
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-oceanus
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.613
4
+ version: 3.0.614
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-14 00:00:00.000000000 Z
11
+ date: 2023-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common