class Docr::Types::HealthConfig

Included Modules

Defined in:

docr/types/health_config.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(test : Nil | Array(String) = nil, interval : Int64 | Nil = nil, timeout : Int64 | Nil = nil, retries : Int64 | Nil = nil, start_period : Int64 | Nil = nil) #

[View source]

Instance Method Detail

def interval : Int64 | Nil #

The time to wait between checks in nanoseconds.


[View source]
def interval=(interval : Int64 | Nil) #

The time to wait between checks in nanoseconds.


[View source]
def retries : Int64 | Nil #

The number of consecutive failures needed to consider a container as unhealthy.


[View source]
def retries=(retries : Int64 | Nil) #

The number of consecutive failures needed to consider a container as unhealthy.


[View source]
def start_period : Int64 | Nil #

Start period for the container to initialize before starting health-retries countdown in nanoseconds.


[View source]
def start_period=(start_period : Int64 | Nil) #

Start period for the container to initialize before starting health-retries countdown in nanoseconds.


[View source]
def test : Array(String) | Nil #

The test to perform.


[View source]
def test=(test : Array(String) | Nil) #

The test to perform.


[View source]
def timeout : Int64 | Nil #

The time to wait before considering the check to have hung.


[View source]
def timeout=(timeout : Int64 | Nil) #

The time to wait before considering the check to have hung.


[View source]