diff --git a/EcAlerter.h b/EcAlerter.h index c2fd4c4..1960948 100644 --- a/EcAlerter.h +++ b/EcAlerter.h @@ -271,6 +271,12 @@ * The proposed repair action if the alert is an alarm * AlarmAdditionalText * The additional text if the alert is an alarm + * AlarmEventType + * The general categorisation of alarm if the alert is an alarm + * AlarmPerceivedSeverity + * The severity of alarm if the alert is an alarm + * AlarmTrendIndicator + * The severity trend of alarm if the alert is an alarm * Duration * The duration (minutes) if the event is an alarm. * Hours diff --git a/EcAlerter.m b/EcAlerter.m index 7266dce..665a8a4 100644 --- a/EcAlerter.m +++ b/EcAlerter.m @@ -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]