mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-30 02:19:34 -05:00
22 lines
566 B
PHP
22 lines
566 B
PHP
<?php
|
|
|
|
namespace Icinga\Module\Businessprocess\ProvidedHook\Icingadb;
|
|
|
|
use Icinga\Module\Icingadb\Hook\HostActionsHook;
|
|
use Icinga\Module\Icingadb\Model\Host;
|
|
use ipl\Web\Widget\Link;
|
|
|
|
class HostActions extends HostActionsHook
|
|
{
|
|
public function getActionsForObject(Host $host): array
|
|
{
|
|
$label = mt('businessprocess', 'Business Impact');
|
|
return array(
|
|
new Link(
|
|
$label,
|
|
'businessprocess/node/impact?name='
|
|
. rawurlencode($host->name . ';Hoststatus')
|
|
)
|
|
);
|
|
}
|
|
}
|