Files
librenms-librenms/tests/data/linux_ntp-client-legacy.json
VVelox 6d62026751 convert NTP to JSON and json_app_get (#9088)
* add tests for v1 of the JSON NTP client stuff

* update the NTP stuff to work with legacy and JSON

* add the NTP client legacy tests

* Update ntp-server.inc.php
2018-08-27 08:16:53 -05:00

56 lines
1.5 KiB
JSON

{
"discovery": {
"applications": {
"app_type": "ntp-client",
"app_state": "UNKNOWN",
"discovered": "1",
"app_state_prev": null,
"app_status": "",
"app_instance": ""
},
"application_metrics": []
},
"poller": {
"applications": {
"app_type": "ntp-client",
"app_state": "OK",
"discovered": "1",
"app_state_prev": "UNKNOWN",
"app_status": "",
"app_instance": ""
},
"application_metrics": [
{
"metric": "clk_jitter",
"value": "0.853",
"value_prev": null,
"app_type": "ntp-client"
},
{
"metric": "clk_wander",
"value": "0.025",
"value_prev": null,
"app_type": "ntp-client"
},
{
"metric": "frequency",
"value": "91.141",
"value_prev": null,
"app_type": "ntp-client"
},
{
"metric": "offset",
"value": "0.702900",
"value_prev": null,
"app_type": "ntp-client"
},
{
"metric": "sys_jitter",
"value": "2.581995",
"value_prev": null,
"app_type": "ntp-client"
}
]
}
}