class Docr::Types::HealthConfig
- Docr::Types::HealthConfig
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
docr/types/health_config.crConstructors
- .new(pull : JSON::PullParser)
- .new(test : Nil | Array(String) = nil, interval : Int64 | Nil = nil, timeout : Int64 | Nil = nil, retries : Int64 | Nil = nil, start_period : Int64 | Nil = nil)
Instance Method Summary
-
#interval : Int64 | Nil
The time to wait between checks in nanoseconds.
-
#interval=(interval : Int64 | Nil)
The time to wait between checks in nanoseconds.
-
#retries : Int64 | Nil
The number of consecutive failures needed to consider a container as unhealthy.
-
#retries=(retries : Int64 | Nil)
The number of consecutive failures needed to consider a container as unhealthy.
-
#start_period : Int64 | Nil
Start period for the container to initialize before starting health-retries countdown in nanoseconds.
-
#start_period=(start_period : Int64 | Nil)
Start period for the container to initialize before starting health-retries countdown in nanoseconds.
-
#test : Array(String) | Nil
The test to perform.
-
#test=(test : Array(String) | Nil)
The test to perform.
-
#timeout : Int64 | Nil
The time to wait before considering the check to have hung.
-
#timeout=(timeout : Int64 | Nil)
The time to wait before considering the check to have hung.
Constructor Detail
Instance Method Detail
The number of consecutive failures needed to consider a container as unhealthy.
The number of consecutive failures needed to consider a container as unhealthy.
Start period for the container to initialize before starting health-retries countdown in nanoseconds.
Start period for the container to initialize before starting health-retries countdown in nanoseconds.