pub struct GoogleCloudRunV2Probe {
pub failure_threshold: Option<i32>,
pub grpc: Option<GoogleCloudRunV2GRPCAction>,
pub http_get: Option<GoogleCloudRunV2HTTPGetAction>,
pub initial_delay_seconds: Option<i32>,
pub period_seconds: Option<i32>,
pub tcp_socket: Option<GoogleCloudRunV2TCPSocketAction>,
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§
§failure_threshold: Option<i32>
Optional. Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
grpc: Option<GoogleCloudRunV2GRPCAction>
Optional. GRPC specifies an action involving a gRPC port. Exactly one of httpGet, tcpSocket, or grpc must be specified.
http_get: Option<GoogleCloudRunV2HTTPGetAction>
Optional. HTTPGet specifies the http request to perform. Exactly one of httpGet, tcpSocket, or grpc must be specified.
initial_delay_seconds: Option<i32>
Optional. 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>
Optional. 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.
tcp_socket: Option<GoogleCloudRunV2TCPSocketAction>
Optional. TCPSocket specifies an action involving a TCP port. Exactly one of httpGet, tcpSocket, or grpc must be specified.
timeout_seconds: Option<i32>
Optional. 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.
Trait Implementations§
Source§impl Clone for GoogleCloudRunV2Probe
impl Clone for GoogleCloudRunV2Probe
Source§fn clone(&self) -> GoogleCloudRunV2Probe
fn clone(&self) -> GoogleCloudRunV2Probe
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for GoogleCloudRunV2Probe
impl Debug for GoogleCloudRunV2Probe
Source§impl Default for GoogleCloudRunV2Probe
impl Default for GoogleCloudRunV2Probe
Source§fn default() -> GoogleCloudRunV2Probe
fn default() -> GoogleCloudRunV2Probe
Source§impl<'de> Deserialize<'de> for GoogleCloudRunV2Probe
impl<'de> Deserialize<'de> for GoogleCloudRunV2Probe
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>,
Source§impl Serialize for GoogleCloudRunV2Probe
impl Serialize for GoogleCloudRunV2Probe
impl Part for GoogleCloudRunV2Probe
Auto Trait Implementations§
impl Freeze for GoogleCloudRunV2Probe
impl RefUnwindSafe for GoogleCloudRunV2Probe
impl Send for GoogleCloudRunV2Probe
impl Sync for GoogleCloudRunV2Probe
impl Unpin for GoogleCloudRunV2Probe
impl UnwindSafe for GoogleCloudRunV2Probe
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