Files
librenms-librenms/tests/data/saf_phoenix.json
Tony Murray 4d9924242f Database schema cleanup (#9064)
* target db_schema

* Database schema cleanup
Remove several inconsistencies (mostly with data types and lengths)
Make things a bit nicer to implement with Laravel database migrations.
poller* tables had f'd up indexes

* Update tests, extra noise because db returns numeric types now.

* Update test data again.

* fix 253 migration for mysql 5.3
2018-09-05 07:34:50 -05:00

307 lines
13 KiB
JSON

{
"wireless": {
"discovery": {
"wireless_sensors": [
{
"sensor_deleted": 0,
"sensor_class": "rate",
"sensor_index": "1",
"sensor_type": "saf-acm",
"sensor_descr": "ACM Capacity",
"sensor_divisor": 1,
"sensor_multiplier": 1000,
"sensor_aggregator": "sum",
"sensor_current": 362700000,
"sensor_prev": null,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.7571.100.1.1.5.1.1.1.12.1.18.1\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "rate",
"sensor_index": "1",
"sensor_type": "saf-total",
"sensor_descr": "Total Capacity",
"sensor_divisor": 1,
"sensor_multiplier": 1000,
"sensor_aggregator": "sum",
"sensor_current": 362700000,
"sensor_prev": null,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.7571.100.1.1.5.1.1.1.12.1.6.1\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "mse",
"sensor_index": "1",
"sensor_type": "saf-radial",
"sensor_descr": "Radial MSE",
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": -30.7,
"sensor_prev": null,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.7571.100.1.1.5.1.1.1.12.1.10.1\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "power",
"sensor_index": "1",
"sensor_type": "saf-rx",
"sensor_descr": "Rx Power",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": -41,
"sensor_prev": null,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.7571.100.1.1.5.1.1.1.10.1.5.1\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "power",
"sensor_index": "1",
"sensor_type": "saf-tx",
"sensor_descr": "Tx Power",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": 18,
"sensor_prev": null,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.7571.100.1.1.5.1.1.1.10.1.4.1\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "frequency",
"sensor_index": "1",
"sensor_type": "saf-tx",
"sensor_descr": "Tx Frequency",
"sensor_divisor": 1000,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": 10835,
"sensor_prev": null,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.7571.100.1.1.5.1.1.1.10.1.9.1\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "frequency",
"sensor_index": "1",
"sensor_type": "saf-rx",
"sensor_descr": "Rx Frequency",
"sensor_divisor": 1000,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": 11325,
"sensor_prev": null,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.7571.100.1.1.5.1.1.1.10.1.10.1\"]"
}
]
},
"poller": {
"wireless_sensors": [
{
"sensor_deleted": 0,
"sensor_class": "rate",
"sensor_index": "1",
"sensor_type": "saf-acm",
"sensor_descr": "ACM Capacity",
"sensor_divisor": 1,
"sensor_multiplier": 1000,
"sensor_aggregator": "sum",
"sensor_current": 362700000,
"sensor_prev": 362700000,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.7571.100.1.1.5.1.1.1.12.1.18.1\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "rate",
"sensor_index": "1",
"sensor_type": "saf-total",
"sensor_descr": "Total Capacity",
"sensor_divisor": 1,
"sensor_multiplier": 1000,
"sensor_aggregator": "sum",
"sensor_current": 362700000,
"sensor_prev": 362700000,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.7571.100.1.1.5.1.1.1.12.1.6.1\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "mse",
"sensor_index": "1",
"sensor_type": "saf-radial",
"sensor_descr": "Radial MSE",
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": -30.7,
"sensor_prev": -30.7,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.7571.100.1.1.5.1.1.1.12.1.10.1\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "power",
"sensor_index": "1",
"sensor_type": "saf-rx",
"sensor_descr": "Rx Power",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": -41,
"sensor_prev": -41,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.7571.100.1.1.5.1.1.1.10.1.5.1\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "power",
"sensor_index": "1",
"sensor_type": "saf-tx",
"sensor_descr": "Tx Power",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": 18,
"sensor_prev": 18,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.7571.100.1.1.5.1.1.1.10.1.4.1\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "frequency",
"sensor_index": "1",
"sensor_type": "saf-tx",
"sensor_descr": "Tx Frequency",
"sensor_divisor": 1000,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": 10835,
"sensor_prev": 10835,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.7571.100.1.1.5.1.1.1.10.1.9.1\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "frequency",
"sensor_index": "1",
"sensor_type": "saf-rx",
"sensor_descr": "Rx Frequency",
"sensor_divisor": 1000,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": 11325,
"sensor_prev": 11325,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.7571.100.1.1.5.1.1.1.10.1.10.1\"]"
}
]
}
}
}