pub struct HealthCheck {
pub path: String,
pub port: Option<u16>,
pub method: String,
pub timeout_seconds: u32,
pub failure_threshold: u32,
pub startup_timeout_seconds: Option<u32>,
}Expand description
HTTP health check configuration.
Fields§
§path: StringHTTP endpoint path to check (e.g., “/health”, “/ready”)
port: Option<u16>Port to check (defaults to container port if not specified)
method: StringHTTP method to use for health check
timeout_seconds: u32Request timeout in seconds (1-5)
failure_threshold: u32Number of consecutive failures before marking replica unhealthy
startup_timeout_seconds: Option<u32>Daemons only: how long a replica may run without passing its health check before the update fails, in seconds, counted from when the replica first reports running. Defaults to 600 (10 minutes); at most 86400 (24 hours).
Trait Implementations§
Source§impl Clone for HealthCheck
impl Clone for HealthCheck
Source§impl Debug for HealthCheck
impl Debug for HealthCheck
Source§impl Default for HealthCheck
impl Default for HealthCheck
Source§impl<'de> Deserialize<'de> for HealthCheck
impl<'de> Deserialize<'de> for HealthCheck
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HealthCheck
Source§impl PartialEq for HealthCheck
impl PartialEq for HealthCheck
Source§impl Serialize for HealthCheck
impl Serialize for HealthCheck
impl StructuralPartialEq for HealthCheck
Auto Trait Implementations§
impl Forget for HealthCheck
impl Freeze for HealthCheck
impl Move for HealthCheck
impl RefUnwindSafe for HealthCheck
impl Send for HealthCheck
impl Sync for HealthCheck
impl Unpin for HealthCheck
impl UnsafeUnpin for HealthCheck
impl UnwindSafe for HealthCheck
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.