Raritan PX2/PX3 JSON-RPC API
AlertedSensorManager.idl
1 #ifndef __ALERTED_SENSOR_MANAGER_IDL__
2 #define __ALERTED_SENSOR_MANAGER_IDL__
3 
4 #include <Sensor.idl>
5 
7 module sensors {
8 
11 
13  enumeration AlertState {
17  WARNED
18  };
19 
21  structure SensorCounts {
22  int total;
24  int critical;
25  int warned;
26  };
27 
35  structure SensorData {
37  Object parent;
39  };
40 
48  valueobject MonitoredSensorsChangedEvent extends idl.Event {
49  SensorCounts counts;
50  };
51 
61  valueobject AlertedSensorsChangedEvent extends idl.Event {
62  SensorCounts counts;
63  vector<SensorData> changedSensors;
64  vector<Sensor_4_0_2> removedSensors;
65  };
66 
72  SensorCounts getSensorCounts();
73 
79  vector<SensorData> getAllSensors();
80 
86  vector<SensorData> getAlertedSensors();
87 
88  };
89 
90 }
91 
92 #endif
Object parent
Reference to the sensor&#39;s parent object.
Definition: AlertedSensorManager.idl:37
A global instance keeping track of sensors in alerted state.
Definition: AlertedSensorManager.idl:10
AlertState
Sensor alert state.
Definition: AlertedSensorManager.idl:13
int warned
Number of warned sensors.
Definition: AlertedSensorManager.idl:25
Data about a monitored sensor.
Definition: AlertedSensorManager.idl:35
int critical
Number of critical sensors.
Definition: AlertedSensorManager.idl:24
int total
Total number of monitored sensors.
Definition: AlertedSensorManager.idl:22
Basic IDL definitions.
Definition: Event.idl:6
Sensor interface
Definition: Sensor.idl:10
Statistics about monitored sensors.
Definition: AlertedSensorManager.idl:21
Sensor is in critical state.
Definition: AlertedSensorManager.idl:16
Sensor_4_0_2 sensor
Reference to the sensor object.
Definition: AlertedSensorManager.idl:36
int unavailable
Number of unavailable sensors.
Definition: AlertedSensorManager.idl:23
Sensors Model.
Definition: AccumulatingNumericSensor.idl:8
Sensor is unavailable.
Definition: AlertedSensorManager.idl:14
AlertState alertState
Current alert state of the sensor.
Definition: AlertedSensorManager.idl:38
Sensor is not alerted.
Definition: AlertedSensorManager.idl:15
vector< SensorData > changedSensors
Changed or added sensors.
Definition: AlertedSensorManager.idl:63
vector< Sensor_4_0_2 > removedSensors
Removed sensors.
Definition: AlertedSensorManager.idl:64