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;
145 in
int recid, in
int count);
169 in
int recid, in
int count);
184 in
int recid, in
int count);
204 in
int recid, in
int count);
219 in
int recid, in
int count);
Peripheral Device Slot.
Definition: PeripheralDeviceSlot.idl:66
Sensor logger interface.
Definition: SensorLogger.idl:31
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.
Sensor interface
Definition: Sensor.idl:15
Basic IDL definitions.
Definition: Event.idl:10
Peripheral Devices.
Definition: GatewaySensorManager.idl:17
Sensors Model.
Definition: AccumulatingNumericSensor.idl:13
Common base for all events.
Definition: Event.idl:13
Event: Sensor logger info has changed.
Definition: SensorLogger.idl:61
Info oldInfo
Info before change.
Definition: SensorLogger.idl:62
Info newInfo
Info after change.
Definition: SensorLogger.idl:63
Sensor logger info.
Definition: SensorLogger.idl:34
int samplePeriod
Sample interval in milliseconds.
Definition: SensorLogger.idl:35
int newestRecId
ID of newest record in buffer (0 if empty)
Definition: SensorLogger.idl:41
int oldestRecId
ID of oldest record in buffer (0 if empty)
Definition: SensorLogger.idl:40
int maxTotalRecords
Maximum supported number of log records (number of logged sensors multiplied by log capacity)
Definition: SensorLogger.idl:36
int effectiveCapacity
Effective log capacity; may be lower than the setting to meet the maxTotalRecords limit.
Definition: SensorLogger.idl:38
One full log row.
Definition: SensorLogger.idl:303
time timestamp
Log row time stamp (UNIX timestamp, UTC)
Definition: SensorLogger.idl:307
vector< Record > peripheralDeviceRecords
Peripheral device records; same order as in SensorSet::slots.
Definition: SensorLogger.idl:311
time sensorSetTimestamp
Time of last sensor set modification (UNIX timestamp, UTC)
Definition: SensorLogger.idl:305
vector< Record > sensorRecords
Sensor records; same order as in SensorSet::sensors.
Definition: SensorLogger.idl:309
Event: Set of logged sensors has been changed.
Definition: SensorLogger.idl:73
SensorSet oldSensors
Sensor set before change.
Definition: SensorLogger.idl:74
SensorSet newSensors
Sensor set after change.
Definition: SensorLogger.idl:75
Sensor log record.
Definition: SensorLogger.idl:148
boolean available
Sensor was available for at least one sample.
Definition: SensorLogger.idl:149
double minValue
Minimum sensor reading.
Definition: SensorLogger.idl:152
double maxValue
Maximum sensor reading.
Definition: SensorLogger.idl:154
int state
Sensor state.
Definition: SensorLogger.idl:151
double avgValue
Average sensor reading.
Definition: SensorLogger.idl:153
int takenValidSamples
Number of samples with a valid reading/state.
Definition: SensorLogger.idl:150
Set of logged sensors.
Definition: SensorLogger.idl:53
vector< peripheral::DeviceSlot > slots
List of peripheral device slots.
Definition: SensorLogger.idl:57
vector< sensors::Sensor > sensors
List of numeric or state sensors.
Definition: SensorLogger.idl:55
Event: Sensor logger settings have been changed.
Definition: SensorLogger.idl:67
Settings newSettings
Settings after change.
Definition: SensorLogger.idl:69
Settings oldSettings
Settings before change.
Definition: SensorLogger.idl:68
Sensor logger settings.
Definition: SensorLogger.idl:45
int logCapacity
Maximum number of log records in buffer.
Definition: SensorLogger.idl:48
boolean backupEnabled
true if backup to external storage is enabled
Definition: SensorLogger.idl:49
int samplesPerRecord
Number of samples per log record.
Definition: SensorLogger.idl:47
boolean isEnabled
true if sensor logging is enabled
Definition: SensorLogger.idl:46
Sensor log record with timestamp.
Definition: SensorLogger.idl:187
Record record
Log record.
Definition: SensorLogger.idl:189
time timestamp
UNIX timestamp (UTC)
Definition: SensorLogger.idl:188