Triggers REST API
Considering 8090 as the AppNode port, this section describes the following Triggers REST APIs:
http://localhost:8090/monitor/triggers
| Method | GET |
| Description | Get a list of triggers of the smart engine. |
| Path Parameters | None |
| Query Parameters | None |
| Header Parameters | None |
| Output |
|
http://localhost:8090/monitor/triggers/{triggerId}/properties
| Method | PUT |
| Description | Update the properties of a trigger. |
| Path Parameters |
|
| Query Parameters | None |
| Header Parameters | None |
| Body Parameters | { "{propertyName1}": {propertyValue1}, "{propertyName2}": {propertyValue2}, ... ... "{propertyNameN}": {propertyValueN} } |
| Output |
|
| Sample Output | {
"highIdleTimeoutPerMinuteThreshold": 60,
"highIdleTimeoutDurationMinutesThreshold": 5
} { "code": "200", "message": "Trigger's properties are updated.", "status": "success" } |