librenms-librenms/tests/data/linux_ups-apcups-v1.json
VVelox 01eebd48c7 convert UPS-APCUPS over to JSON (#9095)
* add test data for the ups-apcups app

* add ups-apcups SNMP test data

* update for both legacy and JSON

* update the docs for the new extend

* add a comment so git sees this file as updated

* add missing "applications": {

* regen the json version

* properly regen the test json

* test fix

* fix the v1 tests json for ups-apcups

* regen post fixing json-app-tool

* regen the json again after more tweaks to the json-app-tool

* see if it does not like .0 for numbers that would otherwise be integers

* data is not a constant

* ...wow... missed that $json_return was mis-spelled twice :(

* re-add the .0s to some test data
2018-12-28 20:07:57 -06:00

74 lines
2.2 KiB
JSON

{
"applications": {
"discovery": {
"applications": [
{
"app_type": "ups-apcups",
"app_state": "UNKNOWN",
"discovered": "1",
"app_state_prev": null,
"app_status": "",
"app_instance": ""
}
],
"application_metrics": []
},
"poller": {
"applications": [
{
"app_type": "ups-apcups",
"app_state": "OK",
"discovered": "1",
"app_state_prev": "UNKNOWN",
"app_status": "",
"app_instance": ""
}
],
"application_metrics": [
{
"metric": "battery_nominal",
"value": "24.0",
"value_prev": null,
"app_type": "ups-apcups"
},
{
"metric": "battery_voltage",
"value": "27.0",
"value_prev": null,
"app_type": "ups-apcups"
},
{
"metric": "charge",
"value": "100.0",
"value_prev": null,
"app_type": "ups-apcups"
},
{
"metric": "input_voltage",
"value": "117.0",
"value_prev": null,
"app_type": "ups-apcups"
},
{
"metric": "load",
"value": "37.0",
"value_prev": null,
"app_type": "ups-apcups"
},
{
"metric": "nominal_voltage",
"value": "120",
"value_prev": null,
"app_type": "ups-apcups"
},
{
"metric": "time_remaining",
"value": "8.1",
"value_prev": null,
"app_type": "ups-apcups"
}
]
}
}
}