#[non_exhaustive]pub struct Snooze {
    pub name: String,
    pub criteria: Option<Criteria>,
    pub interval: Option<TimeInterval>,
    pub display_name: String,
}Expand description
A Snooze will prevent any alerts from being opened, and close any that
are already open. The Snooze will work on alerts that match the
criteria defined in the Snooze. The Snooze will be active from
interval.start_time through interval.end_time.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringRequired. Identifier. The name of the Snooze. The format is:
projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]The ID of the Snooze will be generated by the system.
criteria: Option<Criteria>Required. This defines the criteria for applying the Snooze. See
Criteria for more information.
interval: Option<TimeInterval>Required. The Snooze will be active from interval.start_time through
interval.end_time.
interval.start_time cannot be in the past. There is a 15 second clock
skew to account for the time it takes for a request to reach the API from
the UI.
display_name: StringRequired. A display name for the Snooze. This can be, at most, 512
unicode characters.
Implementations§
Source§impl Snooze
 
impl Snooze
Sourcepub fn set_interval<T: Into<Option<TimeInterval>>>(self, v: T) -> Self
 
pub fn set_interval<T: Into<Option<TimeInterval>>>(self, v: T) -> Self
Sets the value of interval.
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
 
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.