HMS Function

2023-08-15
No Rating

Event

Health alarm

Topic: thing/product/{gateway_sn}/events

Direction: up

Method: hms

Data:

ColumnNameTypeconstraintDescription
listHealth alarm listarray{}
»[array_item]Elements in arraystruct{}{"size": "20"}
»»levelAlarm levelenum{"0":"Inform","1":"Notice","2":"Alarm"}
»»moduleEvent moduleenum{"0":"flight mission","1":"device management","2":"media","3":"hms"}
»»in_the_skyWhether is in flightenum{"0":"on the ground","1":"in the sky"}
»»codeAlarm codetext{"length":"10240"}
»»device_typeDevice typetextThe format is {domain-type-subtype}. For details, you can read Product Supportedopen in new window.
»»imminentWhether is imminentenum{"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.
»»argsParemeterstruct[{"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
				}
			}
		]
	}
}
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.