42 |
|
* |
43 |
|
* @param level the level of the alert |
44 |
|
*/ |
45 |
< |
public Alert(int alertLevel, int thresholdLevel, String source, String thresholdValue, String value, String attributeName, String timeTillNextAlert) { |
45 |
> |
public Alert(int alertLevel, int lastAlert, int thresholdLevel, String source, String thresholdValue, String value, String attributeName, String timeTillNextAlert) { |
46 |
|
_alertLevel = alertLevel; |
47 |
+ |
_lastAlert = lastAlert; |
48 |
|
_thresholdLevel = thresholdLevel; |
49 |
|
_source = source; |
50 |
|
_thresholdValue = thresholdValue; |
82 |
|
return _alertLevel; |
83 |
|
} |
84 |
|
|
85 |
+ |
public int getLastLevel() { |
86 |
+ |
return _lastAlert; |
87 |
+ |
} |
88 |
+ |
|
89 |
|
public int getThreshold() { |
90 |
|
return _thresholdLevel; |
91 |
|
} |
127 |
|
* The alert level of this packet |
128 |
|
*/ |
129 |
|
private int _alertLevel; |
130 |
+ |
|
131 |
+ |
private int _lastAlert; |
132 |
|
|
133 |
|
private int _thresholdLevel; |
134 |
|
|