public final class TrendableRecord extends Object
KeyValueDataList.| Modifier and Type | Field and Description |
|---|---|
static String |
LIMIT_VIOLATION_KEY
The trending key to use for the flag that tells whether some channel
in the record is outside the valid range.
|
static String |
MALFUNCTION_KEY
The trending key to use for the flag that tells whether the instrument
reported a malfunction for this record.
|
| Constructor and Description |
|---|
TrendableRecord(String masterKey,
Instant masterTimestamp,
Map<String,Serializable> items)
Construct an instance.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Serializable> |
getItems()
Gets the map of trending keys to serializable values.
|
String |
getMasterKey()
Gets the master key given to the constructor.
|
Instant |
getMasterTimestamp()
Gets the master timestamp given to the constructor.
|
boolean |
hasLimitViolation()
Gets the value of the limit violation flag for this record.
|
boolean |
hasMalfunction()
Gets the value of the instrument malfunction flag for this record.
|
void |
post(org.lsst.ccs.Subsystem subsys)
Post this data to the local CCS trending database.
|
String |
toString()
Create a printable representation of this object.
|
public static String LIMIT_VIOLATION_KEY
public static String MALFUNCTION_KEY
public TrendableRecord(String masterKey, Instant masterTimestamp, Map<String,Serializable> items)
masterKey - Will become the master key.masterTimestamp - Will the common timestamp.items - A Map from value key to serializable value.public String getMasterKey()
public Instant getMasterTimestamp()
public boolean hasLimitViolation()
Error - if the flag isn't present of isn't a Double value.public boolean hasMalfunction()
Error - if the flag isn't present of isn't a Double value.public Map<String,Serializable> getItems()
public void post(org.lsst.ccs.Subsystem subsys)
KeyValueDataList to which is added
one item for each data channel.Copyright © 2016 LSST. All rights reserved.