pub struct Monitor {Show 23 fields
pub name: String,
pub kind: Kind,
pub url: Option<String>,
pub host: Option<String>,
pub port: Option<u16>,
pub app: Option<String>,
pub domain: Option<String>,
pub path: Option<String>,
pub method: String,
pub expected_status: String,
pub keyword: Option<String>,
pub keyword_absent: Option<String>,
pub follow_redirects: bool,
pub headers: Vec<Header>,
pub interval: u64,
pub timeout: u64,
pub failure_threshold: u32,
pub recovery_threshold: u32,
pub cert_expiry_days: u32,
pub paused: bool,
pub auto: bool,
pub created_at: u64,
pub updated_at: u64,
}Expand description
One monitor. Fields that do not apply to its type are refused.
Fields§
§name: String§kind: Kind§url: Option<String>http: the URL.
host: Option<String>tcp: host and port.
port: Option<u16>§app: Option<String>app: the app, by name.
domain: Option<String>app: which of its domains (default: the first one served).
path: Option<String>app: the path to request (default: the domain’s path).
method: StringGET or HEAD.
expected_status: StringStatus codes that count as up: 200-399, 200,204, 200-299,301.
keyword: Option<String>The body must contain this.
keyword_absent: Option<String>The body must not contain this.
follow_redirects: bool§headers: Vec<Header>§interval: u64Seconds between checks (at least 30).
timeout: u64Seconds one check may take.
failure_threshold: u32Failed checks in a row that make it down.
recovery_threshold: u32Successful checks in a row that make it up again.
cert_expiry_days: u32Warn this many days before an HTTPS certificate expires (0: never).
paused: bool§auto: boolMade for an app with a served domain (app-<name>).
created_at: u64§updated_at: u64Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Monitor
impl<'de> Deserialize<'de> for Monitor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Monitor
Auto Trait Implementations§
impl Freeze for Monitor
impl RefUnwindSafe for Monitor
impl Send for Monitor
impl Sync for Monitor
impl Unpin for Monitor
impl UnsafeUnpin for Monitor
impl UnwindSafe for Monitor
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