pub struct CreateEventPayload { /* private fields */ }Expand description
§Examples
use datadog_client::events::{CreateEventPayload, AlertType, Priority};
let event = CreateEventPayload::new(
"Some Title".to_string(),
"Some Text in Markdown".to_string(),
)
.set_aggregation_key("whatever".to_string())
.add_tag("environment:prod".to_string());Implementations§
Source§impl CreateEventPayload
impl CreateEventPayload
pub fn new(title: String, text: String) -> Self
pub fn set_aggregation_key(self, value: String) -> Self
pub fn set_alert_type(self, value: AlertType) -> Self
pub fn set_date_happened(self, value: i64) -> Self
pub fn set_device_name(self, value: String) -> Self
pub fn set_host(self, value: String) -> Self
pub fn set_priority(self, value: Priority) -> Self
pub fn set_source_type_name(self, value: String) -> Self
pub fn add_tag(self, value: String) -> Self
Trait Implementations§
Source§impl Debug for CreateEventPayload
impl Debug for CreateEventPayload
Auto Trait Implementations§
impl Freeze for CreateEventPayload
impl RefUnwindSafe for CreateEventPayload
impl Send for CreateEventPayload
impl Sync for CreateEventPayload
impl Unpin for CreateEventPayload
impl UnwindSafe for CreateEventPayload
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