pub struct HealthcheckResponse {Show 18 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>,
pub service_id: Option<Box<String>>,
pub version: Option<Box<i32>>,
pub created_at: Option<String>,
pub deleted_at: Option<String>,
pub updated_at: Option<String>,
}
Fields§
§check_interval: Option<i32>
How often to run the health check in milliseconds.
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.
service_id: Option<Box<String>>
§version: Option<Box<i32>>
§created_at: Option<String>
Date and time in ISO 8601 format.
deleted_at: Option<String>
Date and time in ISO 8601 format.
updated_at: Option<String>
Date and time in ISO 8601 format.
Implementations§
Source§impl HealthcheckResponse
impl HealthcheckResponse
pub fn new() -> HealthcheckResponse
Trait Implementations§
Source§impl Clone for HealthcheckResponse
impl Clone for HealthcheckResponse
Source§fn clone(&self) -> HealthcheckResponse
fn clone(&self) -> HealthcheckResponse
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 HealthcheckResponse
impl Debug for HealthcheckResponse
Source§impl Default for HealthcheckResponse
impl Default for HealthcheckResponse
Source§fn default() -> HealthcheckResponse
fn default() -> HealthcheckResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HealthcheckResponse
impl<'de> Deserialize<'de> for HealthcheckResponse
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 HealthcheckResponse
impl PartialEq for HealthcheckResponse
Source§impl Serialize for HealthcheckResponse
impl Serialize for HealthcheckResponse
impl StructuralPartialEq for HealthcheckResponse
Auto Trait Implementations§
impl Freeze for HealthcheckResponse
impl RefUnwindSafe for HealthcheckResponse
impl Send for HealthcheckResponse
impl Sync for HealthcheckResponse
impl Unpin for HealthcheckResponse
impl UnwindSafe for HealthcheckResponse
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