pub struct NewAlert {
pub deployment: String,
pub threshold: f64,
pub webhook_url: String,
pub metric: Option<String>,
}Expand description
The body of ObsClient::create_alert.
Fields§
§deployment: String§threshold: f64§webhook_url: String§metric: Option<String>errors when None — currently the only metric.
Implementations§
Trait Implementations§
impl StructuralPartialEq for NewAlert
Auto Trait Implementations§
impl Freeze for NewAlert
impl RefUnwindSafe for NewAlert
impl Send for NewAlert
impl Sync for NewAlert
impl Unpin for NewAlert
impl UnsafeUnpin for NewAlert
impl UnwindSafe for NewAlert
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