pub struct AlertAttributes {Show 15 fields
pub url: Option<String>,
pub created_at: DateTime<FixedOffset>,
pub updated_at: DateTime<FixedOffset>,
pub timeframe: Option<String>,
pub header: String,
pub short_header: String,
pub severity: u8,
pub service_effect: String,
pub lifecycle: Lifecycle,
pub effect: Effect,
pub description: Option<String>,
pub cause: Cause,
pub banner: Option<String>,
pub active_period: Vec<ActivePeriod>,
pub informed_entity: Vec<InformedEntity>,
}Expand description
Attributes for an alert.
Fields§
§url: Option<String>A URL for extra details, such as outline construction or maintenance plans.
created_at: DateTime<FixedOffset>Date/Time alert created.
updated_at: DateTime<FixedOffset>Date/Time alert last updated.
timeframe: Option<String>Summarizes when an alert is in effect.
header: StringHeader description for an alert.
short_header: StringA shortened version of header.
severity: u8How severe the alert is, from 0 (least severe) to 10 (most severe).
service_effect: StringSummarizes the service and the impact to that service.
lifecycle: LifecycleIdentifies whether an alert is a new or old, in effect or upcoming.
effect: EffectThe effect of this problem on the affected entity.
description: Option<String>This plain-text string will be formatted as the body of the alert (or shown on an explicit “expand” request by the user). The information in the description should add to the information of the header.
cause: CauseWhat is causing the alert.
Set if alert is meant to be displayed prominently, such as the top of every page.
active_period: Vec<ActivePeriod>Active periods for an alert.
informed_entity: Vec<InformedEntity>Entities affected by an alert.
Trait Implementations§
Source§impl Clone for AlertAttributes
impl Clone for AlertAttributes
Source§fn clone(&self) -> AlertAttributes
fn clone(&self) -> AlertAttributes
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AlertAttributes
impl Debug for AlertAttributes
Source§impl<'de> Deserialize<'de> for AlertAttributes
impl<'de> Deserialize<'de> for AlertAttributes
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>,
Source§impl PartialEq for AlertAttributes
impl PartialEq for AlertAttributes
Source§impl Serialize for AlertAttributes
impl Serialize for AlertAttributes
impl StructuralPartialEq for AlertAttributes
Auto Trait Implementations§
impl Freeze for AlertAttributes
impl RefUnwindSafe for AlertAttributes
impl Send for AlertAttributes
impl Sync for AlertAttributes
impl Unpin for AlertAttributes
impl UnwindSafe for AlertAttributes
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more