Class: Nomad::AllocationMetric
- Defined in:
- lib/nomad/api/allocation.rb
Constant Summary
Constants inherited from Response
Instance Attribute Summary collapse
-
#allocation_time ⇒ Duration
readonly
The total allocation time.
-
#class_exhausted ⇒ Hash<String,Integer>
readonly
The list of classes exhausted.
-
#class_filtered ⇒ Hash<String,Integer>
readonly
The list of classes filtered.
-
#coalesced_failures ⇒ Integer
readonly
The number of coalesced failures.
-
#constraint_filtered ⇒ Hash<String,Integer>
readonly
The list of constraints filtered.
-
#dimension_exhausted ⇒ Hash<String,Integer>
readonly
The list of dimensions exhausted.
-
#nodes_available ⇒ Hash<String,Integer>
readonly
The list of nodes available.
-
#nodes_evaluated ⇒ Integer
readonly
The number of nodes evaluated.
-
#nodes_exhausted ⇒ Integer
readonly
The list of nodes exhausted.
-
#nodes_filtered ⇒ Integer
readonly
The number of nodes filtered.
-
#scores ⇒ Hash<String,Float>
readonly
The list of scores.
Method Summary
Methods inherited from Response
#==, decode, #initialize, #to_h
Constructor Details
This class inherits a constructor from Nomad::Response
Instance Attribute Details
#allocation_time ⇒ Duration (readonly)
The total allocation time
218 |
# File 'lib/nomad/api/allocation.rb', line 218 field :AllocationTime, as: :allocation_time, load: :nanoseconds_as_duration |
#class_exhausted ⇒ Hash<String,Integer> (readonly)
The list of classes exhausted
203 |
# File 'lib/nomad/api/allocation.rb', line 203 field :ClassExhausted, as: :class_exhausted, load: :stringify_keys |
#class_filtered ⇒ Hash<String,Integer> (readonly)
The list of classes filtered
188 |
# File 'lib/nomad/api/allocation.rb', line 188 field :ClassFiltered, as: :class_filtered, load: :stringify_keys |
#coalesced_failures ⇒ Integer (readonly)
The number of coalesced failures
223 |
# File 'lib/nomad/api/allocation.rb', line 223 field :CoalescedFailures, as: :coalesced_failures |
#constraint_filtered ⇒ Hash<String,Integer> (readonly)
The list of constraints filtered
193 |
# File 'lib/nomad/api/allocation.rb', line 193 field :ConstraintFiltered, as: :constraint_filtered, load: :stringify_keys |
#dimension_exhausted ⇒ Hash<String,Integer> (readonly)
The list of dimensions exhausted
208 |
# File 'lib/nomad/api/allocation.rb', line 208 field :DimensionExhausted, as: :dimension_exhausted, load: :stringify_keys |
#nodes_available ⇒ Hash<String,Integer> (readonly)
The list of nodes available
183 |
# File 'lib/nomad/api/allocation.rb', line 183 field :NodesAvailable, as: :nodes_available, load: :stringify_keys |
#nodes_evaluated ⇒ Integer (readonly)
The number of nodes evaluated
173 |
# File 'lib/nomad/api/allocation.rb', line 173 field :NodesEvaluated, as: :nodes_evaluated |
#nodes_exhausted ⇒ Integer (readonly)
The list of nodes exhausted
198 |
# File 'lib/nomad/api/allocation.rb', line 198 field :NodesExhausted, as: :nodes_exhausted |
#nodes_filtered ⇒ Integer (readonly)
The number of nodes filtered
178 |
# File 'lib/nomad/api/allocation.rb', line 178 field :NodesFiltered, as: :nodes_filtered |
#scores ⇒ Hash<String,Float> (readonly)
The list of scores
213 |
# File 'lib/nomad/api/allocation.rb', line 213 field :Scores, as: :scores, load: :stringify_keys |