pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
Sourcepub async fn dashboard_get(&self, id: &str) -> Result<Value>
pub async fn dashboard_get(&self, id: &str) -> Result<Value>
Fetch a single dashboard definition. Returns the raw JSON so callers can
read widget queries (widgets[].definition.requests[].q) without us
modelling Datadog’s large, evolving widget schema.
Sourcepub async fn dashboards_list(&self) -> Result<DashboardListResponse>
pub async fn dashboards_list(&self) -> Result<DashboardListResponse>
List all dashboards. The v1 endpoint has no server-side title search, so title filtering is done client-side by the caller.
Source§impl Client
impl Client
pub async fn logs_search(&self, req: &SearchRequest) -> Result<SearchResponse>
Source§impl Client
impl Client
pub async fn logs_aggregate( &self, req: &AggregateRequest, ) -> Result<AggregateResponse>
Source§impl Client
impl Client
pub async fn monitors_list( &self, filter: &MonitorListFilter, ) -> Result<Vec<Monitor>>
pub async fn monitor_get(&self, id: i64) -> Result<Monitor>
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl !UnwindSafe for Client
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