You need to enable JavaScript to run this app.
导航
报警列表查询V3
最近更新时间:2025.02.14 16:29:36首次发布时间:2025.02.14 16:29:36

查询指定设备在指定时间段内的报警事件信息。

请求说明

  • 请求方式:POST
  • 请求地址:https://open.volcengineapi.com?Action=ListDeviceAlarms&Version=2023-10-01

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数

Query

参数类型是否必选示例值描述
ActionStringListDeviceAlarms接口名称。当前 API 的名称为 ListDeviceAlarms
VersionString2023-10-01接口版本。当前 API 的版本为 2023-10-01
PageSizeInteger10分页大小
PageNumberInteger1分页

Body

参数类型是否必选示例值描述
DeviceIDStringa4a17959-e3c5-4cae-98cd-03410b7192d6设备ID,可通过调用 ListDevices 接口获取
StreamIDString48d69d60-1a94-4dbb-91a1-3cb75065a7da视频流ID,可通过调用 ListStreams 接口获取
StartTimeLong1660031340查询起始时间,秒级时间戳,例如:1660031340
EndTimeLong1660048340查询结束时间,秒级时间戳,例如:1660041340

Order

Integer

0

排序方式:

  • 0(正序)
  • 其他(倒序)

AlarmMethod

Array of Integer

[5]

告警方式筛选条件,可选枚举值为(如传入空数组,即返回所有告警方式的报警记录):

  • 1(电话报警)
  • 2(设备报警)
  • 3(短信报警
  • 4(GPS报警)
  • 5(视频报警)
  • 6(设备故障报警)
  • 7(其他报警)

AlarmPriority

Array of Integer

[2]

报警级别筛选条件,可选枚举值为(如传入空数组,即返回所有告警级别的报警记录):

  • 1(一级警情)
  • 2(二级警情)
  • 3(三级警情)
  • 4(四级警情)

返回参数

下表仅列出本接口特有的返回参数。更多信息请参见返回结构

参数类型示例值描述
PageNumberInteger1
PageSizeInteger20
TotalCountInteger2
AlarmNotifiesArray of AlarmNotifies-查询到的报警信息列表,参考以下 List<AlarmNotifies> 数据结构说明

AlarmNotifies

参数类型示例值描述
DeviceNSIDString34020044991320xxxxxx设备国标 ID
ChannelIDString34020044991320xxxxxx通道 ID
AlarmNotifyIDString1b54c50b-0452-43a4-a26a-86f81exxxxxx报警记录 ID

AlarmPriority

Integer

1

报警级别:

  • 1(一级警情)
  • 2(二级警情)
  • 3(三级警情)
  • 4(四级警情)

AlarmMethod

Integer

5

报警方式:

  • 1(电话报警)
  • 2(设备报警)
  • 3(短信报警
  • 4(GPS报警)
  • 5(视频报警)
  • 6(设备故障报警)
  • 7(其他报警)
AlarmTimeLong1660046429报警时间
AlarmDescriptionString视频动检报警内容描述
LongitudeString25.2设备经度
LatitudeString52.1设备纬度

请求示例

POST https://open.volcengineapi.com?Action=ListDeviceAlarms&Version=2023-10-01&PageSize=10&PageNumber=1
{
  "DeviceID": "a4a17959-e3c5-4cae-98cd-03410b7192d6",
  "StartTime": 1660031340,
  "EndTime": 1660048340,
  "AlarmMethod": [
    5
  ],
  "AlarmPriority": [
    2
  ],
  "StreamID": "48d69d60-1a94-4dbb-91a1-3cb75065a7da",
  "Order": 0
}

返回示例

{
  "Result": {
    "PageNumber": 1,
    "TotalCount": 2,
    "PageSize": 20,
    "AlarmNotifies": "-"
  },
  "ResponseMetadata": {
    "RequestId": "202306041104200100100232280022D31",
    "Version": "2023-10-01",
    "Action": "ListDeviceAlarms",
    "Service": "aiotvideo",
    "Region": "cn-beijing"
  }
}

错误码

您可访问公共错误码,获取更多错误码信息。