icingaweb2-module-businessp.../library/Bpapp/HostNode.php
2014-10-20 16:26:06 +02:00

21 lines
427 B
PHP

<?php
namespace Icinga\Module\Bpapp;
class HostNode extends Node
{
protected $hostname;
public function __construct(BusinessProcess $bp, $object)
{
$this->name = $object->hostname . ';Hoststate';
$this->hostname = $object->hostname;
$this->bp = $bp;
$this->setState($object->state);
}
public function getHostname()
{
return $this->hostname;
}
}