Class: Nomad::Eval
Constant Summary collapse
- STATUS_COMPLETE =
The status for a completed job.
"complete".freeze
Constants inherited from Response
Instance Attribute Summary collapse
-
#annotate_plan ⇒ Boolean
readonly
The evaluation annotate_plan.
-
#blocked_eval ⇒ String
readonly
The evaluation blocked_eval.
-
#class_eligibility ⇒ String
readonly
The evaluation class_eligibility.
-
#create_index ⇒ Integer
readonly
The evaluation create_index.
-
#escaped_computed_class ⇒ Boolean
readonly
The evaluation escaped_computed_class.
-
#failed_tg_allocs ⇒ Hash
readonly
The evaluation failed_tg_allocs.
-
#id ⇒ String
readonly
The evaluation id.
-
#job_id ⇒ String
readonly
The evaluation job_id.
-
#job_modify_index ⇒ Integer
readonly
The evaluation job_modify_index.
-
#modify_index ⇒ Integer
readonly
The evaluation modify_index.
-
#next_eval ⇒ String
readonly
The evaluation next_eval.
-
#node_id ⇒ String
readonly
The evaluation node_id.
-
#node_modify_index ⇒ String
readonly
The evaluation node_modify_index.
-
#previous_eval ⇒ String
readonly
The evaluation previous_eval.
-
#priority ⇒ Integer
readonly
The evaluation priority.
-
#queued_allocations ⇒ Hash
readonly
The evaluation queued_allocations.
-
#snapshot_index ⇒ Integer
readonly
The evaluation snapshot_index.
-
#status ⇒ String
readonly
The evaluation status.
-
#status_description ⇒ String
readonly
The evaluation status_description.
-
#triggered_by ⇒ String
readonly
The evaluation triggered_by.
-
#type ⇒ String
readonly
The evaluation type.
-
#wait ⇒ Duration
readonly
The evaluation wait.
Instance Method Summary collapse
-
#complete? ⇒ Boolean
Determines if this evaluation is done.
Methods inherited from Response
#==, decode, #initialize, #to_h
Constructor Details
This class inherits a constructor from Nomad::Response
Instance Attribute Details
#annotate_plan ⇒ Boolean (readonly)
The evaluation annotate_plan.
139 |
# File 'lib/nomad/api/evaluation.rb', line 139 field :AnnotatePlan, as: :annotate_plan |
#blocked_eval ⇒ String (readonly)
The evaluation blocked_eval.
119 |
# File 'lib/nomad/api/evaluation.rb', line 119 field :BlockedEval, as: :blocked_eval, load: :string_as_nil |
#class_eligibility ⇒ String (readonly)
The evaluation class_eligibility.
129 |
# File 'lib/nomad/api/evaluation.rb', line 129 field :ClassEligibility, as: :class_eligibility |
#create_index ⇒ Integer (readonly)
The evaluation create_index.
154 |
# File 'lib/nomad/api/evaluation.rb', line 154 field :CreateIndex, as: :create_index |
#escaped_computed_class ⇒ Boolean (readonly)
The evaluation escaped_computed_class.
134 |
# File 'lib/nomad/api/evaluation.rb', line 134 field :EscaledComputedClass, as: :escaped_computed_class |
#failed_tg_allocs ⇒ Hash (readonly)
The evaluation failed_tg_allocs.
124 |
# File 'lib/nomad/api/evaluation.rb', line 124 field :FailedTGAllocs, as: :failed_tg_allocs |
#id ⇒ String (readonly)
The evaluation id.
54 |
# File 'lib/nomad/api/evaluation.rb', line 54 field :ID, as: :id |
#job_id ⇒ String (readonly)
The evaluation job_id.
74 |
# File 'lib/nomad/api/evaluation.rb', line 74 field :JobID, as: :job_id |
#job_modify_index ⇒ Integer (readonly)
The evaluation job_modify_index.
79 |
# File 'lib/nomad/api/evaluation.rb', line 79 field :JobModifyIndex, as: :job_modify_index |
#modify_index ⇒ Integer (readonly)
The evaluation modify_index.
159 |
# File 'lib/nomad/api/evaluation.rb', line 159 field :ModifyIndex, as: :modify_index |
#next_eval ⇒ String (readonly)
The evaluation next_eval.
109 |
# File 'lib/nomad/api/evaluation.rb', line 109 field :NextEval, as: :next_eval, load: :string_as_nil |
#node_id ⇒ String (readonly)
The evaluation node_id.
84 |
# File 'lib/nomad/api/evaluation.rb', line 84 field :NodeID, as: :node_id, load: :string_as_nil |
#node_modify_index ⇒ String (readonly)
The evaluation node_modify_index.
89 |
# File 'lib/nomad/api/evaluation.rb', line 89 field :NodeModifyIndex, as: :node_modify_index |
#previous_eval ⇒ String (readonly)
The evaluation previous_eval.
114 |
# File 'lib/nomad/api/evaluation.rb', line 114 field :PreviousEval, as: :previous_eval, load: :string_as_nil |
#priority ⇒ Integer (readonly)
The evaluation priority.
59 |
# File 'lib/nomad/api/evaluation.rb', line 59 field :Priority, as: :priority |
#queued_allocations ⇒ Hash (readonly)
The evaluation queued_allocations.
149 |
# File 'lib/nomad/api/evaluation.rb', line 149 field :QueuedAllocations, as: :queued_allocations |
#snapshot_index ⇒ Integer (readonly)
The evaluation snapshot_index.
144 |
# File 'lib/nomad/api/evaluation.rb', line 144 field :ShapshotIndex, as: :snapshot_index |
#status ⇒ String (readonly)
The evaluation status.
94 |
# File 'lib/nomad/api/evaluation.rb', line 94 field :Status, as: :status |
#status_description ⇒ String (readonly)
The evaluation status_description.
99 |
# File 'lib/nomad/api/evaluation.rb', line 99 field :StatusDescription, as: :status_description, load: :string_as_nil |
#triggered_by ⇒ String (readonly)
The evaluation triggered_by.
69 |
# File 'lib/nomad/api/evaluation.rb', line 69 field :TriggeredBy, as: :triggered_by, load: :string_as_nil |
#type ⇒ String (readonly)
The evaluation type.
64 |
# File 'lib/nomad/api/evaluation.rb', line 64 field :Type, as: :type |
#wait ⇒ Duration (readonly)
The evaluation wait.
104 |
# File 'lib/nomad/api/evaluation.rb', line 104 field :Wait, as: :wait, load: :nanoseconds_as_duration |
Instance Method Details
#complete? ⇒ Boolean
Determines if this evaluation is done.
164 165 166 |
# File 'lib/nomad/api/evaluation.rb', line 164 def complete? self.status == STATUS_COMPLETE end |