城市数字化管理平台
  1. 开放平台-告警接口
城市数字化管理平台
  • 接入流程
  • 概念说明
  • 开放平台-告警接口
    • 上报告警信息
      POST
  • 开放平台-设备接口
    • 新增或修改摄像头
      POST
    • 新增或修改设备
      POST
    • 新增或修改端口
      POST
    • 新增或修改电力传感器
      POST
    • 删除摄像头
      POST
    • 删除设备
      POST
    • 删除端口
      POST
    • 删除电力传感器
      POST
    • 上报设备实时信息
      POST
    • 上报设备端口实时信息
      POST
  • 开放平台-充电记录接口
    • 新增充电记录
      POST
  • 开放平台-站点接口
    • 新增或修改站点
      POST
    • 删除站点
      POST
  1. 开放平台-告警接口

上报告警信息

POST
/govbiz/open/alarm/reportAlarmInfo
开放平台-告警接口
场景:
上报告警信息

请求参数

Body 参数application/json
alarmType
integer <int32>
必需
告警类型:1烟感告警,2明火预警
details
string 
详细信息
可选
id
integer <int64>
id
必需
level
integer <int32>
必需
告警等级:1轻微,2一般,3严重,4致命
operatorId
string 
运营商编码
必需
picUrl
string 
图片地址
可选
sourceId
string 
必需
来源对象ID,如果是摄像头,则填写摄像头ID
sourceType
integer <int32>
必需
告警来源 1-摄像头 2-充电桩 3-烟感
>= -128<= 127
stationId
string 
必需
站点编码,运营商内唯一
videoUrl
string 
视频地址
可选
alertId
string 
可选
报警ID, 数据同步时用于避免重复
sourceCode
string 
告警来源对象编码
可选
contactPhone
string 
联系人电话
可选
示例
{
    "alarmType": 0,
    "details": "string",
    "id": 0,
    "level": 0,
    "operatorId": "string",
    "picUrl": "string",
    "sourceId": "string",
    "sourceType": -128,
    "stationId": "string",
    "videoUrl": "string",
    "alertId": "string",
    "sourceCode": "string",
    "contactPhone": "string"
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/govbiz/open/alarm/reportAlarmInfo' \
--header 'Content-Type: application/json' \
--data-raw '{
    "alarmType": 0,
    "details": "string",
    "id": 0,
    "level": 0,
    "operatorId": "string",
    "picUrl": "string",
    "sourceId": "string",
    "sourceType": -128,
    "stationId": "string",
    "videoUrl": "string",
    "alertId": "string",
    "sourceCode": "string",
    "contactPhone": "string"
}'

返回响应

🟢200成功
*/*
OK
Body
code
string 
可选
响应码,000000为成功,其他都为异常
msg
string 
响应消息
可选
示例
{
    "code": "string",
    "msg": "string"
}
🟢201成功
🟠401没有权限
🟠403禁止访问
🟠404记录不存在
修改于 2024-10-31 09:00:15
上一页
概念说明
下一页
新增或修改摄像头
Built with