Skip to content

Commit

Permalink
RedundancyGroupState: Add method getStateText()
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 authored and raviks789 committed Oct 1, 2024
1 parent e54d136 commit 3b57673
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions library/Icingadb/Model/RedundancyGroupState.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,9 @@ public function createRelations(Relations $relations): void
{
$relations->belongsTo('redundancy_group', RedundancyGroup::class);
}

public function getStateText(): string
{
return $this->failed ? 'problem' : 'ok';
}
}

0 comments on commit 3b57673

Please sign in to comment.