wmclendon / fortigaterepr

Library to interact with and create representation of operational state data of a Fortigate device.
Other
1 stars 1 forks source link

add monitor endpoint for link-monitoring #16

Open wmclendon opened 4 years ago

wmclendon commented 4 years ago

endpiont: /system/link-monitor/select

example output:

{
  "http_method": "GET",
  "results": {
    "WAN1-Check": {
      "wan1": {
        "status": "up",
        "latency": 12.039144,
        "jitter": 1.370428,
        "packet_loss": 0,
        "packet_sent": 7,
        "packet_received": 7,
        "session": 51,
        "tx_bandwidth": 92812,
        "rx_bandwidth": 6041440,
        "state_changed": 1574517919
      }
    }
  },
  "vdom": "root",
  "path": "system",
  "name": "link-monitor",
  "action": "select",
  "status": "success",
  "serial": "FOO",
  "version": "v6.0.6",
  "build": 272
}