查询某监控对象的围栏报警信息
GET
/api/v3/fence/historyalarm
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://yingyan.baidu.com/api/v3/fence/historyalarm?service_id=127980&monitored_person=小明&ak=&sn='
响应示例响应示例
{
"status": 0,
"size": 1,
"message": "成功",
" alarms ": [
{
"fence_id": 1,
"fence_name":"围栏名称",
"monitored_person":"entity1",
"action": "exit",
"alarm_point":{
"longitude":116.2333,
"latitude":43.892,
"radius":27,
"loc_time": 1419388604
"create_time": 1419388609
},
"pre_point":{
"longitude":116.2367,
"latitude":43.894,
"radius":28,
"loc_time": 1419388724
"create_time": 1419388729
}
}
]
}
请求参数
Query 参数
service_id
integer
必需
示例值:
127980
monitored_person
string
必需
示例值:
小明
fence_ids
integer
可选
示例值:
1
start_time
integer
可选
示例值:
1489420800
end_time
integer
可选
示例值:
1489507200
coord_type_output
string
可选
ak
string
必需
默认值:
{{ak}}
sn
string
可选
默认值:
{{sn}}
返回响应
修改于 2022-08-22 02:54:35