Skip to content

Commit

Permalink
Merge pull request #1539 from hashicorp/docs-summaries
Browse files Browse the repository at this point in the history
Added docs for job summaries
  • Loading branch information
diptanu authored Aug 10, 2016
2 parents 6646a5d + 9d3a1bc commit f948205
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 0 deletions.
12 changes: 12 additions & 0 deletions website/source/docs/commands/status.html.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ Datacenters = dc1
Status = running
Periodic = false

Summary
Task Group Queued Starting Running Failed Complete Lost
cache 0 0 1 0 0 0

Allocations
ID Eval ID Node ID Task Group Desired Status
24cfd201 81efc2fa 8d0331e9 cache run running
Expand All @@ -92,6 +96,10 @@ Datacenters = dc1
Status = running
Periodic = false

Summary
Task Group Queued Starting Running Failed Complete Lost
cache 0 0 5 0 0 0

Placement Failure
Task Group "cache":
* Resources exhausted on 1 nodes
Expand Down Expand Up @@ -120,6 +128,10 @@ Datacenters = dc1
Status = running
Periodic = false

Summary
Task Group Queued Starting Running Failed Complete Lost
cache 0 0 5 0 0 0

Evaluations
ID Priority Triggered By Status Placement Failures
69f34a37 50 job-register blocked N/A - In Progress
Expand Down
47 changes: 47 additions & 0 deletions website/source/docs/http/job.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,53 @@ region is used; another region can be specified using the `?region=` query param
</dd>
</dl>

<dl>
<dt>Description</dt>
<dd>
Query the summary of a job.
</dd>

<dt>Method</dt>
<dd>GET</dd>

<dt>URL</dt>
<dd>`/v1/job/<ID>/summary`</dd>

<dt>Parameters</dt>
<dd>
None
</dd>

<dt>Blocking Queries</dt>
<dd>
[Supported](/docs/http/index.html#blocking-queries)
</dd>

<dt>Returns</dt>
<dd>

```javascript
{
"JobID": "example",
"Summary": {
"cache": {
"Queued": 0,
"Complete": 0,
"Failed": 0,
"Running": 1,
"Starting": 0,
"Lost": 0
}
},
"CreateIndex": 6,
"ModifyIndex": 10
}
```

</dd>
</dl>


## PUT / POST

<dl>
Expand Down
24 changes: 24 additions & 0 deletions website/source/docs/http/system.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,27 @@ region can be specified using the `?region=` query parameter.
None
</dd>
</dl>


<dl>
<dt>Description</dt>
<dd>
Reconcile the summaries of all the registered jobs based.
</dd>

<dt>Method</dt>
<dd>PUT</dd>

<dt>URL</dt>
<dd>`/v1/system/reconcile/summaries`</dd>

<dt>Parameters</dt>
<dd>
None
</dd>

<dt>Returns</dt>
<dd>
None
</dd>
</dl>
4 changes: 4 additions & 0 deletions website/source/intro/getting-started/jobs.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ Datacenters = dc1
Status = running
Periodic = false
Summary
Task Group Queued Starting Running Failed Complete Lost
cache 0 0 1 0 0 0
Allocations
ID Eval ID Node ID Task Group Desired Status
dadcdb81 61b0b423 72687b1a cache run running
Expand Down

0 comments on commit f948205

Please sign in to comment.