#8642 Added heatmap widget
This commit is contained in:
parent
776f0a69f5
commit
6efaa2bbc6
|
@ -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() {
|
||||
|
|
|
@ -423,6 +423,10 @@ class Widget
|
|||
$className .= '\\'.$name;
|
||||
break;
|
||||
|
||||
case 'heatmap':
|
||||
$className .= '\HeatmapWidget';
|
||||
break;
|
||||
|
||||
default:
|
||||
$className = false;
|
||||
break;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue