getAlarmMessageById:根据id查询详细的报警消息

功能详情

根据报警消息Id查询报警详情。

请求地址

https://openapi.lechange.cn/openapi/getAlarmMessageById

传入参数说明

参数名 参数类型 是否必填 默认值 合法值 参数说明
deviceId String 设备序列号
token String 授权Token
channelId String 通道号
alarmId String 告警消息Id
msgType String 消息类型

样例输入

{
    "system":{
        "ver":"1.0",
        "appId":"lcd08b4b07ce224508",
        "sign":"e743ae11392fcf783d20460269783b0d",
        "time":1603351506,
        "nonce":"3e3c27f0-1071-4f55-9de9-f0a932effb48"
    },
    "id":"28ca89f4-10c9-4ac4-9215-b829072eedcf",
    "params":{
        "msgType":"videoMotion",
        "alarmId":"1726360834259136",
        "deviceId":"MEGREZ0000001842",
        "channelId":"0",
        "token":"At_00000ad9e6e87f0142eb92e207aec46a"
    }
}

返回data字段说明

字段名 字段类型 字段说明
time Long 报警时间UNIX时间戳(单位:秒)
channelId String 通道号
alarmId Long 消息Id
deviceId String 设备ID
picurlArray String[] 报警图片url
thumbUrl String 缩略图Url
msgType String 消息类型,alarmPIR:人体红外;videoMotion:动态检测;wireLessDevLowPower:低电压告警
token String 消息唯一标识,用于查询云录像

样例输出

{
    "result":{
        "msg":"操作成功。",
        "code":"0",
        "data":{
            "msgType":"videoMotion",
            "alarmId":1726360834259136,
            "time":"20201022T151402",
            "thumbUrl":"https://lechangecloud-private-alarmpic.oss-cn-hangzhou.aliyuncs.com/lechange/MEGREZ0000001842_img/Alarm/0/07540ab39e82488490b232977c333c9e_0_thumb_qcif.dav?Expires=1603438169&OSSAccessKeyId=LTAIGz9JykwmdCyV&Signature=5fPYZzU9SfTFTsci%2F%2B%2FLCthCJtM%3D",
            "picurlArray":[
                "https://lechangecloud-private-alarmpic.oss-cn-hangzhou.aliyuncs.com/lechange/MEGREZ0000001842_img/Alarm/0/07540ab39e82488490b232977c333c9e_0.jpg?Expires=1603438169&OSSAccessKeyId=LTAIGz9JykwmdCyV&Signature=84oji7P8ZsceOH2a178QMy8cy4w%3D"
            ],
            "deviceId":"MEGREZ0000001842",
            "channelId":"0",
            "token":"07540ab39e82488490b232977c333c9e"
        }
    },
    "id":"28ca89f4-10c9-4ac4-9215-b829072eedcf"
}

results matching ""

    No results matching ""