HMS Function

2024-09-09
No Rating

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 check at Product Supportopen in new window.
»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_indexCopywariting variableint{"length":"10240"}Parameters need to be filled in the hms.jsonopen in new window.
»»sensor_indexCopywariting 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
}
If you have any comments or confusion about our documentation, you can click here to give feedback and we will get back to you as soon as possible.