pub struct AlertSpec {
pub event_metadata: Option<BTreeMap<String, String>>,
pub event_severity: Option<AlertEventSeverity>,
pub event_sources: Vec<AlertEventSources>,
pub exclusion_list: Option<Vec<String>>,
pub inclusion_list: Option<Vec<String>>,
pub provider_ref: AlertProviderRef,
pub suspend: Option<bool>,
}Expand description
AlertSpec defines an alerting rule for events involving a list of objects.
Fields§
§event_metadata: Option<BTreeMap<String, String>>EventMetadata adds metadata to events. Sources, from lowest to highest precedence:
event.toolkit.fluxcd.io/ annotations on the involved object, Alert .spec.eventMetadata,
and controller-defined <controller group>.toolkit.fluxcd.io/ event metadata.
Higher precedence wins; conflicts produce an info log and a Warning Event.
See the Alert API docs (Event metadata section).
event_severity: Option<AlertEventSeverity>EventSeverity specifies how to filter events based on severity. If set to ‘info’ no events will be filtered.
event_sources: Vec<AlertEventSources>EventSources specifies how to filter events based on the involved object kind, name and namespace.
exclusion_list: Option<Vec<String>>ExclusionList specifies a list of Golang regular expressions to be used for excluding messages.
inclusion_list: Option<Vec<String>>InclusionList specifies a list of Golang regular expressions to be used for including messages.
provider_ref: AlertProviderRefProviderRef specifies which Provider this Alert should use.
suspend: Option<bool>Suspend tells the controller to suspend subsequent events handling for this Alert.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AlertSpec
impl<'de> Deserialize<'de> for AlertSpec
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>,
impl StructuralPartialEq for AlertSpec
Auto Trait Implementations§
impl Forget for AlertSpec
impl Freeze for AlertSpec
impl Move for AlertSpec
impl RefUnwindSafe for AlertSpec
impl Send for AlertSpec
impl Sync for AlertSpec
impl Unpin for AlertSpec
impl UnsafeUnpin for AlertSpec
impl UnwindSafe for AlertSpec
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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