API recreation of WAN Connection Up/Down

Hi all,

New to the peplink world and I’m being requested to create the “Connection Up/Down History” table that is in the device reports via API for logging purposes. I have searched the forum and it looks like people are using the “online_history” call for this, but when I compare the results from that call and the report mentioned above they are vastly different. What call/calls should I request to recreate that report?

Any help is appreciated!

WAN connection up/down and Online history are two different events.

WAN connection up/down referring to the WAN link is up or down for the device.

While Online history referring to the device online in the IC2 cloud.

Device have WAN Up not mean it will able to reach to the IC2. It can be block or route issue reaching to the IC2 cloud.

API reference :
https://www.peplink.com/ic2-api-doc/