librenms/tests/data/linux_powerdns-v1.json
Zane C. Bowers-Hadley 2618a99be5
Application Soft Delete (#15270)
* add the softdeletes migrations for applications

* add working migration file

* add deleted_at to db schema.yaml for applications

* update includes/html/forms/application-update.inc.php to work with softdeletes

* update includes/html/pages/device/edit/apps.inc.php for softdelete

* update includes/discovery/applications.inc.php to work with softdelete

* minor updates to application-update.inc.php for disabling

* style cleanup

* set discovered when running discovery

* update application tests to include deleted_at

* add deleted_at to a missed test

* a few more tweaks for opensips

* add a missing deleted_at for linux_suricata_extract-v1

* fix fillable for Application model

* massive cleanup of the application update widget thingy

* improve the code for discovery and using Laravel

* add a missing line to app/Models/Application

* add a missing include to app/Models/Application.php

* record includes for Application model

* remove apps from the applications table when a device is deleted

* revert to using upcert and where for discovery to fix CI

* make discovered fillable and set it when running discovery... convert back to firstOrNew

* clean up application discovery a bit and use observer

* style fix

* spelling fix... disablaed -> disabled

* rever removal to just use where

* cleanup app removal on delete

* add restored to ModuleModelObserver

* delete -> forcedelete fix

* apply the suggested changes

* use murrants other suggestion

* style fix
2023-09-06 16:34:39 -05:00

188 lines
6.0 KiB
JSON

{
"applications": {
"discovery": {
"applications": [
{
"app_type": "powerdns",
"app_state": "UNKNOWN",
"discovered": 1,
"app_state_prev": null,
"app_status": "",
"app_instance": "",
"data": null,
"deleted_at": null
}
]
},
"poller": {
"applications": [
{
"app_type": "powerdns",
"app_state": "OK",
"discovered": 1,
"app_state_prev": "UNKNOWN",
"app_status": "",
"app_instance": "",
"data": null,
"deleted_at": null
}
],
"application_metrics": [
{
"metric": "corruptPackets",
"value": 263986,
"value_prev": null,
"app_type": "powerdns"
},
{
"metric": "def_cacheInserts",
"value": 103618,
"value_prev": null,
"app_type": "powerdns"
},
{
"metric": "def_cacheLookup",
"value": 46903,
"value_prev": null,
"app_type": "powerdns"
},
{
"metric": "latency",
"value": 77,
"value_prev": null,
"app_type": "powerdns"
},
{
"metric": "pc_hit",
"value": 26752411,
"value_prev": null,
"app_type": "powerdns"
},
{
"metric": "pc_miss",
"value": 56237088,
"value_prev": null,
"app_type": "powerdns"
},
{
"metric": "pc_size",
"value": 10144,
"value_prev": null,
"app_type": "powerdns"
},
{
"metric": "q_tcpAnswers",
"value": 342297,
"value_prev": null,
"app_type": "powerdns"
},
{
"metric": "q_tcpQueries",
"value": 342337,
"value_prev": null,
"app_type": "powerdns"
},
{
"metric": "q_timedout",
"value": 101,
"value_prev": null,
"app_type": "powerdns"
},
{
"metric": "q_udp4Answers",
"value": 69162533,
"value_prev": null,
"app_type": "powerdns"
},
{
"metric": "q_udp4Queries",
"value": 69139691,
"value_prev": null,
"app_type": "powerdns"
},
{
"metric": "q_udp6Answers",
"value": 13642112,
"value_prev": null,
"app_type": "powerdns"
},
{
"metric": "q_udp6Queries",
"value": 13618995,
"value_prev": null,
"app_type": "powerdns"
},
{
"metric": "q_udpAnswers",
"value": 82804645,
"value_prev": null,
"app_type": "powerdns"
},
{
"metric": "q_udpQueries",
"value": 82758686,
"value_prev": null,
"app_type": "powerdns"
},
{
"metric": "qc_hit",
"value": 116318482,
"value_prev": null,
"app_type": "powerdns"
},
{
"metric": "qc_miss",
"value": 132904846,
"value_prev": null,
"app_type": "powerdns"
},
{
"metric": "qsize",
"value": 0,
"value_prev": null,
"app_type": "powerdns"
},
{
"metric": "rec_answers",
"value": 0,
"value_prev": null,
"app_type": "powerdns"
},
{
"metric": "rec_questions",
"value": 0,
"value_prev": null,
"app_type": "powerdns"
},
{
"metric": "servfailPackets",
"value": 263453,
"value_prev": null,
"app_type": "powerdns"
}
]
}
},
"os": {
"discovery": {
"devices": [
{
"sysName": "<private>",
"sysObjectID": ".1.3.6.1.4.1.8072.3.2.10",
"sysDescr": "Linux server 3.10.0-693.5.2.el7.x86_64 #1 SMP Fri Oct 20 20:32:50 UTC 2017 x86_64",
"sysContact": "<private>",
"version": "3.10.0-693.5.2.el7.x86_64",
"hardware": "Generic x86 64-bit",
"features": null,
"location": "<private>",
"os": "linux",
"type": "server",
"serial": null,
"icon": "linux.svg"
}
]
},
"poller": "matches discovery"
}
}