open-nomad/website/source/docs/http/eval.html.md

132 lines
2.6 KiB
Markdown
Raw Normal View History

2015-09-21 01:05:42 +00:00
---
layout: "http"
page_title: "HTTP API: /v1/evaluation"
sidebar_current: "docs-http-eval-"
description: |-
The '/v1/evaluation' endpoint is used to query a specific evaluation.
2015-09-21 01:05:42 +00:00
---
# /v1/evaluation
The `evaluation` endpoint is used to query a specific evaluations.
By default, the agent's local region is used; another region can
be specified using the `?region=` query parameter.
## GET
<dl>
<dt>Description</dt>
<dd>
Query a specific evaluation.
2015-09-21 01:05:42 +00:00
</dd>
<dt>Method</dt>
<dd>GET</dd>
<dt>URL</dt>
2016-06-23 18:48:31 +00:00
<dd>`/v1/evaluation/<ID>`</dd>
2015-09-21 01:05:42 +00:00
<dt>Parameters</dt>
<dd>
None
</dd>
<dt>Blocking Queries</dt>
<dd>
[Supported](/docs/http/index.html#blocking-queries)
</dd>
2015-09-21 01:05:42 +00:00
<dt>Returns</dt>
<dd>
```javascript
2016-12-19 18:16:49 +00:00
{
"ID": "055c0867-8bf7-5068-b3a3-d64e4e84e702",
2015-09-21 01:05:42 +00:00
"Priority": 50,
"Type": "service",
"TriggeredBy": "job-register",
2016-12-19 18:16:49 +00:00
"JobID": "example",
"JobModifyIndex": 13,
2015-09-21 01:05:42 +00:00
"NodeID": "",
"NodeModifyIndex": 0,
"Status": "complete",
"StatusDescription": "",
"Wait": 0,
"NextEval": "",
"PreviousEval": "",
2016-12-19 18:16:49 +00:00
"BlockedEval": "fee40e32-aa0f-bf5e-b2fd-b08350875fdb",
"FailedTGAllocs": {
"cache": {
"NodesEvaluated": 1,
"NodesFiltered": 0,
"NodesAvailable": {
"dc1": 1
},
"ClassFiltered": null,
"ConstraintFiltered": null,
"NodesExhausted": 1,
"ClassExhausted": null,
"DimensionExhausted": {
"memory exhausted": 1
},
"Scores": null,
"AllocationTime": 61601,
"CoalescedFailures": 2
}
},
"CreateIndex": 14,
2015-09-21 01:05:42 +00:00
"ModifyIndex": 17
2016-12-19 18:16:49 +00:00
}
2015-09-21 01:05:42 +00:00
```
</dd>
</dl>
<dl>
<dt>Description</dt>
<dd>
Query the allocations created or modified by an evaluation.
</dd>
<dt>Method</dt>
<dd>GET</dd>
<dt>URL</dt>
2016-06-23 18:48:31 +00:00
<dd>`/v1/evaluation/<ID>/allocations`</dd>
2015-09-21 01:05:42 +00:00
<dt>Parameters</dt>
<dd>
None
</dd>
<dt>Blocking Queries</dt>
<dd>
[Supported](/docs/http/index.html#blocking-queries)
</dd>
2015-09-21 01:05:42 +00:00
<dt>Returns</dt>
<dd>
```javascript
[
{
"ID": "3575ba9d-7a12-0c96-7b28-add168c67984",
"EvalID": "151accaa-1ac6-90fe-d427-313e70ccbb88",
"Name": "binstore-storagelocker.binsl[0]",
"NodeID": "a703c3ca-5ff8-11e5-9213-970ee8879d1b",
"JobID": "binstore-storagelocker",
"TaskGroup": "binsl",
"DesiredStatus": "run",
"DesiredDescription": "",
"ClientStatus": "running",
"ClientDescription": "",
"CreateIndex": 16,
"ModifyIndex": 16
},
...
]
```
</dd>
</dl>