Class: Nomad::Alloc
Constant Summary
Constants inherited from Response
Instance Attribute Summary collapse
-
#alloc_modify_index ⇒ Integer
readonly
The allocation modify index.
-
#canary ⇒ Boolean
readonly
Whether this is a canary.
-
#client_description ⇒ String
readonly
The client allocation description.
-
#client_status ⇒ String
readonly
The client allocation status.
-
#create_index ⇒ Integer
readonly
The create index.
-
#create_time ⇒ Timestamp
readonly
The time the allocation was created.
-
#deployment_id ⇒ String
readonly
The deployment ID.
-
#deployment_status ⇒ String
readonly
The deployment status.
-
#desired_description ⇒ String
readonly
The desired allocation description.
-
#desired_status ⇒ String
readonly
The desired allocation status.
-
#eval_id ⇒ String
readonly
The full ID of the evaluation for this allocation.
-
#id ⇒ String
readonly
The full allocation ID.
-
#job ⇒ Hash
readonly
The full JSON definition of the job.
-
#job_id ⇒ String
readonly
The name of the job for this allocation.
-
#metrics ⇒ String
readonly
The metrics for this allocation.
-
#modify_index ⇒ Integer
readonly
The modify index.
-
#name ⇒ String
readonly
The name of the job/allocation.
-
#node_id ⇒ String
readonly
The full ID of the node for this allocation.
-
#previous_allocation ⇒ String
readonly
The previous allocation ID.
-
#resources ⇒ String
readonly
The resources for this allocation.
-
#shared_resources ⇒ String
readonly
The shared_ esources for this allocation.
-
#task_group ⇒ String
readonly
The task group for this allocation.
-
#task_resources ⇒ Hash<String,Resources>
readonly
The task resources for this allocation.
-
#task_states ⇒ Hash<String,TaskState>
readonly
The list of task states for this allocation.
Method Summary
Methods inherited from Response
#==, decode, #initialize, #to_h
Constructor Details
This class inherits a constructor from Nomad::Response
Instance Attribute Details
#alloc_modify_index ⇒ Integer (readonly)
The allocation modify index.
161 |
# File 'lib/nomad/api/allocation.rb', line 161 field :AllocModifyIndex, as: :alloc_modify_index |
#canary ⇒ Boolean (readonly)
Whether this is a canary
146 |
# File 'lib/nomad/api/allocation.rb', line 146 field :Canary, as: :canary |
#client_description ⇒ String (readonly)
The client allocation description.
116 |
# File 'lib/nomad/api/allocation.rb', line 116 field :ClientDescription, as: :client_description, load: :string_as_nil |
#client_status ⇒ String (readonly)
The client allocation status.
111 |
# File 'lib/nomad/api/allocation.rb', line 111 field :ClientStatus, as: :client_status, load: :string_as_nil |
#create_index ⇒ Integer (readonly)
The create index
151 |
# File 'lib/nomad/api/allocation.rb', line 151 field :CreateIndex, as: :create_index |
#create_time ⇒ Timestamp (readonly)
The time the allocation was created
166 |
# File 'lib/nomad/api/allocation.rb', line 166 field :CreateTime, as: :create_time, load: :nanoseconds_as_timestamp |
#deployment_id ⇒ String (readonly)
The deployment ID
136 |
# File 'lib/nomad/api/allocation.rb', line 136 field :DeploymentID, as: :deployment_id, load: :string_as_nil |
#deployment_status ⇒ String (readonly)
The deployment status
141 |
# File 'lib/nomad/api/allocation.rb', line 141 field :DeploymentStatus, as: :deployment_status, load: :string_as_nil |
#desired_description ⇒ String (readonly)
The desired allocation description.
106 |
# File 'lib/nomad/api/allocation.rb', line 106 field :DesiredDescription, as: :desired_description, load: :string_as_nil |
#desired_status ⇒ String (readonly)
The desired allocation status.
101 |
# File 'lib/nomad/api/allocation.rb', line 101 field :DesiredStatus, as: :desired_status, load: :string_as_nil |
#eval_id ⇒ String (readonly)
The full ID of the evaluation for this allocation.
46 |
# File 'lib/nomad/api/allocation.rb', line 46 field :EvalID, as: :eval_id, load: :string_as_nil |
#id ⇒ String (readonly)
The full allocation ID.
41 |
# File 'lib/nomad/api/allocation.rb', line 41 field :ID, as: :id, load: :string_as_nil |
#job ⇒ Hash (readonly)
The full JSON definition of the job.
66 |
# File 'lib/nomad/api/allocation.rb', line 66 field :Job, as: :job, load: ->(item) { JobVersion.decode(item) } |
#job_id ⇒ String (readonly)
The name of the job for this allocation.
61 |
# File 'lib/nomad/api/allocation.rb', line 61 field :JobID, as: :job_id, load: :string_as_nil |
#metrics ⇒ String (readonly)
The metrics for this allocation.
96 |
# File 'lib/nomad/api/allocation.rb', line 96 field :Metrics, as: :metrics, load: ->(item) { AllocationMetric.decode(item) } |
#modify_index ⇒ Integer (readonly)
The modify index
156 |
# File 'lib/nomad/api/allocation.rb', line 156 field :ModifyIndex, as: :modify_index |
#name ⇒ String (readonly)
The name of the job/allocation.
51 |
# File 'lib/nomad/api/allocation.rb', line 51 field :Name, as: :name, load: :string_as_nil |
#node_id ⇒ String (readonly)
The full ID of the node for this allocation.
56 |
# File 'lib/nomad/api/allocation.rb', line 56 field :NodeID, as: :node_id, load: :string_as_nil |
#previous_allocation ⇒ String (readonly)
The previous allocation ID.
131 |
# File 'lib/nomad/api/allocation.rb', line 131 field :PreviousAllocation, as: :previous_allocation, load: :string_as_nil |
#resources ⇒ String (readonly)
The resources for this allocation.
76 |
# File 'lib/nomad/api/allocation.rb', line 76 field :Resources, as: :resources, load: ->(item) { Resources.decode(item) } |
#shared_resources ⇒ String (readonly)
The shared_ esources for this allocation.
81 |
# File 'lib/nomad/api/allocation.rb', line 81 field :SharedResources, as: :shared_resources, load: ->(item) { Resources.decode(item) } |
#task_group ⇒ String (readonly)
The task group for this allocation.
71 |
# File 'lib/nomad/api/allocation.rb', line 71 field :TaskGroup, as: :task_group |