Class: Nomad::Evaluation
Instance Attribute Summary
Attributes inherited from Request
Instance Method Summary collapse
-
#allocations_for(id, **options) ⇒ Array<Alloc>
Get the list of allocations for the given evaluation.
-
#list(**options) ⇒ Array<Eval>
List allocations.
-
#read(id, **options) ⇒ Eval
Read a specific evaluation.
Methods inherited from Request
Constructor Details
This class inherits a constructor from Nomad::Request
Instance Method Details
#allocations_for(id, **options) ⇒ Array<Alloc>
Get the list of allocations for the given evaluation.
41 42 43 44 |
# File 'lib/nomad/api/evaluation.rb', line 41 def allocations_for(id, **) json = client.get("/v1/evaluation/#{CGI.escape(id)}/allocations", ) return json.map { |item| Alloc.decode(item) } end |