Skip to main content

Module hosts_api

Module hosts_api 

Source
Expand description

Datadog Hosts API wrapper.

Exposes a thin façade over DatadogClient for the read-only hosts endpoint (GET /api/v1/hosts). Auto-paginates via start / count query parameters, capped at HARD_CAP hosts per invocation.

Structs§

HostsApi
Hosts API façade.
HostsListFilter
Filters accepted by GET /api/v1/hosts.

Constants§

HARD_CAP
Per-call upper bound on the number of hosts returned.
LIST_PAGE_SIZE
Default page size. Datadog accepts up to 1000 per page; 100 keeps individual responses small while still being efficient for the auto-pagination loop.