a little more alarm info

This commit is contained in:
rfm 2024-03-04 17:16:37 +00:00
parent 38a6c2f489
commit 6ac8cb1f59
2 changed files with 12 additions and 0 deletions

View file

@ -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>

View file

@ -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]