monitoring: Add restrictable filter columns to the downtime data view

refs #9009
This commit is contained in:
Eric Lippmann 2015-05-29 11:44:34 +02:00
parent b1446fcb23
commit 3a69e8185f
1 changed files with 15 additions and 14 deletions

View File

@ -24,27 +24,25 @@ class Downtime extends DataView
public function getColumns()
{
return array(
'downtime_objecttype',
'downtime_author',
'downtime_author_name',
'downtime_comment',
'downtime_duration',
'downtime_end',
'downtime_entry_time',
'downtime_internal_id',
'downtime_is_fixed',
'downtime_is_flexible',
'downtime_start',
'downtime_scheduled_start',
'downtime_scheduled_end',
'downtime_end',
'downtime_duration',
'downtime_is_in_effect',
'downtime_triggered_by_id',
'downtime_internal_id',
'downtime_host_state',
'downtime_service_state',
'downtime_scheduled_end',
'downtime_scheduled_start',
'downtime_start',
'host_display_name',
'service_display_name',
'host_name',
'service_host_name',
'service_description'
'object_type',
'service_description',
'service_display_name',
'service_host_name'
);
}
@ -53,7 +51,10 @@ class Downtime extends DataView
*/
public function getFilterColumns()
{
return array('hostgroup', 'hostgroup_alias', 'hostgroup_name', 'servicegroup', 'servicegroup_alias', 'servicegroup_name');
return array(
'host', 'hostgroup', 'hostgroup_alias', 'hostgroup_name',
'service', 'servicegroup', 'servicegroup_alias', 'servicegroup_name'
);
}
/**