Struct google_api_proto::google::monitoring::v3::Snooze
source · 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§
§name: String
Required. 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: String
Required. A display name for the Snooze
. This can be, at most, 512
unicode characters.
Trait Implementations§
source§impl Message for Snooze
impl Message for Snooze
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Snooze
impl PartialEq for Snooze
impl StructuralPartialEq for Snooze
Auto Trait Implementations§
impl Freeze for Snooze
impl RefUnwindSafe for Snooze
impl Send for Snooze
impl Sync for Snooze
impl Unpin for Snooze
impl UnwindSafe for Snooze
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request