ezeio2:apiref:eventlog

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
ezeio2:apiref:eventlog [2019-10-28 21:09] andrehezeio2:apiref:eventlog [2021-08-24 20:33] (current) andreh
Line 5: Line 5:
 === Description === === Description ===
  
-<code>https://api.eze.io/v1/eventlog/{serial}/from={datetime}/to={datetime}</code>+<code>https://api.eze.io/v1/eventlog/{serial}/from={datetime}/[to={datetime}]</code>
  
 === Parameters === === Parameters ===
  
 | ''serial'' | The serial number of the ezeio (XYZ987) | | ''serial'' | The serial number of the ezeio (XYZ987) |
-| ''from=datetime'' | The beginning of the range. Format per RFC3339+| ''from=datetime'' | The beginning of the range. Format per RFC3339, or 1m/1h/1d 
-| ''to=datetime'' | The end of the range. Format per RFC3339. |+| ''to=datetime'' | The end of the range. Format per RFC3339. If omitted, current time is assumed. |
  
-Under no circumstances will the call return more than 100 rows of data.+The ''from'' parameter can be given as number of minutes/hours/days relative to current time. For example ''from=90m'' means "90 minutes ago"
 + 
 +Under no circumstances will the call return more than 300 rows of data.
  
 === Example usage === === Example usage ===
  • ezeio2/apiref/eventlog.1572296946.txt.gz
  • Last modified: 2019-10-28 21:09
  • by andreh