mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-25 00:59:34 -05:00
21 lines
427 B
PHP
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;
|
|
}
|
|
}
|