详情

简要描述:

  • 详情接口

请求URL:

  • http://192.168.11.35/event-center/event/info

请求方式:

  • GET

参数:

参数名 必选 类型 说明
id int id

请求示例

http://192.168.11.145/event-center/event/info?id=3

返回示例

{
    "msg": "success",
    "code": 0,
    "data": {
        "event": {
            "delFlag": "0",
            "remark": "23",
            "createTime": "2020-09-23 10:21:20",
            "updateTime": "2020-11-20 15:29:06",
            "createBy": 2,
            "updateBy": 2,
            "id": 3,
            "tenantId": 44,
            "code": "E1597115971714",
            "name": "name3",
            "projectId": 141,
            "projectName": "7.24项目测试",
            "level": "Important",
            "levelName": "重要报警",
            "type": "Fault",
            "typeName": "故障",
            "eventType": null,
            "eventTypeName": null,
            "eventFrom": "device",
            "eventFromName": "设备管理",
            "deviceId": 46,
            "deviceName": "deviceName3",
            "deviceCode": "deviceCode3",
            "deviceAttribute": "deviceAttribute3",
            "deviceAttributeValue": "deviceAttributeValue3",
            "content": "contentcontentcontent3",
            "state": "1",
            "happenPosition": null,
            "startTime": null,
            "endTime": null,
            "attachmentBusinesses": null,
            "delAttachmentIds": null
        },
        "assetsDevice": {
            "delFlag": "0",
            "remark": null,
            "createTime": "2020-11-16 09:55:28",
            "updateTime": "2020-11-16 14:41:58",
            "createBy": 2,
            "updateBy": 2,
            "id": 46,
            "tenantId": 44,
            "projectId": 141,
            "projectName": "我去恶趣味",
            "positionId": 6,
            "positionCode": null,
            "positionName": "产业园一",
            "positionIndexCode": null,
            "deviceId": 46,
            "deviceName": "新风控制器001-40",
            "deviceCode": "xinfeng-001",
            "productId": 46,
            "productName": "新风控制器模板",
            "important": "1",
            "spaceId": 1003,
            "spaceName": "213123",
            "coordinate": null,
            "useState": null,
            "modelId": null,
            "modelType": null,
            "productNode": null,
            "activeTime": null,
            "adminState": null,
            "lastOnlineTime": null,
            "height": null,
            "angle": null,
            "offset": null,
            "specifications": "qwe123",
            "typeId": 144,
            "typeName": "类型12",
            "iotDevice": "1",
            "createName": "梁云",
            "deviceType": null,
            "deviceTypeName": null,
            "runState": "offline"
        }
    }
}

返回参数说明

参数名 类型 说明
code int 状态码, 0:成功;其他:异常
message String 描述信息
data object 返回数据
event 事件信息
createTime String 上报时间
id int 数据 id
level String 报警级别 (字典) (例:紧急, 重要, 一般….)
levelName String 报警级别名称
type String 告警类型 (字典) (例:告警, 故障, 通知….)
typeName String 告警类型名称
eventType String 事件类型 (字典) (例:资产越界….)
eventTypeName String 事件类型名称
eventFrom String 消息来源 (字典) (例:消防)
eventFromName String 消息来源名称
deviceId int 设备 id
deviceName String 设备名称
deviceCode String 设备编号
deviceAttribute str 设备属性
deviceAttributeValue str 设备属性值
content String 内容
state String 事件状态 (字典表)
happenPosition String 发生位置
assetsDevice 设备信息
deviceId int 设备id
deviceName String 设备名称
deviceCode String 设备编码
coordinate String 3D 坐标
productId int 产品 id
productName String 产品名称
spaceId int 空间单元 id
spaceName String 空间单元名称
modelId int 模型 id
deviceTypeName String 设备类型名称
positionId int 空间位置 id
positionName String 空间位置 名称

备注