Struct fastly_api::apis::healthcheck_api::UpdateHealthcheckParams
source · 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 copy 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