pub struct HealthCheckPatch {
pub name: Option<String>,
pub config: Option<Value>,
pub interval: Option<u32>,
pub timeout: Option<u32>,
pub retries: Option<u32>,
pub retry_interval: Option<u32>,
}Expand description
PATCH /health-checks/:record_id body; None fields stay unchanged. config, when
given, replaces the whole config and must match the existing type (the type cannot
change). Core checks the run-length rule of NewHealthCheck against the patch
combined with the stored values.
Fields§
§name: Option<String>New label.
config: Option<Value>New config object, the config part of HealthCheckConfig only (without
type).
interval: Option<u32>Seconds; same range as NewHealthCheck::interval.
timeout: Option<u32>Seconds; same range as NewHealthCheck::timeout.
retries: Option<u32>0–5.
retry_interval: Option<u32>Seconds, 5–60.
Implementations§
Trait Implementations§
Source§impl Clone for HealthCheckPatch
impl Clone for HealthCheckPatch
Source§fn clone(&self) -> HealthCheckPatch
fn clone(&self) -> HealthCheckPatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HealthCheckPatch
impl Debug for HealthCheckPatch
Source§impl Default for HealthCheckPatch
impl Default for HealthCheckPatch
Source§fn default() -> HealthCheckPatch
fn default() -> HealthCheckPatch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HealthCheckPatch
impl RefUnwindSafe for HealthCheckPatch
impl Send for HealthCheckPatch
impl Sync for HealthCheckPatch
impl Unpin for HealthCheckPatch
impl UnsafeUnpin for HealthCheckPatch
impl UnwindSafe for HealthCheckPatch
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