struct V1::HealthConfig

Overview

HealthConfig holds configuration settings for the HEALTHCHECK feature. Test is the test to perform to check that the container is healthy. An empty slice means to inherit the default. The options are: {} : inherit healthcheck {"NONE"} : disable healthcheck {"CMD", args...} : exec arguments directly {"CMD-SHELL", command} : run command with system's default shell

Defined in:

v1/config.cr

Constructors

Instance Method Summary

Constructor Detail

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

Instance Method Detail

def interval : Duration? #

def interval=(_interval : Duration?) #

def retries : Int32? #

def retries=(_retries : Int32?) #

def start_period : Duration? #

def start_period=(_start_period : Duration?) #

def test : Array(String)? #

def test=(_test : Array(String)?) #

def timeout : Duration? #

def timeout=(_timeout : Duration?) #

def to_json(json : JSON::Builder) #