pub struct EventsApi { /* private fields */ }Expand description
API client for Datadog events endpoints.
Implementations§
Source§impl EventsApi
impl EventsApi
Sourcepub const fn new(client: DatadogClient) -> Self
pub const fn new(client: DatadogClient) -> Self
Creates a new API client.
pub async fn list_events( &self, start: i64, end: i64, priority: Option<&str>, sources: Option<&str>, ) -> Result<EventsResponse>
pub async fn post_event( &self, request: &EventCreateRequest, ) -> Result<EventResponse>
pub async fn get_event(&self, event_id: i64) -> Result<EventResponse>
Auto Trait Implementations§
impl Freeze for EventsApi
impl !RefUnwindSafe for EventsApi
impl Send for EventsApi
impl Sync for EventsApi
impl Unpin for EventsApi
impl !UnwindSafe for EventsApi
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