pub struct HostsApi<'a> { /* private fields */ }Expand description
Hosts API façade.
Implementations§
Source§impl<'a> HostsApi<'a>
impl<'a> HostsApi<'a>
Sourcepub fn new(client: &'a DatadogClient) -> Self
pub fn new(client: &'a DatadogClient) -> Self
Wraps an existing DatadogClient for hosts operations.
Sourcepub async fn list(
&self,
filter: &HostsListFilter,
limit: usize,
) -> Result<HostsResponse>
pub async fn list( &self, filter: &HostsListFilter, limit: usize, ) -> Result<HostsResponse>
Lists hosts matching filter, auto-paginating as needed.
limit == 0 means “fetch every match up to HARD_CAP”. The
total_returned and total_matching fields on the returned
envelope reflect the aggregate across all pages issued.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for HostsApi<'a>
impl<'a> !RefUnwindSafe for HostsApi<'a>
impl<'a> Send for HostsApi<'a>
impl<'a> Sync for HostsApi<'a>
impl<'a> Unpin for HostsApi<'a>
impl<'a> UnsafeUnpin for HostsApi<'a>
impl<'a> !UnwindSafe for HostsApi<'a>
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