404
edits
Line 217: | Line 217: | ||
Requests can be given a time interval. If present, the '''interval''' counters are adjusted to this interval. The following GET parameters are necessary: | Requests can be given a time interval. If present, the '''interval''' counters are adjusted to this interval. The following GET parameters are necessary: | ||
* '''starttime''', '''endtime''': Start and end time of the interval. Format: seconds since 1970/01/01 UTC (Unix time, epoch). You can use <code>date +%s</code> on your machine to adjust to the best interval. Please consult the man page of date for more parameters. | * '''starttime''', '''endtime''': Start and end time of the interval. Format: seconds since 1970/01/01 UTC (Unix time, epoch). You can use <code>date +%s</code> on your machine to adjust to the best interval. Please consult the man page of date for more parameters. | ||
* timespan: | * '''history''': shall the JSON include the history graph if available, can be false/true default: true | ||
* '''skiphistorydata''': shall the JSON include the history data without datasets, can be false/true default: true | |||
* '''timespan''': required resolution for the graph dataset | |||
This example extracts the amount of received and transmitted bytes for an IP address for the last 24 hours. | This example extracts the amount of received and transmitted bytes for an IP address for the last 24 hours. |
edits