示例#1
0
 /**
  * Fetch stats
  *
  * @return $this
  */
 public function fetchStats()
 {
     $this->stats = $this->backend->select()->from('servicestatussummary', array('services_total', 'services_ok', 'services_critical', 'services_critical_unhandled', 'services_critical_handled', 'services_warning', 'services_warning_unhandled', 'services_warning_handled', 'services_unknown', 'services_unknown_unhandled', 'services_unknown_handled', 'services_pending'))->where('service_host_name', $this->host_name)->applyFilter($this->getFilter())->fetchRow();
     return $this;
 }
示例#2
0
 /**
  * Get the scheduled downtimes
  *
  * @return type
  */
 public function getScheduledDowntimes()
 {
     return $this->backend->select()->from('downtime')->applyFilter($this->filter);
 }