add tcp in service/register

I found consul /service/register interface supprt TCP check as well.
This commit is contained in:
lihz 2016-06-03 19:29:05 +08:00
parent e061d89fe9
commit b862d3f044
1 changed files with 1 additions and 1 deletions

View File

@ -408,7 +408,7 @@ an empty `Address` field for a service, use the `Address` field of the agent nod
associated with that instance of the service, which is returned alongside the service associated with that instance of the service, which is returned alongside the service
information. information.
If `Check` is provided, only one of `Script`, `HTTP`, or `TTL` should be specified. If `Check` is provided, only one of `Script`, `HTTP`, `TCP` or `TTL` should be specified.
`Script` and `HTTP` also require `Interval`. The created check will be named "service:\<ServiceId\>". `Script` and `HTTP` also require `Interval`. The created check will be named "service:\<ServiceId\>".
There is more information about checks [here](/docs/agent/checks.html). There is more information about checks [here](/docs/agent/checks.html).