pub struct HttpMonitor {
pub id: String,
pub target: String,
pub method: HttpMethod,
pub interval_seconds: u64,
pub timeout_seconds: u64,
pub expected_status_min: u16,
pub expected_status_max: u16,
pub failure_threshold: u32,
pub enabled: bool,
}Fields§
§id: String§target: String§method: HttpMethod§interval_seconds: u64§timeout_seconds: u64§expected_status_min: u16§expected_status_max: u16§failure_threshold: u32§enabled: boolImplementations§
Source§impl HttpMonitor
impl HttpMonitor
pub fn new(id: impl Into<String>, target: impl Into<String>) -> Self
pub fn method(self, method: HttpMethod) -> Self
pub fn interval_seconds(self, seconds: u64) -> Self
pub fn timeout_seconds(self, seconds: u64) -> Self
pub fn expected_status(self, min: u16, max: u16) -> Self
pub fn failure_threshold(self, threshold: u32) -> Self
pub fn enabled(self, enabled: bool) -> Self
Trait Implementations§
Source§impl Clone for HttpMonitor
impl Clone for HttpMonitor
Source§fn clone(&self) -> HttpMonitor
fn clone(&self) -> HttpMonitor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HttpMonitor
impl Debug for HttpMonitor
impl Eq for HttpMonitor
Source§impl PartialEq for HttpMonitor
impl PartialEq for HttpMonitor
Source§impl Serialize for HttpMonitor
impl Serialize for HttpMonitor
impl StructuralPartialEq for HttpMonitor
Auto Trait Implementations§
impl Freeze for HttpMonitor
impl RefUnwindSafe for HttpMonitor
impl Send for HttpMonitor
impl Sync for HttpMonitor
impl Unpin for HttpMonitor
impl UnsafeUnpin for HttpMonitor
impl UnwindSafe for HttpMonitor
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