Skip to content

API Details: Completed Hosts History

Rainer Simon edited this page Jan 25, 2013 · 2 revisions

API-Details: Completed Hosts History

/api/timeline/completed-hosts

Returns the “completed hosts” timeseries, i.e. the number of “host was encountered for the last time” events vs. time.

Parameters:

maxpoints the maximum number of datapoints the timeseries should be resampled to

Example: /api/timeline/completed-hosts?maxpoints=800

Response Fields

x the X-coordinate of the timeseries: UNIX timestamp
y the Y-coordinate of the timeseries: number of completed hosts

Example Response
[
   {"x":1345791900,"y":502},
   {"x":1345792140,"y":599},
   {"x":1345792380,"y":48},
   {"x":1345792620,"y":123},
   {"x":1345792860,"y":206},
   {"x":1345793100,"y":457},
   {"x":1345793340,"y":623},
   {"x":1345793580,"y":396},
   {"x":1345793820,"y":826},
   {"x":1345794060,"y":568}
]