pub struct Probe {
pub exec: Option<ExecAction>,
pub failure_threshold: Option<i32>,
pub grpc: Option<GRPCAction>,
pub http_get: Option<HTTPGetAction>,
pub initial_delay_seconds: Option<i32>,
pub period_seconds: Option<i32>,
pub success_threshold: Option<i32>,
pub tcp_socket: Option<TCPSocketAction>,
pub timeout_seconds: Option<i32>,
}
Expand description
Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.
This type is not used in any activity, and only used as part of another schema.
Fields§
§exec: Option<ExecAction>
Not supported by Cloud Run.
failure_threshold: Option<i32>
Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
grpc: Option<GRPCAction>
GRPCAction specifies an action involving a GRPC port.
http_get: Option<HTTPGetAction>
HTTPGet specifies the http request to perform.
initial_delay_seconds: Option<i32>
Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240.
period_seconds: Option<i32>
How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. Must be greater or equal than timeout_seconds.
success_threshold: Option<i32>
Minimum consecutive successes for the probe to be considered successful after having failed. Must be 1 if set.
tcp_socket: Option<TCPSocketAction>
TCPSocket specifies an action involving a TCP port.
timeout_seconds: Option<i32>
Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than period_seconds; if period_seconds is not set, must be less or equal than 10.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Probe
impl<'de> Deserialize<'de> for Probe
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part for Probe
Auto Trait Implementations§
impl Freeze for Probe
impl RefUnwindSafe for Probe
impl Send for Probe
impl Sync for Probe
impl Unpin for Probe
impl UnwindSafe for Probe
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more