#8642 Added heatmap widget

This commit is contained in:
Daniel Maya 2023-02-21 15:06:15 +01:00
parent 776f0a69f5
commit 6efaa2bbc6
3 changed files with 8 additions and 1 deletions

View File

@ -25,6 +25,8 @@
* GNU General Public License for more details.
* ============================================================================
*/
namespace PandoraFMS;
class Heatmap
{
@ -159,7 +161,7 @@ class Heatmap
],
];
echo '<div id="div_'.$this->randomId.'" class="mainDiv">';
echo '<div id="div_'.$this->randomId.'" class="mainDiv" style="width: 100%;height: 100%">';
?>
<script type="text/javascript">
$(document).ready(function() {

View File

@ -423,6 +423,10 @@ class Widget
$className .= '\\'.$name;
break;
case 'heatmap':
$className .= '\HeatmapWidget';
break;
default:
$className = false;
break;

View File

@ -41,6 +41,7 @@ if ($agent_a === false && $agent_w === false) {
}
require_once $config['homedir'].'/include/class/Heatmap.class.php';
use PandoraFMS\Heatmap;
$pure = (bool) get_parameter('pure', false);
$type = get_parameter('type', 0);