case class HealthCheck(command: String, interval: Option[FiniteDuration] = None, timeout: Option[FiniteDuration] = None, startPeriod: Option[FiniteDuration] = None, retries: Option[Int] = None) extends DockerfileInstruction with Product with Serializable
Defines health check command to run inside the container to check that it is still working.
- command
Command to execute for health check
- interval
The health check will first run interval seconds after the container is started, and then again interval seconds after each previous check completes.
- timeout
If a single run of the check takes longer than specified then the check is considered to have failed.
- startPeriod
Provides initialization time for containers that need time to bootstrap.
- retries
How many consecutive failures of the health check for the container to be considered unhealthy.
- Alphabetic
- By Inheritance
- HealthCheck
- Serializable
- Serializable
- Product
- Equals
- DockerfileInstruction
- Instruction
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
HealthCheck(command: String, interval: Option[FiniteDuration] = None, timeout: Option[FiniteDuration] = None, startPeriod: Option[FiniteDuration] = None, retries: Option[Int] = None)
- command
Command to execute for health check
- interval
The health check will first run interval seconds after the container is started, and then again interval seconds after each previous check completes.
- timeout
If a single run of the check takes longer than specified then the check is considered to have failed.
- startPeriod
Provides initialization time for containers that need time to bootstrap.
- retries
How many consecutive failures of the health check for the container to be considered unhealthy.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
arguments: String
- Definition Classes
- HealthCheck → DockerfileInstruction
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
- val command: String
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
instructionName: String
- Definition Classes
- HealthCheck → DockerfileInstruction
- val interval: Option[FiniteDuration]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val retries: Option[Int]
- val startPeriod: Option[FiniteDuration]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val timeout: Option[FiniteDuration]
-
def
toString(): String
- Definition Classes
- DockerfileInstruction → AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated
-
def
toInstructionString: String
- Definition Classes
- DockerfileInstruction
- Annotations
- @deprecated
- Deprecated
(Since version 0.4.0) Use toString instead.