pub struct Monitor {
pub id: i64,
pub name: Option<String>,
pub overall_state: Option<String>,
pub kind: Option<String>,
pub tags: Vec<String>,
pub query: Option<String>,
pub message: Option<String>,
pub extra: Value,
}Expand description
A monitor as returned by GET /api/v1/monitor and /monitor/{id}.
Only the fields we render are typed; the rest of the (large) payload is kept
in extra so -o json stays lossless.
Fields§
§id: i64§name: Option<String>§overall_state: Option<String>OK | Alert | Warn | No Data | Skipped | Ignored | …
kind: Option<String>§query: Option<String>§message: Option<String>§extra: ValueTrait 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
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