docs: note script checks don't support some Consul options (#19770)

Script checks don't support Consul's `success_before_passing`, `failures_before_critical`, or `failures_before_warning` because they're run by Nomad and not by Consul
This commit is contained in:
Vijesh
2024-01-19 00:38:57 +11:00
committed by GitHub
parent 8f99ba6b2c
commit 3b4afea974

View File

@@ -93,15 +93,15 @@ job "example" {
- `success_before_passing` `(int:0)` - The number of consecutive successful checks
required before Consul will transition the service status to [`passing`][consul_success_before_passing].
Only supported in the Consul service provider.
Only supported by the Consul service provider and not applicable for health checks of type "script".
- `failures_before_critical` `(int:0)` - The number of consecutive failing checks
required before Consul will transition the service status to [`critical`][consul_failure_before_critical].
Only supported in the Consul service provider.
Only supported by the Consul service provider and not applicable for health checks of type "script".
- `failures_before_warning` `(int:0)` - The number of consecutive failing checks
required before Consul will transition the service status to [`warning`][consul_failure_before_warning].
Only supported in the Consul service provider.
Only supported by the Consul service provider and not applicable for health checks of type "script".
- `interval` `(string: <required>)` - Specifies the frequency of the health checks
that Consul or Nomad service provider will perform. This is specified using a label