Struct fastly_api::apis::healthcheck_api::CreateHealthcheckParams
source · pub struct CreateHealthcheckParams {Show 15 fields
pub service_id: String,
pub version_id: i32,
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 create_healthcheck
Fields§
§service_id: String
Alphanumeric string identifying the service.
version_id: i32
Integer identifying a service version.
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 CreateHealthcheckParams
impl Clone for CreateHealthcheckParams
source§fn clone(&self) -> CreateHealthcheckParams
fn clone(&self) -> CreateHealthcheckParams
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 CreateHealthcheckParams
impl Debug for CreateHealthcheckParams
source§impl Default for CreateHealthcheckParams
impl Default for CreateHealthcheckParams
source§fn default() -> CreateHealthcheckParams
fn default() -> CreateHealthcheckParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for CreateHealthcheckParams
impl Send for CreateHealthcheckParams
impl Sync for CreateHealthcheckParams
impl Unpin for CreateHealthcheckParams
impl UnwindSafe for CreateHealthcheckParams
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