Include device_graphs in saved os module test data

This commit is contained in:
Kevin Wallace 2022-05-29 18:48:17 -07:00
parent 8b773457fa
commit a85c902fe9
2 changed files with 53 additions and 1 deletions

View File

@ -18,6 +18,55 @@
}
]
},
"poller": "matches discovery"
"poller": {
"devices": [
{
"sysName": "<private>",
"sysObjectID": ".1.3.6.1.4.1.30155.23.1",
"sysDescr": "OpenBSD hostname.example.com 7.1 GENERIC.MP#465 amd64",
"sysContact": "<private>",
"version": "7.1",
"hardware": null,
"features": null,
"os": "openbsd",
"type": "server",
"serial": null,
"icon": "openbsd.svg",
"location": "<private>"
}
],
"device_graphs": [
{
"graph": "availability"
},
{
"graph": "pf_drops"
},
{
"graph": "pf_inserts"
},
{
"graph": "pf_matches"
},
{
"graph": "pf_removals"
},
{
"graph": "pf_searches"
},
{
"graph": "pf_states"
},
{
"graph": "ping_perf"
},
{
"graph": "poller_modules_perf"
},
{
"graph": "poller_perf"
}
]
}
}
}

View File

@ -103,6 +103,9 @@ os:
included_fields: [sysName, sysObjectID, sysDescr, sysContact, version, hardware, features, location, os, type, serial, icon]
joins:
- { left: devices.location_id, right: locations.id, select: [location] }
device_graphs:
included_fields: [graph]
order_by: graph
processors:
processors:
excluded_fields: [device_id, processor_id]