Merge pull request #9387 from hashicorp/docs-9386-alloc-job-api

document `api.Allocation.Job` field
This commit is contained in:
Chris Baker 2020-11-18 09:57:28 -06:00 committed by GitHub
commit 6a4cdc3bb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -508,6 +508,13 @@ $ curl \
#### Field Reference
- `Job` - A copy of the job at the time that the allocation is created or
updated. This is primarily intended for use by the Nomad client when running
the allocation, and it may include stale information on some job fields.
Up-to-date information about the job status is available from the
[jobs API](/api-docs/jobs); take care to fetch the version of the job
associated with this allocation.
- `TaskStates` - A map of tasks to their current state and the latest events
that have effected the state. `TaskState` objects contain the following
fields: