pub trait ProbeExt {
    // Required methods
    fn http_get(path: impl AsRef<Path>, port: u16) -> Self;
    fn tcp_socket(port: u16) -> Self;
    fn grpc<'a>(port: i32, service: impl Into<Option<&'a str>>) -> Self;
    fn failure_threshold(self, threshold: i32) -> Self;
    fn success_threshold(self, threshold: i32) -> Self;
    fn initial_delay_seconds(self, seconds: i32) -> Self;
    fn period_seconds(self, seconds: i32) -> Self;
    fn timeout_seconds(self, seconds: i32) -> Self;
    fn termination_grace_period_seconds(self, seconds: i64) -> Self;
}Expand description
Builders for corev1::Probe objects
Required Methods§
sourcefn tcp_socket(port: u16) -> Self
 
fn tcp_socket(port: u16) -> Self
TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported
sourcefn failure_threshold(self, threshold: i32) -> Self
 
fn failure_threshold(self, threshold: i32) -> Self
Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
sourcefn success_threshold(self, threshold: i32) -> Self
 
fn success_threshold(self, threshold: i32) -> Self
Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.
fn initial_delay_seconds(self, seconds: i32) -> Self
fn period_seconds(self, seconds: i32) -> Self
fn timeout_seconds(self, seconds: i32) -> Self
fn termination_grace_period_seconds(self, seconds: i64) -> Self
Object Safety§
This trait is not object safe.