Struct fastly_api::apis::healthcheck_api::CreateHealthcheckParams
source · [−]pub struct CreateHealthcheckParams {Show 14 fields
pub service_id: String,
pub version_id: i32,
pub check_interval: Option<i32>,
pub comment: Option<String>,
pub expected_response: Option<i32>,
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: StringAlphanumeric string identifying the service.
version_id: i32Integer identifying a service version.
check_interval: Option<i32>How often to run the healthcheck in milliseconds.
comment: Option<String>A freeform descriptive note.
expected_response: Option<i32>The status code expected from the host.
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 healthcheck.
path: Option<String>The path to check.
threshold: Option<i32>How many healthchecks must succeed to be considered healthy.
timeout: Option<i32>Timeout in milliseconds.
window: Option<i32>The number of most recent healthcheck queries to keep for this healthcheck.
Trait Implementations
sourceimpl Clone for CreateHealthcheckParams
impl Clone for CreateHealthcheckParams
sourcefn clone(&self) -> CreateHealthcheckParams
fn clone(&self) -> CreateHealthcheckParams
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for CreateHealthcheckParams
impl Debug for CreateHealthcheckParams
sourceimpl Default for CreateHealthcheckParams
impl Default for CreateHealthcheckParams
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more