docs: Rename TTL to Timeout in Script/TCP checks

TTL and Interval options were made mutually exclusive in
https://github.com/hashicorp/consul/pull/3560.

Change to Timeout, which is a correct parameter for HTTP, Script, and
TCP checks.

Resolves #6343
This commit is contained in:
Blake Covarrubias 2019-11-02 09:34:20 -07:00 committed by Blake Covarrubias
parent 1f5b333290
commit 34914cb76c
2 changed files with 2 additions and 3 deletions

View File

@ -224,7 +224,7 @@ The table below shows this endpoint's support for
"Header": {"x-foo":["bar", "baz"]}, "Header": {"x-foo":["bar", "baz"]},
"TCP": "example.com:22", "TCP": "example.com:22",
"Interval": "10s", "Interval": "10s",
"TTL": "15s", "Timeout": "5s",
"TLSSkipVerify": true "TLSSkipVerify": true
} }
``` ```

View File

@ -610,9 +610,8 @@ For the `Connect` field, the parameters are:
"Check": { "Check": {
"DeregisterCriticalServiceAfter": "90m", "DeregisterCriticalServiceAfter": "90m",
"Args": ["/usr/local/bin/check_redis.py"], "Args": ["/usr/local/bin/check_redis.py"],
"HTTP": "http://localhost:5000/health",
"Interval": "10s", "Interval": "10s",
"TTL": "15s" "Timeout": "5s"
}, },
"Weights": { "Weights": {
"Passing": 10, "Passing": 10,