LifecycleHandler defines a specific action that should be taken in a lifecycle hook.
One and only one of the fields, except TCPSocket must be specified.
Sleep represents a duration that the container should sleep.
Deprecated.
TCPSocket is NOT supported as a LifecycleHandler and kept for backward compatibility. There is no validation of this field and lifecycle hooks will fail at runtime when it is specified.
Exec specifies a command to execute in the container.
HTTPGet specifies an HTTP GET request to perform.
Returns the class of this.
this
Returns a string representation of this.
This method is used to convert the values of string interpolation expressions to strings.
Returns this |> transform if this is non-null, and null otherwise.
this |> transform
null
This method is the complement of the ?? operator and the equivalent of an Option type's map and flatMap methods.
??
Option
map
flatMap
Tells if this object has a property with the given name.
name
Returns the value of the property with the given name.
Throws if a property with this name does not exist.
Returns null if a property with this name does not exist.
Converts this object to a Dynamic object.
Dynamic
Converts this object to a Map.
Map
LifecycleHandler defines a specific action that should be taken in a lifecycle hook.