mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-20 14:50:11 -05:00
Node: use available icinga state constants
This commit is contained in:
parent
8de13f06b2
commit
93cede7a32
1 changed files with 10 additions and 10 deletions
|
|
@ -24,19 +24,19 @@ abstract class Node
|
|||
const ICINGA_PENDING = 99;
|
||||
|
||||
protected static $sortStateToStateMap = array(
|
||||
4 => 2,
|
||||
3 => 3,
|
||||
2 => 1,
|
||||
1 => 99,
|
||||
0 => 0
|
||||
4 => self::ICINGA_CRITICAL,
|
||||
3 => self::ICINGA_UNKNOWN,
|
||||
2 => self::ICINGA_WARNING,
|
||||
1 => self::ICINGA_PENDING,
|
||||
0 => self::ICINGA_OK
|
||||
);
|
||||
|
||||
protected static $stateToSortStateMap = array(
|
||||
99 => 1,
|
||||
3 => 3,
|
||||
2 => 4,
|
||||
1 => 2,
|
||||
0 => 0,
|
||||
self::ICINGA_PENDING => 1,
|
||||
self::ICINGA_UNKNOWN => 3,
|
||||
self::ICINGA_CRITICAL => 4,
|
||||
self::ICINGA_WARNING => 2,
|
||||
self::ICINGA_OK => 0,
|
||||
);
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue