tencentcloud-sdk-oceanus 3.0.730 → 3.0.731

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: fea1a5d4ea7d41b923734f578ccf7d6212bbaa55
4
- data.tar.gz: edab4ca49d5e0ee3161e05bf40ed06c048f3559a
3
+ metadata.gz: 4c1030caf4b63cd7b797b2264fb580db59be5495
4
+ data.tar.gz: c91d36089ae58ed5b221b8e703ddcb00e7bd445f
5
5
  SHA512:
6
- metadata.gz: cc6c70eab6062e1913cb6c1c13b3140d072df37ad95cf73afa9214eac9857f97b19cefee486922fca8c2bd57edc249e6e87ee5ab306ad78efe89a5b5e35970f6
7
- data.tar.gz: a1fb7d27e8f81a71ccf715442ee082500f78a94f867ff5c05a6354b09555c2229cfe41ccd90b4772c364cf0cac77deb240e997d313778e0684301f3df508d7a7
6
+ metadata.gz: a1766ee1245cae509bafc2beb8c44ecdd0a0668d2fd96080c1a319349c0b24fe752ca4eb8412f15c61c0deefbf31e958b695cc7bbbb5fb7abd454935070cf19d
7
+ data.tar.gz: f3357d3a12e23f799fe09221d81aac4b93fb84f08f4316f317b03f6036d1522d80fcde5e294af44a9ec707262119c26c70dc2f661763ec3ae03f2ec367ec9a06
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.730
1
+ 3.0.731
@@ -461,6 +461,30 @@ module TencentCloud
461
461
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
462
462
  end
463
463
 
464
+ # 获取指定作业的事件,包括作业启动停止、运行失败、快照失败、作业异常等各种事件类型
465
+
466
+ # @param request: Request instance for DescribeJobEvents.
467
+ # @type request: :class:`Tencentcloud::oceanus::V20190422::DescribeJobEventsRequest`
468
+ # @rtype: :class:`Tencentcloud::oceanus::V20190422::DescribeJobEventsResponse`
469
+ def DescribeJobEvents(request)
470
+ body = send_request('DescribeJobEvents', request.serialize)
471
+ response = JSON.parse(body)
472
+ if response['Response'].key?('Error') == false
473
+ model = DescribeJobEventsResponse.new
474
+ model.deserialize(response['Response'])
475
+ model
476
+ else
477
+ code = response['Response']['Error']['Code']
478
+ message = response['Response']['Error']['Message']
479
+ reqid = response['Response']['RequestId']
480
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
481
+ end
482
+ rescue TencentCloud::Common::TencentCloudSDKException => e
483
+ raise e
484
+ rescue StandardError => e
485
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
486
+ end
487
+
464
488
  # 查找Savepoint列表
465
489
 
466
490
  # @param request: Request instance for DescribeJobSavepoint.
@@ -1679,6 +1679,80 @@ module TencentCloud
1679
1679
  end
1680
1680
  end
1681
1681
 
1682
+ # DescribeJobEvents请求参数结构体
1683
+ class DescribeJobEventsRequest < TencentCloud::Common::AbstractModel
1684
+ # @param JobId: 作业的 ID
1685
+ # @type JobId: String
1686
+ # @param StartTimestamp: 筛选条件:起始 Unix 时间戳(秒)
1687
+ # @type StartTimestamp: Integer
1688
+ # @param EndTimestamp: 筛选条件:结束 Unix 时间戳(秒)
1689
+ # @type EndTimestamp: Integer
1690
+ # @param Types: 事件类型。如果不传则返回所有类型的数据
1691
+ # @type Types: Array
1692
+ # @param RunningOrderIds: 运行实例 ID 数组
1693
+ # @type RunningOrderIds: Array
1694
+ # @param WorkSpaceId: 工作空间 SerialId
1695
+ # @type WorkSpaceId: String
1696
+
1697
+ attr_accessor :JobId, :StartTimestamp, :EndTimestamp, :Types, :RunningOrderIds, :WorkSpaceId
1698
+
1699
+ def initialize(jobid=nil, starttimestamp=nil, endtimestamp=nil, types=nil, runningorderids=nil, workspaceid=nil)
1700
+ @JobId = jobid
1701
+ @StartTimestamp = starttimestamp
1702
+ @EndTimestamp = endtimestamp
1703
+ @Types = types
1704
+ @RunningOrderIds = runningorderids
1705
+ @WorkSpaceId = workspaceid
1706
+ end
1707
+
1708
+ def deserialize(params)
1709
+ @JobId = params['JobId']
1710
+ @StartTimestamp = params['StartTimestamp']
1711
+ @EndTimestamp = params['EndTimestamp']
1712
+ @Types = params['Types']
1713
+ @RunningOrderIds = params['RunningOrderIds']
1714
+ @WorkSpaceId = params['WorkSpaceId']
1715
+ end
1716
+ end
1717
+
1718
+ # DescribeJobEvents返回参数结构体
1719
+ class DescribeJobEventsResponse < TencentCloud::Common::AbstractModel
1720
+ # @param Events: 该作业指定范围内的事件列表
1721
+ # 注意:此字段可能返回 null,表示取不到有效值。
1722
+ # @type Events: Array
1723
+ # @param RunningOrderIds: 该作业指定范围内运行实例 ID 数组,仅当入参没有传入 RunningOrderIds 参数时才会返回。倒序输出
1724
+ # 注意:此字段可能返回 null,表示取不到有效值。
1725
+ # @type RunningOrderIds: Array
1726
+ # @param TotalCount: 事件的总数
1727
+ # 注意:此字段可能返回 null,表示取不到有效值。
1728
+ # @type TotalCount: Integer
1729
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1730
+ # @type RequestId: String
1731
+
1732
+ attr_accessor :Events, :RunningOrderIds, :TotalCount, :RequestId
1733
+
1734
+ def initialize(events=nil, runningorderids=nil, totalcount=nil, requestid=nil)
1735
+ @Events = events
1736
+ @RunningOrderIds = runningorderids
1737
+ @TotalCount = totalcount
1738
+ @RequestId = requestid
1739
+ end
1740
+
1741
+ def deserialize(params)
1742
+ unless params['Events'].nil?
1743
+ @Events = []
1744
+ params['Events'].each do |i|
1745
+ jobevent_tmp = JobEvent.new
1746
+ jobevent_tmp.deserialize(i)
1747
+ @Events << jobevent_tmp
1748
+ end
1749
+ end
1750
+ @RunningOrderIds = params['RunningOrderIds']
1751
+ @TotalCount = params['TotalCount']
1752
+ @RequestId = params['RequestId']
1753
+ end
1754
+ end
1755
+
1682
1756
  # DescribeJobSavepoint请求参数结构体
1683
1757
  class DescribeJobSavepointRequest < TencentCloud::Common::AbstractModel
1684
1758
  # @param JobId: 作业 SerialId
@@ -2933,6 +3007,45 @@ module TencentCloud
2933
3007
  end
2934
3008
  end
2935
3009
 
3010
+ # 描述作业发生的一个事件
3011
+ class JobEvent < TencentCloud::Common::AbstractModel
3012
+ # @param Type: 内部定义的事件类型
3013
+ # @type Type: String
3014
+ # @param Description: 事件类型的说明文字
3015
+ # @type Description: String
3016
+ # @param Timestamp: 事件发生的 Unix 时间戳(秒)
3017
+ # @type Timestamp: Integer
3018
+ # @param RunningOrderId: 事件发生时的运行 ID
3019
+ # 注意:此字段可能返回 null,表示取不到有效值。
3020
+ # @type RunningOrderId: Integer
3021
+ # @param Message: 事件的一些可选说明
3022
+ # 注意:此字段可能返回 null,表示取不到有效值。
3023
+ # @type Message: String
3024
+ # @param SolutionLink: 异常事件的排查手册链接
3025
+ # 注意:此字段可能返回 null,表示取不到有效值。
3026
+ # @type SolutionLink: String
3027
+
3028
+ attr_accessor :Type, :Description, :Timestamp, :RunningOrderId, :Message, :SolutionLink
3029
+
3030
+ def initialize(type=nil, description=nil, timestamp=nil, runningorderid=nil, message=nil, solutionlink=nil)
3031
+ @Type = type
3032
+ @Description = description
3033
+ @Timestamp = timestamp
3034
+ @RunningOrderId = runningorderid
3035
+ @Message = message
3036
+ @SolutionLink = solutionlink
3037
+ end
3038
+
3039
+ def deserialize(params)
3040
+ @Type = params['Type']
3041
+ @Description = params['Description']
3042
+ @Timestamp = params['Timestamp']
3043
+ @RunningOrderId = params['RunningOrderId']
3044
+ @Message = params['Message']
3045
+ @SolutionLink = params['SolutionLink']
3046
+ end
3047
+ end
3048
+
2936
3049
  # 作业运行图
2937
3050
  class JobGraph < TencentCloud::Common::AbstractModel
2938
3051
  # @param Nodes: 运行图的点集合
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.730
4
+ version: 3.0.731
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-12-18 00:00:00.000000000 Z
11
+ date: 2023-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common