7#include <PeripheralDeviceSlot.idl>
8#include <UserEvent.idl>
150 in
int recid, in
int count);
174 in
int recid, in
int count);
189 in
int recid, in
int count);
209 in
int recid, in
int count);
224 in
int recid, in
int count);
int getTimeStamps(out vector< time > timestamps, in int recid, in int count)
Retrieve a set of log record timestamps.
constant int STATE_FAIL
Fail.
constant int STATE_I1_OPEN_FAULT
Inlet 1 switch open fault.
int getLogRow(out LogRow row, in int recid)
Get one full log row.
constant int STATE_I1_SHORT_FAULT
Inlet 1 switch short fault.
constant int STATE_STANDBY
Standby operation.
boolean isSensorEnabled(in sensors::Sensor sensor)
Check if logging is enabled for a given sensor.
constant int STATE_IN_SYNC
Phases are in sync.
time getSensorSetTimestamp()
Get the time of the last sensor set modification.
constant int STATE_ABOVE_UPPER_WARNING
Numeric sensor above upper warning threshold.
constant int STATE_BYPASS_SELECTED_BUT_INACTIVE
Bypass selected but inactive.
int getPeripheralDeviceRecords(out vector< Record > recs, in peripheral::DeviceSlot slot, in int recid, in int count)
Retrieve log records for an peripheral device slot.
constant int STATE_ALARMED
Alarmed.
void disableAllSensors()
Disable logging for all PDU sensors.
constant int STATE_I2_OPEN_FAULT
Inlet 2 switch open fault.
int enableSensors(in SensorSet sensors)
Enable logging for one or more sensors or peripheral device slots.
int getPeripheralDeviceTimedRecords(out vector< TimedRecord > recs, in peripheral::DeviceSlot slot, in int recid, in int count)
Retrieve log records with timestamps for an peripheral device slot.
constant int STATE_UNAVAILABLE
Sensor state in log record.
void enableAllSensors()
Enable logging for all PDU sensors.
constant int STATE_CLOSE
Circuit breaker closed.
int setSettings(in Settings settings)
Change the sensor logger settings.
constant int STATE_TWO
Second source active.
constant int STATE_CRITICAL
Critical.
constant int STATE_OFF
Power state off.
Settings getSettings()
Retrieve the sensor logger settings.
int setLoggedSensors(in SensorSet sensors)
Change the set of logged sensors.
constant int STATE_ONE
First source active.
constant int STATE_I2_ACTIVE
Inlet 2 active.
int disableSensors(in SensorSet sensors)
Disable logging for one or more sensors or peripheral device slots.
constant int STATE_I1_ACTIVE
Inlet 1 active.
constant int STATE_ON
Power state on.
int getSensorRecords(out vector< Record > recs, in sensors::Sensor sensor, in int recid, in int count)
Retrieve log records for a given sensor.
constant int STATE_INACTIVE
Bypass inactive.
constant int STATE_I2_SHORT_FAULT
Inlet 2 switch short fault.
constant int STATE_YES
Yes.
constant int STATE_BELOW_LOWER_WARNING
Numeric sensor below lower warning threshold.
boolean isSlotEnabled(in peripheral::DeviceSlot slot)
Check if logging is enabled for a given peripheral device slot.
int getSensorTimedRecords(out vector< TimedRecord > recs, in sensors::Sensor sensor, in int recid, in int count)
Retrieve log records with timestamps for a given sensor.
Info getInfo()
Retrieve the sensor logger info.
constant int STATE_NON_REDUNDANT
Non-redundant operation.
constant int STATE_BELOW_LOWER_CRITICAL
Numeric sensor below lower critical threshold.
constant int STATE_WARNING
Warning.
SensorSet getLoggedSensors()
Retrieve the set of logged sensors.
constant int STATE_ABOVE_UPPER_CRITICAL
Numeric sensor above upper critical threshold.
constant int STATE_OUT_OF_SYNC
Phases are out of sync.
constant int STATE_BYPASS_ACTIVE
Operational state: bypass active.
constant int STATE_SELF_TEST
Sensor is currently testing itself.
constant int STATE_OPEN
Circuit breaker open.
constant int STATE_FAULT
Fault.
constant int STATE_MARGINAL
Marginal.
constant int STATE_NORMAL
Numeric sensor in normal range; normal operation.
Common base for all events.
Event: Sensor logger info has changed.
Info oldInfo
Info before change.
Info newInfo
Info after change.
int samplePeriod
Sample interval in milliseconds.
int newestRecId
ID of newest record in buffer (0 if empty)
int oldestRecId
ID of oldest record in buffer (0 if empty)
int maxTotalRecords
Maximum supported number of log records (number of logged sensors multiplied by log capacity)
int effectiveCapacity
Effective log capacity; may be lower than the setting to meet the maxTotalRecords limit.
time timestamp
Log row time stamp (UNIX timestamp, UTC)
vector< Record > peripheralDeviceRecords
Peripheral device records; same order as in SensorSet::slots.
time sensorSetTimestamp
Time of last sensor set modification (UNIX timestamp, UTC)
vector< Record > sensorRecords
Sensor records; same order as in SensorSet::sensors.
Event: Set of logged sensors has been changed.
SensorSet oldSensors
Sensor set before change.
SensorSet newSensors
Sensor set after change.
boolean available
Sensor was available for at least one sample.
double minValue
Minimum sensor reading.
double maxValue
Maximum sensor reading.
double avgValue
Average sensor reading.
int takenValidSamples
Number of samples with a valid reading/state.
vector< peripheral::DeviceSlot > slots
List of peripheral device slots.
Event: Sensor logger settings have been changed.
Settings newSettings
Settings after change.
Settings oldSettings
Settings before change.
int logCapacity
Maximum number of log records in buffer.
boolean backupEnabled
true if backup to external storage is enabled
int samplesPerRecord
Number of samples per log record.
boolean isEnabled
true if sensor logging is enabled
Sensor log record with timestamp.
time timestamp
UNIX timestamp (UTC)