Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
828 B
PHP
Raw Permalink Normal View History

2023-01-24 11:20:18 -06:00
<?php
$name = 'cape';
$app_id = $app['app_id'];
$unit_text = 'Anti Issues Per Run';
$colours = 'psychedelic';
$dostack = 0;
$printtotal = 1;
$addarea = 0;
$transparency = 15;
$float_precision = 3;
$packages = Rrd::getRrdApplicationArrays($device, $app['app_id'], 'cape', 'pkg-api_calls___-___');
$rrd_list = [];
$packages_int = 0;
foreach ($packages as $index => $package) {
$label = preg_filter('/^pkg\-api\_calls\_\_\_\-\_\_\_\-/', '', $package);
$rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app['app_id'], $package]);
$rrd_list[] = [
'filename' => $rrd_filename,
2024-01-05 05:39:12 +01:00
'descr' => $label,
'ds' => 'api_calls',
2023-01-24 11:20:18 -06:00
];
$packages_int++;
}
if (sizeof($rrd_list)) {
d_echo('No relevant package RRDs found');
}
require 'includes/html/graphs/generic_multi_line.inc.php';