pub struct UpdateHealthcheckParams {Show 16 fields
pub service_id: String,
pub version_id: i32,
pub healthcheck_name: String,
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>,
}
Expand description
struct for passing parameters to the method update_healthcheck
Fields§
§service_id: String
Alphanumeric string identifying the service.
version_id: i32
Integer identifying a service version.
healthcheck_name: String
The name of the health check.
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.
Trait Implementations§
Source§impl Clone for UpdateHealthcheckParams
impl Clone for UpdateHealthcheckParams
Source§fn clone(&self) -> UpdateHealthcheckParams
fn clone(&self) -> UpdateHealthcheckParams
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 UpdateHealthcheckParams
impl Debug for UpdateHealthcheckParams
Source§impl Default for UpdateHealthcheckParams
impl Default for UpdateHealthcheckParams
Source§fn default() -> UpdateHealthcheckParams
fn default() -> UpdateHealthcheckParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UpdateHealthcheckParams
impl RefUnwindSafe for UpdateHealthcheckParams
impl Send for UpdateHealthcheckParams
impl Sync for UpdateHealthcheckParams
impl Unpin for UpdateHealthcheckParams
impl UnwindSafe for UpdateHealthcheckParams
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