Class: TencentCloud::Batch::V20170312::JobView
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Batch::V20170312::JobView
- Defined in:
- lib/v20170312/models.rb
Overview
作业信息
Instance Attribute Summary collapse
-
#CreateTime ⇒ Object
-
SUBMITTED:已提交; - PENDING:等待中; - RUNNABLE:可运行; - STARTING:启动中; - RUNNING:运行中; - SUCCEED:成功; - FAILED:失败; - FAILED_INTERRUPTED:失败后保留实例。.
-
-
#EndTime ⇒ Object
-
SUBMITTED:已提交; - PENDING:等待中; - RUNNABLE:可运行; - STARTING:启动中; - RUNNING:运行中; - SUCCEED:成功; - FAILED:失败; - FAILED_INTERRUPTED:失败后保留实例。.
-
-
#JobId ⇒ Object
-
SUBMITTED:已提交; - PENDING:等待中; - RUNNABLE:可运行; - STARTING:启动中; - RUNNING:运行中; - SUCCEED:成功; - FAILED:失败; - FAILED_INTERRUPTED:失败后保留实例。.
-
-
#JobName ⇒ Object
-
SUBMITTED:已提交; - PENDING:等待中; - RUNNABLE:可运行; - STARTING:启动中; - RUNNING:运行中; - SUCCEED:成功; - FAILED:失败; - FAILED_INTERRUPTED:失败后保留实例。.
-
-
#JobState ⇒ Object
-
SUBMITTED:已提交; - PENDING:等待中; - RUNNABLE:可运行; - STARTING:启动中; - RUNNING:运行中; - SUCCEED:成功; - FAILED:失败; - FAILED_INTERRUPTED:失败后保留实例。.
-
-
#Placement ⇒ Object
-
SUBMITTED:已提交; - PENDING:等待中; - RUNNABLE:可运行; - STARTING:启动中; - RUNNING:运行中; - SUCCEED:成功; - FAILED:失败; - FAILED_INTERRUPTED:失败后保留实例。.
-
-
#Priority ⇒ Object
-
SUBMITTED:已提交; - PENDING:等待中; - RUNNABLE:可运行; - STARTING:启动中; - RUNNING:运行中; - SUCCEED:成功; - FAILED:失败; - FAILED_INTERRUPTED:失败后保留实例。.
-
-
#Tags ⇒ Object
-
SUBMITTED:已提交; - PENDING:等待中; - RUNNABLE:可运行; - STARTING:启动中; - RUNNING:运行中; - SUCCEED:成功; - FAILED:失败; - FAILED_INTERRUPTED:失败后保留实例。.
-
-
#TaskMetrics ⇒ Object
-
SUBMITTED:已提交; - PENDING:等待中; - RUNNABLE:可运行; - STARTING:启动中; - RUNNING:运行中; - SUCCEED:成功; - FAILED:失败; - FAILED_INTERRUPTED:失败后保留实例。.
-
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(jobid = nil, jobname = nil, jobstate = nil, priority = nil, placement = nil, createtime = nil, endtime = nil, taskmetrics = nil, tags = nil) ⇒ JobView
constructor
A new instance of JobView.
Constructor Details
#initialize(jobid = nil, jobname = nil, jobstate = nil, priority = nil, placement = nil, createtime = nil, endtime = nil, taskmetrics = nil, tags = nil) ⇒ JobView
Returns a new instance of JobView.
2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 |
# File 'lib/v20170312/models.rb', line 2919 def initialize(jobid=nil, jobname=nil, jobstate=nil, priority=nil, placement=nil, createtime=nil, endtime=nil, taskmetrics=nil, =nil) @JobId = jobid @JobName = jobname @JobState = jobstate @Priority = priority @Placement = placement @CreateTime = createtime @EndTime = endtime @TaskMetrics = taskmetrics @Tags = end |
Instance Attribute Details
#CreateTime ⇒ Object
-
SUBMITTED:已提交;
-
PENDING:等待中;
-
RUNNABLE:可运行;
-
STARTING:启动中;
-
RUNNING:运行中;
-
SUCCEED:成功;
-
FAILED:失败;
-
FAILED_INTERRUPTED:失败后保留实例。
2917 2918 2919 |
# File 'lib/v20170312/models.rb', line 2917 def CreateTime @CreateTime end |
#EndTime ⇒ Object
-
SUBMITTED:已提交;
-
PENDING:等待中;
-
RUNNABLE:可运行;
-
STARTING:启动中;
-
RUNNING:运行中;
-
SUCCEED:成功;
-
FAILED:失败;
-
FAILED_INTERRUPTED:失败后保留实例。
2917 2918 2919 |
# File 'lib/v20170312/models.rb', line 2917 def EndTime @EndTime end |
#JobId ⇒ Object
-
SUBMITTED:已提交;
-
PENDING:等待中;
-
RUNNABLE:可运行;
-
STARTING:启动中;
-
RUNNING:运行中;
-
SUCCEED:成功;
-
FAILED:失败;
-
FAILED_INTERRUPTED:失败后保留实例。
2917 2918 2919 |
# File 'lib/v20170312/models.rb', line 2917 def JobId @JobId end |
#JobName ⇒ Object
-
SUBMITTED:已提交;
-
PENDING:等待中;
-
RUNNABLE:可运行;
-
STARTING:启动中;
-
RUNNING:运行中;
-
SUCCEED:成功;
-
FAILED:失败;
-
FAILED_INTERRUPTED:失败后保留实例。
2917 2918 2919 |
# File 'lib/v20170312/models.rb', line 2917 def JobName @JobName end |
#JobState ⇒ Object
-
SUBMITTED:已提交;
-
PENDING:等待中;
-
RUNNABLE:可运行;
-
STARTING:启动中;
-
RUNNING:运行中;
-
SUCCEED:成功;
-
FAILED:失败;
-
FAILED_INTERRUPTED:失败后保留实例。
2917 2918 2919 |
# File 'lib/v20170312/models.rb', line 2917 def JobState @JobState end |
#Placement ⇒ Object
-
SUBMITTED:已提交;
-
PENDING:等待中;
-
RUNNABLE:可运行;
-
STARTING:启动中;
-
RUNNING:运行中;
-
SUCCEED:成功;
-
FAILED:失败;
-
FAILED_INTERRUPTED:失败后保留实例。
2917 2918 2919 |
# File 'lib/v20170312/models.rb', line 2917 def Placement @Placement end |
#Priority ⇒ Object
-
SUBMITTED:已提交;
-
PENDING:等待中;
-
RUNNABLE:可运行;
-
STARTING:启动中;
-
RUNNING:运行中;
-
SUCCEED:成功;
-
FAILED:失败;
-
FAILED_INTERRUPTED:失败后保留实例。
2917 2918 2919 |
# File 'lib/v20170312/models.rb', line 2917 def Priority @Priority end |
#Tags ⇒ Object
-
SUBMITTED:已提交;
-
PENDING:等待中;
-
RUNNABLE:可运行;
-
STARTING:启动中;
-
RUNNING:运行中;
-
SUCCEED:成功;
-
FAILED:失败;
-
FAILED_INTERRUPTED:失败后保留实例。
2917 2918 2919 |
# File 'lib/v20170312/models.rb', line 2917 def Tags @Tags end |
#TaskMetrics ⇒ Object
-
SUBMITTED:已提交;
-
PENDING:等待中;
-
RUNNABLE:可运行;
-
STARTING:启动中;
-
RUNNING:运行中;
-
SUCCEED:成功;
-
FAILED:失败;
-
FAILED_INTERRUPTED:失败后保留实例。
2917 2918 2919 |
# File 'lib/v20170312/models.rb', line 2917 def TaskMetrics @TaskMetrics end |
Instance Method Details
#deserialize(params) ⇒ Object
2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 |
# File 'lib/v20170312/models.rb', line 2931 def deserialize(params) @JobId = params['JobId'] @JobName = params['JobName'] @JobState = params['JobState'] @Priority = params['Priority'] unless params['Placement'].nil? @Placement = Placement.new @Placement.deserialize(params['Placement']) end @CreateTime = params['CreateTime'] @EndTime = params['EndTime'] unless params['TaskMetrics'].nil? @TaskMetrics = TaskMetrics.new @TaskMetrics.deserialize(params['TaskMetrics']) end unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end end |