7#include <PeripheralDeviceSlot.idl>
8#include <UserEvent.idl>
103 constant
int STATE_UNAVAILABLE = 0;
104 constant
int STATE_OPEN = 1;
105 constant
int STATE_CLOSE = 2;
106 constant
int STATE_BELOW_LOWER_CRITICAL = 3;
107 constant
int STATE_BELOW_LOWER_WARNING = 4;
108 constant
int STATE_NORMAL = 5;
109 constant
int STATE_ABOVE_UPPER_WARNING = 6;
110 constant
int STATE_ABOVE_UPPER_CRITICAL = 7;
111 constant
int STATE_ON = 8;
112 constant
int STATE_OFF = 9;
113 constant
int STATE_ALARMED = 10;
114 constant
int STATE_OK = 11;
115 constant
int STATE_MARGINAL = 12;
116 constant
int STATE_FAIL = 13;
117 constant
int STATE_YES = 14;
118 constant
int STATE_NO = 15;
119 constant
int STATE_STANDBY = 16;
120 constant
int STATE_ONE = 17;
121 constant
int STATE_TWO = 18;
122 constant
int STATE_IN_SYNC = 19;
123 constant
int STATE_OUT_OF_SYNC = 20;
124 constant
int STATE_FAULT = 21;
125 constant
int STATE_SELF_TEST = 22;
126 constant
int STATE_I1_OPEN_FAULT = 23;
127 constant
int STATE_I1_SHORT_FAULT = 24;
128 constant
int STATE_I2_OPEN_FAULT = 25;
129 constant
int STATE_I2_SHORT_FAULT = 26;
130 constant
int STATE_WARNING = 27;
131 constant
int STATE_CRITICAL = 28;
132 constant
int STATE_NON_REDUNDANT = 29;
133 constant
int STATE_INACTIVE = 30;
134 constant
int STATE_I1_SELECTED = 31;
135 constant
int STATE_I2_SELECTED = 32;
136 constant
int STATE_I1_SELECTED_AND_ACTIVE = 33;
137 constant
int STATE_I2_SELECTED_AND_ACTIVE = 34;
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.
int getLogRow(out LogRow row, in int recid)
Get one full log row.
boolean isSensorEnabled(in sensors::Sensor sensor)
Check if logging is enabled for a given sensor.
time getSensorSetTimestamp()
Get the time of the last sensor set modification.
int getPeripheralDeviceRecords(out vector< Record > recs, in peripheral::DeviceSlot slot, in int recid, in int count)
Retrieve log records for an peripheral device slot.
void disableAllSensors()
Disable logging for all PDU sensors.
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.
void enableAllSensors()
Enable logging for all PDU sensors.
int setSettings(in Settings settings)
Change the sensor logger settings.
Settings getSettings()
Retrieve the sensor logger settings.
int setLoggedSensors(in SensorSet sensors)
Change the set of logged sensors.
int disableSensors(in SensorSet sensors)
Disable logging for one or more sensors or peripheral device slots.
int getSensorRecords(out vector< Record > recs, in sensors::Sensor sensor, in int recid, in int count)
Retrieve log records for a given sensor.
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.
SensorSet getLoggedSensors()
Retrieve the set of logged sensors.
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.
vector< sensors::Sensor > sensors
List of numeric or state sensors.
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)