pub struct Monitor {Show 25 fields
pub name: String,
pub kind: Kind,
pub url: Option<String>,
pub host: Option<String>,
pub port: Option<u16>,
pub app: Option<String>,
pub stack: Option<String>,
pub service: 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.
stack: Option<String>service: the compose stack, by name.
service: Option<String>service: the stack’s service, by name.
domain: Option<String>app, service: which of its domains (default: the first one served).
path: Option<String>app, service: the path to request (default: the path the service’s healthcheck requests over HTTP, else 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 (app-<name>) or a compose stack service
(stack-<stack>-<service>) with a served domain.
created_at: u64§updated_at: u64