RTI has published the following API for creating rules.
POST {baseUrl}/rule
{
"name": "Abnormal Power Usage",
"description": "Abnormal Power Usage when exceeding 100",
"disabled": false,
"severity": 1,
"schemaId": "f1b2b80f",
"condition": ".reading > 100",
"actions": [
"cc899bdc"
]
}
It also allows you to create actions.
POST {baseUrl}/action
Payload:
{
"type": "node-red",
"name": "Node-RED Webhook",
"description": "A webhook for integrating with Node-RED",
"fields": {
"url": "http://btnodered.mybluemix.net/rti-webhook"
}
}
, , .
. .
RTI IoTP, , IBM API IoTP. .
URL- API- IoTP .
https://{6--org_ID}.internetofthings.ibmcloud.com/API/v0002/
, API, , API. API- IoTP .
→ →
API .