1 <?php
defined('SYSPATH') OR die('No direct access allowed.');
4 * Report options for histogram reports
6 class Histogram_options_Core
extends Report_options
8 public function __construct($options=false)
10 $this->properties
['breakdown'] = array('type' => 'enum', 'default' => 'hourly', 'options' => array(
11 "monthly" => _('Monthly'),
12 "dayofmonth" => _('Day of month'),
13 "dayofweek" => _('Day of week'),
14 "hourly" => _('Hourly')));
15 $this->properties
['newstatesonly'] = array('type' => 'bool', 'default' => false);
16 parent
::__construct($options);
18 protected function update_value($name, $value)
20 parent
::update_value($name, $value);
23 $this['alert_types'] = 1 +
($value == 'services' ||
$value == 'servicegroups');