public interface AlarmRepository
| Modifier and Type | Method and Description |
|---|---|
void |
acknowledgeAlarms(int[] alarmIds,
String user,
Date timestamp)
Acknowledge Alarms.
|
void |
acknowledgeAll(String user,
Date timestamp)
Acknowledge all the alarms.
|
void |
acknowledgeMatchingAlarms(String user,
Date timestamp,
OnmsCriteria criteria)
Acknowledge alarms matching a specific criteria.
|
void |
clearAlarms(int[] alarmIds,
String user,
Date timestamp)
Clear Alarms
|
int |
countMatchingAlarms(OnmsCriteria criteria)
Count alarms matching a criteria.
|
int[] |
countMatchingAlarmsBySeverity(OnmsCriteria criteria)
Count alarms by severity matching a specific criteria.
|
void |
escalateAlarms(int[] alarmIds,
String user,
Date timestamp)
Escalate Alarms.
|
List<OnmsAcknowledgment> |
getAcknowledgments(int alarmId)
Gets the acknowledgments.
|
OnmsAlarm |
getAlarm(int alarmId)
Gets and alarm.
|
List<AlarmSummary> |
getCurrentNodeAlarmSummaries()
Gets the current node alarm summaries.
|
List<SituationSummary> |
getCurrentSituationSummaries()
Gets the current node alarm summaries.
|
OnmsAlarm[] |
getMatchingAlarms(OnmsCriteria criteria)
Gets alarms matching a specific criteria.
|
void |
removeReductionKeyMemo(int alarmId)
Removes the reduction key memo.
|
void |
removeStickyMemo(Integer alarmId)
Removes the sticky memo.
|
void |
unacknowledgeAlarms(int[] alarmIds,
String user)
Unacknowledge Alarms
|
void |
unacknowledgeAll(String user)
Unacknowledge all the alarms.
|
void |
unacknowledgeMatchingAlarms(OnmsCriteria criteria,
String user)
Unacknowledge Matching Alarms
|
void |
updateReductionKeyMemo(Integer alarmId,
String body,
String user)
Updates the ReductionKeyMemo of the alarm to persistence.
|
void |
updateStickyMemo(Integer alarmId,
String body,
String user)
Updates the StickyMemo of the alarm to persistence.
|
int countMatchingAlarms(OnmsCriteria criteria)
criteria - the criteriaint[] countMatchingAlarmsBySeverity(OnmsCriteria criteria)
criteria - the criteriaOnmsAlarm getAlarm(int alarmId)
alarmId - the alarm idOnmsAlarm[] getMatchingAlarms(OnmsCriteria criteria)
criteria - the criteriavoid acknowledgeMatchingAlarms(String user, Date timestamp, OnmsCriteria criteria)
user - the usertimestamp - the timestampcriteria - the criteriavoid acknowledgeAlarms(int[] alarmIds,
String user,
Date timestamp)
alarmIds - an array of alarms IDuser - the usertimestamp - the timestampvoid acknowledgeAll(String user, Date timestamp)
user - the usertimestamp - the timestampvoid unacknowledgeMatchingAlarms(OnmsCriteria criteria, String user)
criteria - the criteriauser - the uservoid unacknowledgeAlarms(int[] alarmIds,
String user)
alarmIds - an array of alarms IDuser - the uservoid unacknowledgeAll(String user)
user - the uservoid escalateAlarms(int[] alarmIds,
String user,
Date timestamp)
alarmIds - an array of alarms IDuser - the usertimestamp - the timestampvoid clearAlarms(int[] alarmIds,
String user,
Date timestamp)
alarmIds - an array of alarms IDuser - the usertimestamp - the timestampvoid updateStickyMemo(Integer alarmId, String body, String user)
alarmId - the alarmId of the alarm where the StickyMemo has to be persisted.void updateReductionKeyMemo(Integer alarmId, String body, String user)
alarmId - the alarm idbody - the bodyuser - the uservoid removeStickyMemo(Integer alarmId)
alarmId - the alarm idvoid removeReductionKeyMemo(int alarmId)
alarmId - the alarm idList<OnmsAcknowledgment> getAcknowledgments(int alarmId)
alarmId - the alarm idList<AlarmSummary> getCurrentNodeAlarmSummaries()
List<SituationSummary> getCurrentSituationSummaries()
Copyright © 2022. All rights reserved.