2017-01-10 10:49:53 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Icinga\Module\Businessprocess\ProvidedHook\Monitoring;
|
|
|
|
|
|
|
|
|
|
use Exception;
|
|
|
|
|
use Icinga\Application\Config;
|
2023-08-03 08:40:46 -04:00
|
|
|
use Icinga\Module\Businessprocess\BpConfig;
|
2017-01-10 10:49:53 -05:00
|
|
|
use Icinga\Module\Monitoring\Hook\ServiceActionsHook;
|
|
|
|
|
use Icinga\Module\Monitoring\Object\Service;
|
|
|
|
|
use Icinga\Web\Url;
|
|
|
|
|
|
|
|
|
|
class ServiceActions extends ServiceActionsHook
|
|
|
|
|
{
|
|
|
|
|
public function getActionsForService(Service $service)
|
|
|
|
|
{
|
|
|
|
|
$label = mt('businessprocess', 'Business Impact');
|
|
|
|
|
return array(
|
|
|
|
|
$label => sprintf(
|
|
|
|
|
'businessprocess/node/impact?name=%s',
|
2023-08-03 08:40:46 -04:00
|
|
|
rawurlencode(BpConfig::joinNodeName($service->getHost()->getName(), $service->getName()))
|
2017-01-10 10:49:53 -05:00
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|