mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add application metrics model and relationships (#15417)
* Add application metrics model and relationships * update schema check file * Add missed index * Update testing definition * sqlite can't create the id later * update schema dumps * update testing_persistent schema * update baseline
This commit is contained in:
@@ -4,9 +4,8 @@ $app = \App\Models\Application::query()->where('device_id', $device['device_id']
|
||||
|
||||
// show only if Puppet Agent Application discovered
|
||||
if ($app) {
|
||||
$params = [];
|
||||
$sql = 'SELECT `metric`, `value` FROM `application_metrics` WHERE `app_id` =' . $app->app_id;
|
||||
$metrics = dbFetchKeyValue($sql, $params); ?><div class='row'>
|
||||
$metrics = $app->metrics->pluck('value', 'metric');
|
||||
?><div class='row'>
|
||||
<div class='col-md-12'>
|
||||
<div class='panel panel-default panel-condensed device-overview'>
|
||||
<div class='panel-heading'>
|
||||
|
Reference in New Issue
Block a user