上报硬件告警/事件
当边缘侧发生告警时,主动上报当前产生/恢复的告警信息;当收到rearm消息时,会上报当前所有未恢复的告警。
消息实例
{
"header": {
"msg_id": "741aec66-99b2-4d97-aaf2-63d27f53bbc5",
"parent_msg_id": "",
"timestamp": 1550107087319,
"sync": false
},
"route": {
"source": "hardware",
"group": "hub",
"operation": "update",
"resource": "websocket/alarm"
},
"content": {
}
}
参数说明
content消息内容描述如下:
{
"alarm": [{
"type": "alarm",
"alarmId": "0x00010002",
"alarmName": "emmc temperature up anomaly",
"resource": "EMMC0",
"perceivedSeverity": "MINOR",
"timestamp": "2018-11-08T21:57:21+08:00",
"sn": "1",
"notificationType": "alarm",
"detailedInformation": "EMMC temperature abnormal",
"suggestion": "alarm handle suggestion",
"reason": "alarm reason",
"impact": "alarm impact"
}]
}
告警ID定义待定。
各元素定义如下:
一级资源名称 |
二级资源名称 |
描述 |
类型 |
取值范围 |
|---|---|---|---|---|
alarm |
type |
告警类型 |
string |
取值为alarm和event |
alarmId |
告警ID |
string |
固定格式为0x00010002,其中最高位默认为0,也就是取值范围为:0x00000000~0x0fffffff |
|
alarmName |
告警名称 |
string |
[a-z0-9A-Z- _]{1,64} |
|
resource |
告警资源名称 |
string |
[a-z0-9A-Z- _]{1,256} |
|
perceivedSeverity |
告警级别 |
string |
取值为MINOR/MAJOR/CRITICAL |
|
timestamp |
告警产生时间 |
string |
64字节 |
|
sn |
告警序列号 |
string |
- |
|
notificationType |
告警标志 |
string |
表示告警产生还是恢复,取值为alarm和clear,当type为event时,固定为空 |
|
detailedInformation |
告警描述 |
string |
256字节 |
|
suggestion |
告警处理建议 |
string |
4096字节 |
|
reason |
告警原因 |
string |
256字节 |
|
impact |
告警影响 |
string |
256字节 |
父主题: 上行消息接口