<?php
//accept the table name for service monitoring to calculate
//should be created using HolderFactory
Final Class ServiceHolder extends Holder {
private $servmondef;
public function __construct($tableservice){
parent::__construct($tableservice);
$this->servmondef = new ServiceMon();
$this->servmondef->selectByID($this->tablename);
}
public function getWarningThreshold(){
return $this->servmondef->getGreenLine();
}
public function getCriticalThreshold(){
return $this->servmondef->getRedLine();
}
}
?>