批量任务ota升级
事件说明
JSON示例
{
"event_type": "batch_task",
"instance_id": "yvS58FQ8",
"event_time": "2023-04-05 17:24:02",
"event_id": "b8e9f4f7-d647-40aa-b0a4-b5008b83e69e",
"body": {
"type": "ota_upgrade",
"time": "2023-04-05 17:23:05",
"product_id": "6c771e17e5f1f80",
"product_name": "product1",
"module_id": "module1",
"data": {
"success_count": 100,
"fail_count":3,
"packageCode":"升级包code",
"upgradePackageCode": "批次code",
"success_upgraded_device":["deviceID1","deviceID2"],
"fail_upgraded_device": ["deviceID1","deviceID2"]
}
}
}
字段说明
名称 | 类型 | 说明 |
---|---|---|
event_type | String | 事件类型,与SQL语句中的表名一致,固定为batch_task |
instance_id | String | 实例ID |
event_time | String | 事件触发时间,格式yyyy-MM-dd HH:mm:ss |
event_id | String | 事件ID,用于跟踪指定事件 |
body | Object | 事件消息体 |
body.time | String | 创建时间,格式yyyy-MM-dd HH:mm:ss |
body.type | String | 批量任务类型 ota_upgrade : ota升级 |
body.product_id | String | 批量升级产品id |
body.product_name | String | 批量升级产品名称 |
body.module_id | String | 批量升级模块id |
body.data | Object | 批量升级数据 |
body.data.success_count | Long | 批量升级操作成功数量 |
body.data.fail_count | Long | 批量升级操作失败数量 |
body.data.packageCode | String | 升级包code |
body.data.upgradePackageCode | String | 批次code |
body.data.success_upgraded_device | String[] | 批量升级成功设备id集合 |
body.data.fail_upgraded_device | String[] | 批量升级失败设备id集合 |
修改于 2023-11-06 11:31:30