public class RaisedAlertBookkeeper extends RaisedAlertSummary
RaisedAlertSummary.raisedAlerts| Constructor and Description |
|---|
RaisedAlertBookkeeper() |
RaisedAlertBookkeeper(RaisedAlertSummary summary) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearAlert(String alertId)
Clear an Alert for the provided alert id.
|
RaisedAlertHistory |
raiseAlert(Alert alert,
AlertState severity,
org.lsst.ccs.utilities.taitime.CCSTimeStamp ccsTimeStamp,
String cause)
Raise an Alert with a given severity at a given CCS timestamp.
|
RaisedAlertHistory |
raiseAlert(Alert alert,
AlertState severity,
org.lsst.ccs.utilities.taitime.CCSTimeStamp ccsTimeStamp,
String cause,
int count)
Raise an Alert with a given severity at a given CCS timestamp.
|
void |
setHighestSeverity(String alertId,
AlertState highestSeverity)
Change the highest severity for a RaisedAlertHistory.
|
getAlertState, getAllRaisedAlertHistories, getRaisedAlert, toStringpublic RaisedAlertBookkeeper()
public RaisedAlertBookkeeper(RaisedAlertSummary summary)
public RaisedAlertHistory raiseAlert(Alert alert, AlertState severity, org.lsst.ccs.utilities.taitime.CCSTimeStamp ccsTimeStamp, String cause)
alert - The Alert that was raised.severity - The AlertState of the Alert.ccsTimeStamp - The CCS timestamp at which the Alert was raised.cause - What caused the Alert to be raised.public RaisedAlertHistory raiseAlert(Alert alert, AlertState severity, org.lsst.ccs.utilities.taitime.CCSTimeStamp ccsTimeStamp, String cause, int count)
alert - The Alert that was raised.severity - The AlertState of the Alert.ccsTimeStamp - The timestamp at which the Alert was raised.cause - What caused the Alert to be raised.count - the number of actual raised alerts.public void clearAlert(String alertId)
alertId - The id of the Alert to clear.public void setHighestSeverity(String alertId, AlertState highestSeverity)
alertId - The id of the Alert to clear.highestSeverity - the AlertState the RaisedAlertHistory should be changed to.Copyright © 2024 LSST. All rights reserved.