Skip to content

Commit

Permalink
Links: Add RedundancyGroup link
Browse files Browse the repository at this point in the history
- Remove unused namespace
  • Loading branch information
sukhwinder33445 committed Oct 28, 2024
1 parent 98fc692 commit 325266c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion library/Icingadb/Common/Links.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Icinga\Module\Icingadb\Model\Downtime;
use Icinga\Module\Icingadb\Model\History;
use Icinga\Module\Icingadb\Model\Host;
use Icinga\Module\Icingadb\Model\NotificationHistory;
use Icinga\Module\Icingadb\Model\RedundancyGroup;
use Icinga\Module\Icingadb\Model\Service;
use Icinga\Module\Icingadb\Model\User;
use Icinga\Module\Icingadb\Model\Usergroup;
Expand Down Expand Up @@ -106,6 +106,11 @@ public static function services(): Url
return Url::fromPath('icingadb/services');
}

public static function redundancyGroup(RedundancyGroup $group): Url
{
return Url::fromPath('icingadb/redundancygroup', ['id' => bin2hex($group->id)]);
}

public static function toggleHostsFeatures(): Url
{
return Url::fromPath('icingadb/hosts/toggle-features');
Expand Down

0 comments on commit 325266c

Please sign in to comment.