28 | | The XML document with the values of current set-points ('''get''', '''set''', and '''status''' targets) and the list of alarms ('''alarms_*''' and '''status''' targets) is returned. The following examples are illustrating the format: |
---|
| 28 | The XML document with the values of current set-points ('''get''', '''set''', and '''status''' targets) and the list of alarms ('''alarms_*''' and '''status''' targets) is returned. The values are returned within the ''data'' xml node and the alarms within ''alarms'' node. See following example for details. |
---|
| 29 | We are requesting the list of active alarms and current values of the ''control_group'' with id ''0''. |
---|
| 30 | {{{ |
---|
| 31 | http://adei_server.net/adei/services/control.php?target=status&db_server=katrin&db_name=detectpr&control_group=0 |
---|
| 32 | }}} |
---|
| 33 | and receiving as a result the following XML document: |
---|
| 34 | {{{ |
---|
| 35 | <result title="KATRIN Detector"> |
---|
| 36 | <data> |
---|
| 37 | <Value db_server="katrin" db_name="detector" control_group="0" id="0" name="522-RTP-5-0001" value="0" timestamp="1252632977" verified="1252632977" obtained="1252632977"/> |
---|
| 38 | <Value db_server="katrin" db_name="detector" control_group="0" id="1" name="522-RTP-5-0002" value="0" timestamp="1252632976" verified="1252632977" obtained="1252632976"/> |
---|
| 39 | ... |
---|
| 40 | </data> |
---|
| 41 | <alarms> |
---|
| 42 | <Value severity="0" in="1248458852" out="" id="alarm1" name="Valve Status 8 off" description="Run away we are going to explode"/> |
---|
| 43 | ... |
---|
| 44 | </alarms> |
---|
| 45 | </result> |
---|
| 46 | }}} |
---|
| 47 | |
---|
| 48 | If the error is occurred during request processing, the error message is returned. The following format is used: |
---|
| 49 | {{{ |
---|
| 50 | <result> |
---|
| 51 | <Error>Unknown list target (wines) is specified</Error> |
---|
| 52 | </result> |
---|
| 53 | }}} |