DataView\Eventgrid: Allow to filter for custom variables

refs #9009
This commit is contained in:
Johannes Meyer 2015-06-15 16:53:13 +02:00
parent 4db9629268
commit 9876a53f8e
1 changed files with 12 additions and 0 deletions

View File

@ -5,6 +5,18 @@ namespace Icinga\Module\Monitoring\DataView;
class Eventgrid extends DataView
{
/**
* {@inheritdoc}
*/
public function isValidFilterTarget($column)
{
if ($column[0] === '_' && preg_match('/^_(?:host|service)_/', $column)) {
return true;
}
return parent::isValidFilterTarget($column);
}
/**
* Retrieve columns provided by this view
*