# Inquire Trigger
Request Method: GET
URL: http://api.heclouds.com/triggers/trigger_id
trigger_id: need to be replaced with trigger ID
Parameter Name | Format | Description |
---|---|---|
errno | int | code for call error , 0 indicates call is successful |
error | string | error description, "succ" indicates call is successful |
data | json | device related information returned after successful interface call, see data description table |
Parameter Name | Format | Description |
---|---|---|
title | string | trigger name |
id | int | trigger ID |
create_time | string | trigger creation time, example: 2017-08-22 09:18:18 |
ds_id | string | datastream name |
dev_ids | array-string | device ID that the operation will affect |
url | string | alarm notification address |
type | string | trigger condition |
threshold | trigger condition threshold, used coordinating with type |
GET http://api.heclouds.com/triggers/145701 HTTP/1.1
{
"errno": 0,
"data": {
"create_time": "2017-08-22 09:18:18",
"dev_ids": ["39456825"],
"threshold": 100,
"id": 145701,
"title": "trigger",
"type": ">",
"ds_id": "gps",
"url": "http://aoic.choqf.com"
},
"error": "succ"
}