/api/asset/allalerts
Usage
This function is used to get a list of all of the alerts in ARDI.
Note that this is a list of all alerts, not all active alerts. The alerts are only active if the 'status' property is equal to 1.
Details
| Detail | Value |
|---|---|
| Group | Asset |
| From Server Version | 0.9.0 |
| Permission | Guest |
| Methods | GET or POST |
Parameters
| Parameter | Notes | Meaning |
|---|---|---|
| format | String (xml) | Either 'xml' or 'json' |
Examples
Call
http://ardiserver.com/api/alert/allalerts
Success (XML)
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<contents>
<alert id="1" name="Bridle #2 Roller 1 Slipping" asset="70" function="int([$$]) == 1 and IsZeroOrNone([##])"/>
<alert id="2" name="Prime Oven Heating Rate High" asset="75" function="int([$$]) == 1 and IsZeroOrNone([##])"/>
</contents>
Success (JSON)
[
{"id":1,"name":"Bridle #2 Roller 1 Slipping","assetid":70,"state":0,"function":"int([$$]) == 1 and IsZeroOrNone([##])"},
{"id":2,"name":"Prime Oven Heating Rate High","assetid":75,"state":0,"function":"int([$$]) == 1 and IsZeroOrNone([##])"}
]