blob: ce9fabfe532ca95788861558dde5a7905ebac653 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<?php
namespace Icinga\Module\Businessprocess\ProvidedHook\Monitoring;
use Exception;
use Icinga\Application\Config;
use Icinga\Module\Businessprocess\BpConfig;
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',
rawurlencode(BpConfig::joinNodeName($service->getHost()->getName(), $service->getName()))
)
);
}
}
|