mirror of
https://github.com/kemko/nomad.git
synced 2026-01-08 11:25:41 +03:00
Document usage of 'body' field
This commit is contained in:
@@ -496,6 +496,8 @@ The `Task` object supports the following keys:
|
||||
|
||||
- `Method`: The HTTP method to use for HTTP checks. Defaults to GET.
|
||||
|
||||
- `Body`: The HTTP body to use for HTTP checks. Defaults to an empty string.
|
||||
|
||||
- `Path`: The path of the HTTP endpoint which Consul will query to query
|
||||
the health of a service if the type of the check is `http`. Nomad
|
||||
will add the IP of the service and the port, users are only required
|
||||
|
||||
@@ -246,6 +246,8 @@ scripts.
|
||||
- `method` `(string: "GET")` - Specifies the HTTP method to use for HTTP
|
||||
checks.
|
||||
|
||||
- `body` `(string: "")` - Specifies the HTTP body to use for HTTP checks.
|
||||
|
||||
- `name` `(string: "service: <name> check")` - Specifies the name of the health
|
||||
check. If the name is not specified Nomad generates one based on the service name.
|
||||
If you have more than one check you must specify the name.
|
||||
|
||||
Reference in New Issue
Block a user