pub struct NewHealthCheck {
pub record_id: Uuid,
pub config: HealthCheckConfig,
pub name: Option<String>,
pub interval: u32,
pub timeout: u32,
pub retries: Option<u32>,
pub retry_interval: Option<u32>,
}Expand description
POST /health-checks body. Besides the ranges below, Core requires one run to end
before the next is due: timeout × (retries + 1) + retry_interval × retries < interval
(with retry_interval 5 when None), otherwise
ErrorCode::Validation.
Fields§
§record_id: UuidThe record value to check.
config: HealthCheckConfigWhat to check.
name: Option<String>Free-form label, up to 255 characters.
interval: u32Seconds, 60–86 400.
timeout: u32Seconds, 1–30.
retries: Option<u32>0–5; Core counts None as 0.
retry_interval: Option<u32>Seconds, 5–60; Core waits 5 s when None.
Trait Implementations§
Source§impl Clone for NewHealthCheck
impl Clone for NewHealthCheck
Source§fn clone(&self) -> NewHealthCheck
fn clone(&self) -> NewHealthCheck
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 NewHealthCheck
impl Debug for NewHealthCheck
Auto Trait Implementations§
impl Freeze for NewHealthCheck
impl RefUnwindSafe for NewHealthCheck
impl Send for NewHealthCheck
impl Sync for NewHealthCheck
impl Unpin for NewHealthCheck
impl UnsafeUnpin for NewHealthCheck
impl UnwindSafe for NewHealthCheck
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