
public final class RaisedAlertHistory extends Object implements Serializable
RaisedAlertInstance
objects created by calls to addAlertInstance(...) method.
This class is meant to be sent over the buses as part of a RaisedAlertSummary object.| Constructor and Description |
|---|
RaisedAlertHistory()
The main constructor of the RaisedAlert.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAlertInstance(AlertState severity,
Alert alert,
org.lsst.ccs.utilities.taitime.CCSTimeStamp ccsTimeStamp,
String cause,
int count)
Add a new instance of this Alert.
|
int |
getAccumulatedNumberOfInstances()
Get the accumulated number of times this alert was raised.
|
AlertState |
getHighestAlertState()
Get the highest AlertState raised for this Alert.
|
Alert |
getLatestAlert()
Get the original Alert that was raised.
|
String |
getLatestAlertCause()
Gets the latest cause of this Alert.
|
org.lsst.ccs.utilities.taitime.CCSTimeStamp |
getLatestAlertCCSTimeStamp()
Get the latest CCS timestamp of this Alert.
|
RaisedAlertInstance |
getLatestAlertInstance()
Gets the latest raised instance of this alert.
|
AlertState |
getLatestAlertState()
Get the latest AlertState of this Alert.
|
int |
getNumberOfInstances()
Get the number of times this Alert was raised.
|
ArrayList<RaisedAlertInstance> |
getRaisedAlertInstancesList()
Get the full history of RaisedAlertInstances for this Alert.
|
String |
toString() |
public RaisedAlertHistory()
public Alert getLatestAlert()
public void addAlertInstance(AlertState severity, Alert alert, org.lsst.ccs.utilities.taitime.CCSTimeStamp ccsTimeStamp, String cause, int count)
severity - The AlertState of the Alert.alert - The Alert that was raised.ccsTimeStamp - The CCS timestamp of when the Alert was raised.cause - The cause of the Alert.count - the number of alerts this instance stands for.public int getNumberOfInstances()
public int getAccumulatedNumberOfInstances()
public AlertState getLatestAlertState()
public org.lsst.ccs.utilities.taitime.CCSTimeStamp getLatestAlertCCSTimeStamp()
public String getLatestAlertCause()
public RaisedAlertInstance getLatestAlertInstance()
RaisedAlertInstance depicting the last time this alert
was raised.public AlertState getHighestAlertState()
public ArrayList<RaisedAlertInstance> getRaisedAlertInstancesList()
RaisedAlertInstances for this history, in increasing time order.Copyright © 2019 LSST. All rights reserved.