From 6ac8cb1f59cccd709f3edbe782f6a599e135280e Mon Sep 17 00:00:00 2001 From: rfm Date: Mon, 4 Mar 2024 17:16:37 +0000 Subject: [PATCH] a little more alarm info --- EcAlerter.h | 6 ++++++ EcAlerter.m | 6 ++++++ 2 files changed, 12 insertions(+) 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]