I was looking for an API to know how many times a device rebooted.
https://api.ic.peplink.com/rest/o/xxx/g/x/d/x/event_log?&direction=1&row_per_page=100&from_date=2020-11-15T06:59:07&to_date=2020-11-17T06:59:07&keyword=reboot
this API does tell me how many times the device was rebooted via Web.
keyword=offline
would tell me how many times a device went online and offline.
- what happens if the device gets rebooted for some other reason, by itself, do you log that even as well.
- if offline for a day, how many times you log it as
offline
? only once or u periodically log it asoffline
, the reason I’m asking this is, I’m planning to parse theseoffline/online
in my app. ex:no off offline/online = no of reboots
. does it make sense
thanks.