mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
parent
833e177666
commit
92cece92ab
@ -3,8 +3,6 @@
|
|||||||
|
|
||||||
namespace Icinga\Module\Monitoring\DataView;
|
namespace Icinga\Module\Monitoring\DataView;
|
||||||
|
|
||||||
/**
|
|
||||||
* Service group view */
|
|
||||||
class Servicegroup extends DataView
|
class Servicegroup extends DataView
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@ -21,7 +19,7 @@ class Servicegroup extends DataView
|
|||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function getFilterColumns()
|
public function getStaticFilterColumns()
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
'host', 'host_alias', 'host_display_name', 'host_name',
|
'host', 'host_alias', 'host_display_name', 'host_name',
|
||||||
@ -30,18 +28,4 @@ class Servicegroup extends DataView
|
|||||||
'servicegroup'
|
'servicegroup'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function isValidFilterTarget($column)
|
|
||||||
{
|
|
||||||
if ($column[0] === '_'
|
|
||||||
&& preg_match('/^_(?:host|service)_/', $column)
|
|
||||||
) {
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return parent::isValidFilterTarget($column);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user