#[non_exhaustive]pub struct NotificationRule {
pub attributes: NotificationRuleAttributes,
pub id: String,
pub type_: NotificationRulesType,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Notification rules allow full control over notifications generated by the various Datadog security products. They allow users to define the conditions under which a notification should be generated (based on rule severities, rule types, rule tags, and so on), and the targets to notify. A notification rule is composed of a rule ID, a rule type, and the rule attributes. All fields are required.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.attributes: NotificationRuleAttributes
Attributes of the notification rule.
id: String
The ID of a notification rule.
type_: NotificationRulesType
The rule type associated to notification rules.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl NotificationRule
impl NotificationRule
pub fn new( attributes: NotificationRuleAttributes, id: String, type_: NotificationRulesType, ) -> NotificationRule
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for NotificationRule
impl Clone for NotificationRule
Source§fn clone(&self) -> NotificationRule
fn clone(&self) -> NotificationRule
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NotificationRule
impl Debug for NotificationRule
Source§impl<'de> Deserialize<'de> for NotificationRule
impl<'de> Deserialize<'de> for NotificationRule
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NotificationRule
impl PartialEq for NotificationRule
Source§impl Serialize for NotificationRule
impl Serialize for NotificationRule
impl StructuralPartialEq for NotificationRule
Auto Trait Implementations§
impl Freeze for NotificationRule
impl RefUnwindSafe for NotificationRule
impl Send for NotificationRule
impl Sync for NotificationRule
impl Unpin for NotificationRule
impl UnwindSafe for NotificationRule
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
Mutably borrows from an owned value. Read more