Raritan PX2/PX3 JSON-RPC API
OutletGroup.idl
1 #ifndef __PDUMODEL_OUTLETGROUP_IDL__
2 #define __PDUMODEL_OUTLETGROUP_IDL__
3 
4 #include <AccumulatingNumericSensor.idl>
5 #include <Outlet.idl>
6 
7 module pdumodel {
8 
10  interface OutletGroup {
11  constant int ERR_INVALID_ARGUMENT = 1;
12 
13  structure Sensors {
16  };
17 
18  structure Settings {
19  string name;
20  vector<Outlet_2_1_4> members;
21  };
22 
23  structure MetaData {
24  int groupId;
25  int uniqueId;
27  };
29 
31  valueobject SensorsChangedEvent extends idl.Event {
32  Sensors oldSensors;
34  };
35 
37  valueobject SettingsChangedEvent extends event.UserEvent {
38  Settings oldSettings;
40  };
41 
43  valueobject PowerControlEvent extends event.UserEvent {
44  Outlet_2_1_4.PowerState state;
45  boolean cycle;
46  };
47 
53  Sensors getSensors();
54 
55  MetaData getMetaData();
56 
62  Settings getSettings();
63 
72  int setSettings(in Settings settings);
73 
81  int setAllOutletPowerStates(in Outlet_2_1_4.PowerState pstate);
82 
88  int cycleAllOutletPowerStates();
89  };
90 }
91 
92 #endif
Sensors newSensors
Sensors after change.
Definition: OutletGroup.idl:33
A sensor with numeric readings.
Definition: NumericSensor.idl:12
Outlet interface
Definition: Outlet.idl:24
boolean cycle
Whether a power cycle operation was invoked.
Definition: OutletGroup.idl:45
Definition: OutletGroup.idl:18
Definition: OutletGroup.idl:23
Basic IDL definitions.
Definition: Event.idl:6
PowerState
Outlet power state.
Definition: Outlet.idl:45
A sensor which accumulates numeric readings (e.g.
Definition: AccumulatingNumericSensor.idl:11
Settings newSettings
Settings after change.
Definition: OutletGroup.idl:39
sensors::AccumulatingNumericSensor_2_0_2 activeEnergy
Active energy sensor.
Definition: OutletGroup.idl:15
int groupId
(ID) Value under which OutletGroupManager references this group, unique only for a given point in tim...
Definition: OutletGroup.idl:24
Sensors Model.
Definition: AccumulatingNumericSensor.idl:8
PDU Model.
Definition: Ade.idl:7
Main PDU interface.
Definition: OutletGroup.idl:10
Definition: OutletGroup.idl:13
sensors::NumericSensor_4_0_2 activePower
Active power sensor.
Definition: OutletGroup.idl:14