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