mirror of
https://github.com/gnustep/libs-ec.git
synced 2025-02-15 16:11:01 +00:00
a little more alarm info
This commit is contained in:
parent
38a6c2f489
commit
6ac8cb1f59
2 changed files with 12 additions and 0 deletions
|
@ -271,6 +271,12 @@
|
|||
* <desc>The proposed repair action if the alert is an alarm</desc>
|
||||
* <term>AlarmAdditionalText</term>
|
||||
* <desc>The additional text if the alert is an alarm</desc>
|
||||
* <term>AlarmEventType</term>
|
||||
* <desc>The general categorisation of alarm if the alert is an alarm</desc>
|
||||
* <term>AlarmPerceivedSeverity</term>
|
||||
* <desc>The severity of alarm if the alert is an alarm</desc>
|
||||
* <term>AlarmTrendIndicator</term>
|
||||
* <desc>The severity trend of alarm if the alert is an alarm</desc>
|
||||
* <term>Duration</term>
|
||||
* <desc>The duration (minutes) if the event is an alarm.</desc>
|
||||
* <term>Hours</term>
|
||||
|
|
|
@ -1677,8 +1677,14 @@ replaceFields(NSDictionary *fields, NSString *template)
|
|||
{
|
||||
[m setObject: [alarm moComponent]
|
||||
forKey: @"AlarmComponent"];
|
||||
[m setObject: [EcAlarm stringFromEventType: [alarm eventType]]
|
||||
forKey: @"AlarmEventType"];
|
||||
[m setObject: [EcAlarm stringFromProbableCause: [alarm probableCause]]
|
||||
forKey: @"AlarmProbableCause"];
|
||||
[m setObject: [EcAlarm stringFromSeverity: [alarm perceivedSeverity]]
|
||||
forKey: @"AlarmPerceivedSeverity"];
|
||||
[m setObject: [EcAlarm stringFromTrend: [alarm trendIndicator]]
|
||||
forKey: @"AlarmTrendIndicator"];
|
||||
[m setObject: [alarm specificProblem]
|
||||
forKey: @"AlarmSpecificProblem"];
|
||||
[m setObject: [alarm proposedRepairAction]
|
||||
|
|
Loading…
Reference in a new issue