HMS Function
Event
Health alarm
Topic: thing/product/{gateway_sn}/events
Direction: up
Method: hms
Data:
Column | Name | Type | constraint | Description |
---|---|---|---|---|
list | Health alarm list | array | {} | |
»[array_item] | Elements in array | struct | {} | {"size": "20"} |
»»level | Alarm level | enum | {"0":"Inform","1":"Notice","2":"Alarm"} | |
»»module | Event module | enum | {"0":"flight mission","1":"device management","2":"media","3":"hms"} | |
»»in_the_sky | Whether is in flight | enum | {"0":"on the ground","1":"in the sky"} | |
»»code | Alarm code | text | {"length":"10240"} | |
»»device_type | Device type | text | The format is {domain-type-subtype}. For details, you can read Product Supported. | |
»»imminent | Whether is imminent | enum | {"0":"No","1":"Yes"} | Represents whether it is a timely warning code. For example, if the wind is too strong, it will disappear automatically as the wind decreases. |
»»args | Paremeter | struct | [{"identifier":"component_index","name":"copywriting value","dataType":{"type":"text","specs":{"length":"10240"}}},{"identifier":"sensor_index","name":"copywriting value","dataType":{"type":"text","specs":{"length":"10240"}}}] |
Example:
{
"tid": "xxxxxxxx",
"bid": "xxxxx",
"timestamp:": 1654070968655,
"method": "hms",
"data": {
"list": [
{
"level": 2,
"module": 3,
"in_the_sky": 0,
"code": "0x16100083",
"device_type": "0-67-0",
"imminent": 1,
"args": {
"component_index": 0,
"sensor_index": 0
}
}
]
}
}