Skip to main content

HMS Management

Event

Health Warning

Topic: thing/product/{gateway_sn}/events

Direction: up

Method: hms

Data:

ColumnNameTypeconstraintDescription
listHealth alert listarray{"size": 20, "item_type": struct}
»levelAlarm levelenum_int{"0":"Notification","1":"Reminder","2":"Warning"}
»moduleEvent moduleenum_int{"0":"Flight mission","1":"Device management","2":"Media","3":"hms"}
»in_the_skyIn flightenum_int{"0":"On the ground","1":"In the sky"}
»codeAlarm codetext{"length":"10240"}
»device_typeDevice typetextFormat is {domain-type-subtype}, can be queried at Product Support.
»imminentWhether it is imminentenum_int{"0":"No","1":"Yes"}Represents whether it is an imminent alarm code. For example, if the wind is too strong, it will automatically disappear as the wind decreases.
»argsParametersstruct
»»component_indexCopywriting variableint{"length":"10240"}Variable to be filled in the 'alarm copy query json file', hms.json.
»»sensor_indexCopywriting variableint{"length":"10240"}

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"list": [
{
"args": {
"component_index": 0,
"sensor_index": 0
},
"code": "0x16100083",
"device_type": "0-67-0",
"imminent": 1,
"in_the_sky": 0,
"level": 2,
"module": 3
}
]
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "hms"
}