pub struct AlertSchedulerRule {
pub unique_identifier: Option<String>,
pub id: Option<String>,
pub name: String,
pub description: Option<String>,
pub meta_labels: Vec<MetaLabel>,
pub filter: Option<Filter>,
pub schedule: Option<Schedule>,
pub enabled: bool,
pub created_at: Option<String>,
pub updated_at: Option<String>,
}
Fields§
§unique_identifier: Option<String>
Rule unique_identifier: The rule id.
id: Option<String>
Rule id: The rule version id.
name: String
Rule name.
description: Option<String>
Rule description.
meta_labels: Vec<MetaLabel>
Rule meta_labels: Rule tags over the system.
filter: Option<Filter>
Rule filter: The rule filter definition over alert-events.
schedule: Option<Schedule>
Rule schedule: The schedule time definition, how often the rule will be active.
enabled: bool
Rule enabled: The rule activation mode.
created_at: Option<String>
Rule created_at: The date-time when the rule was created.
updated_at: Option<String>
Rule updated_at: The date-time when the rule was updated.
Implementations§
source§impl AlertSchedulerRule
impl AlertSchedulerRule
sourcepub fn unique_identifier(&self) -> &str
pub fn unique_identifier(&self) -> &str
Returns the value of unique_identifier
, or the default value if unique_identifier
is unset.
sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the value of description
, or the default value if description
is unset.
sourcepub fn created_at(&self) -> &str
pub fn created_at(&self) -> &str
Returns the value of created_at
, or the default value if created_at
is unset.
sourcepub fn updated_at(&self) -> &str
pub fn updated_at(&self) -> &str
Returns the value of updated_at
, or the default value if updated_at
is unset.
Trait Implementations§
source§impl Clone for AlertSchedulerRule
impl Clone for AlertSchedulerRule
source§fn clone(&self) -> AlertSchedulerRule
fn clone(&self) -> AlertSchedulerRule
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AlertSchedulerRule
impl Debug for AlertSchedulerRule
source§impl Default for AlertSchedulerRule
impl Default for AlertSchedulerRule
source§fn default() -> AlertSchedulerRule
fn default() -> AlertSchedulerRule
source§impl<'de> Deserialize<'de> for AlertSchedulerRule
impl<'de> Deserialize<'de> for AlertSchedulerRule
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AlertSchedulerRule, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AlertSchedulerRule, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
source§impl Message for AlertSchedulerRule
impl Message for AlertSchedulerRule
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 AlertSchedulerRule
impl PartialEq for AlertSchedulerRule
source§impl Serialize for AlertSchedulerRule
impl Serialize for AlertSchedulerRule
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for AlertSchedulerRule
Auto Trait Implementations§
impl Freeze for AlertSchedulerRule
impl RefUnwindSafe for AlertSchedulerRule
impl Send for AlertSchedulerRule
impl Sync for AlertSchedulerRule
impl Unpin for AlertSchedulerRule
impl UnwindSafe for AlertSchedulerRule
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§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