ServiceTTLCheck
consul4s.model.agent.ServiceTTLCheck
final case class ServiceTTLCheck(Name: String, TTL: String, CheckID: Option[String], ServiceID: Option[String], Status: CheckStatus, Notes: Option[String], DeregisterCriticalServiceAfter: Option[String]) extends ServiceCheck
Value parameters
- CheckID
-
- Specifies a unique ID for this check on the node. This defaults to the "Name" parameter, but it may be necessary to provide an ID for uniqueness.
- DeregisterCriticalServiceAfter
-
- Specifies that checks associated with a service should deregister after this time. This is specified as a time duration with suffix like "10m". If a check is in the critical state for more than this configured value, then its associated service (and all of its associated checks) will automatically be deregistered. The minimum timeout is 1 minute, and the process that reaps critical services runs every 30 seconds, so it may take slightly longer than the configured timeout to trigger the deregistration. This should generally be configured with a timeout that's much, much longer than any expected recoverable outage for the given service.
- Name
-
- Specifies the name of the check.
- Notes
-
- Specifies arbitrary information for humans. This is not used by Consul internally.
- ServiceID
-
- Specifies the ID of a service to associate the registered check with an existing service provided by the agent.
- Status
-
- Specifies the initial status of the health check.
- TTL
-
- Specifies this is a TTL check, and the TTL endpoint must be used periodically to update the state of the check.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ServiceCheckclass Objecttrait Matchableclass Any
Members list
In this article