pub struct Healthcheck {Show 13 fields
pub check_interval: Option<i32>,
pub comment: Option<String>,
pub expected_response: Option<i32>,
pub headers: Option<Vec<String>>,
pub host: Option<String>,
pub http_version: Option<String>,
pub initial: Option<i32>,
pub method: Option<String>,
pub name: Option<String>,
pub path: Option<String>,
pub threshold: Option<i32>,
pub timeout: Option<i32>,
pub window: Option<i32>,
}Fields§
§check_interval: Option<i32>How often to run the health check in milliseconds. Minimum 1 second, maximum 1 hour.
comment: Option<String>A freeform descriptive note.
expected_response: Option<i32>The status code expected from the host.
headers: Option<Vec<String>>Array of custom headers that will be added to the health check probes.
host: Option<String>Which host to check.
http_version: Option<String>Whether to use version 1.0 or 1.1 HTTP.
initial: Option<i32>When loading a config, the initial number of probes to be seen as OK.
method: Option<String>Which HTTP method to use.
name: Option<String>The name of the health check.
path: Option<String>The path to check.
threshold: Option<i32>How many health checks must succeed to be considered healthy.
timeout: Option<i32>Timeout in milliseconds.
window: Option<i32>The number of most recent health check queries to keep for this health check.
Implementations§
Source§impl Healthcheck
impl Healthcheck
pub fn new() -> Healthcheck
Trait Implementations§
Source§impl Clone for Healthcheck
impl Clone for Healthcheck
Source§fn clone(&self) -> Healthcheck
fn clone(&self) -> Healthcheck
Returns a duplicate of the value. Read more
1.0.0 · 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 Healthcheck
impl Debug for Healthcheck
Source§impl Default for Healthcheck
impl Default for Healthcheck
Source§fn default() -> Healthcheck
fn default() -> Healthcheck
Returns the “default value” for a type. Read more
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
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 Freeze for Healthcheck
impl RefUnwindSafe for Healthcheck
impl Send for Healthcheck
impl Sync for Healthcheck
impl Unpin 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