Skip to content

Commit 134e45d

Browse files
sukhwinder33445nilmerg
authored andcommitted
RedundancyGroupState: Add method getStateText()
1 parent 56180b4 commit 134e45d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

library/Icingadb/Model/RedundancyGroupState.php

+5
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,9 @@ public function createRelations(Relations $relations): void
6262
{
6363
$relations->belongsTo('redundancy_group', RedundancyGroup::class);
6464
}
65+
66+
public function getStateText(): string
67+
{
68+
return $this->failed ? 'problem' : 'ok';
69+
}
6570
}

0 commit comments

Comments
 (0)