Struct mackerel_client::check_report::CheckReport
source · pub struct CheckReport {
pub name: String,
pub message: String,
pub source: CheckSource,
pub status: AlertStatus,
pub occurred_at: DateTime<Utc>,
pub notification_interval: Option<u64>,
pub max_check_attempts: Option<u64>,
}
Expand description
A check report
Fields§
§name: String
§message: String
§source: CheckSource
§status: AlertStatus
§occurred_at: DateTime<Utc>
§notification_interval: Option<u64>
§max_check_attempts: Option<u64>
Implementations§
source§impl CheckReport
impl CheckReport
sourcepub fn builder() -> CheckReportBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> CheckReportBuilder<((), (), (), (), (), (), ())>
Create a builder for building CheckReport
.
On the builder, call .name(...)
, .message(...)
(optional), .source(...)
, .status(...)
, .occurred_at(...)
, .notification_interval(...)
(optional), .max_check_attempts(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of CheckReport
.
Trait Implementations§
source§impl Clone for CheckReport
impl Clone for CheckReport
source§fn clone(&self) -> CheckReport
fn clone(&self) -> CheckReport
Returns a copy of the value. Read more
1.0.0 · 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 CheckReport
impl Debug for CheckReport
source§impl<'de> Deserialize<'de> for CheckReport
impl<'de> Deserialize<'de> for CheckReport
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
source§impl PartialEq for CheckReport
impl PartialEq for CheckReport
source§fn eq(&self, other: &CheckReport) -> bool
fn eq(&self, other: &CheckReport) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CheckReport
impl Serialize for CheckReport
impl StructuralPartialEq for CheckReport
Auto Trait Implementations§
impl Freeze for CheckReport
impl RefUnwindSafe for CheckReport
impl Send for CheckReport
impl Sync for CheckReport
impl Unpin for CheckReport
impl UnwindSafe for CheckReport
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