Files

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

36 lines
856 B
PHP
Raw Permalink Normal View History

2016-08-26 12:08:48 +01:00
<?php
2019-04-11 23:26:42 -05:00
require 'includes/html/graphs/common.inc.php';
2016-08-26 12:08:48 +01:00
$scale_min = 0;
$colours = 'blue';
$nototal = (($width < 224) ? 1 : 0);
$unit_text = 'Inbound Calls/sec';
$rrd_filename = Rrd::name($device['hostname'], ['app', 'freeswitch', 'stats', $app->app_id]);
2016-08-26 12:08:48 +01:00
$array = [
'in_okay' => [
'descr' => 'Okay',
'colour' => '008800FF',
],
'in_failed' => [
'descr' => 'Failed',
'colour' => '880000FF',
],
2020-11-22 05:52:58 +01:00
];
2016-08-26 12:08:48 +01:00
$i = 0;
2021-03-28 17:25:30 -05:00
if (Rrd::checkRrdExists($rrd_filename)) {
2017-02-24 15:22:15 +00:00
foreach ($array as $ds => $var) {
2016-08-26 12:08:48 +01:00
$rrd_list[$i]['filename'] = $rrd_filename;
2017-02-24 15:22:15 +00:00
$rrd_list[$i]['descr'] = $var['descr'];
2016-08-26 12:08:48 +01:00
$rrd_list[$i]['ds'] = $ds;
2017-02-24 15:22:15 +00:00
$rrd_list[$i]['colour'] = $var['colour'];
2016-08-26 12:08:48 +01:00
$i++;
}
} else {
echo "file missing: $file";
}
2019-04-11 23:26:42 -05:00
require 'includes/html/graphs/generic_multi_simplex_seperated.inc.php';