Get the total number of active hosts
GET {{baseUrl}}/api/v1/hosts/totals?from=-62147425
This endpoint returns the total number of active and up hosts in your Datadog account. Active means the host has reported in the past hour, and up means it has reported in the past two hours.
Request Params
| Key | Datatype | Required | Description |
|---|---|---|---|
from | number | Number of seconds from which you want to get total number of active hosts. |
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"total_active":70097963,"total_up":11529364}