/** * Create a new host * * @param MonitoringBackend $backend Backend to fetch host information from * @param string $host Hostname */ public function __construct(MonitoringBackend $backend, $host) { parent::__construct($backend); $this->host = $host; }
/** * Create a new service * * @param MonitoringBackend $backend Backend to fetch service information from * @param string $host Hostname the service is running on * @param string $service Service name */ public function __construct(MonitoringBackend $backend, $host, $service) { parent::__construct($backend); $this->host = new Host($backend, $host); $this->service = $service; }