Inventory Statistics
This endpoint returns statistics for inventory items.
GET /openapi/v1/inventory/{id}/stats?t0=<t0>&t1=<t1>&td=<td>
Path Parameter |
Description |
---|---|
id |
Inventory item id as |
Query Parameter |
Description |
---|---|
t0 |
Start time for statistics in epoch time |
t1 |
End time for statistics in epoch time |
td |
Granularity for statistic aggregations. An integer specifies number of seconds. Strings may be passed such as “minute”, “hour”, and “day”. |
Sample Python code
resp = restclient.get('/inventory/1.1.1.1-123/stats?t0=1483228800&t1=1485907200&td=day')