HMS Function

2025-02-17
No Rating

Event

Health warning

Topic: thing/product/{gateway_sn}/events

Direction: up

Method: hms

Data:

ColumnNameTypeConstraintDescription
listHealth warning listarray{"size": 20, "item_type": struct}
»levelWarning levelenum_int{"0":"Notification","1":"Reminder","2":"Warning"}
»moduleEvent moduleenum_int{"0":"Flight mission","1":"Device management","2":"Media","3":"HMS"}
»in_the_skyWhether aircraft is in flightenum_int{"0":"On the ground","1":"In the sky"}
»codeWarning codetext{"length":"10240"}
»device_typeDevice typetextThe format is {domain-type-subtype}. Refer to Product Supportedopen in new window.
»imminentWhether it is imminentenum_int{"0":"No","1":"Yes"}It indicates whether it is a imminent warning. For example, if the wind is too strong, the warning will automatically disappear as the wind decreases.
»argsParametersstruct
»»component_indexCopywriting variableint{"length":"10240"}It needs to be filled in the variable within the 'Alarm copy query json file', hms.jsonopen in new window.
»»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"
}
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.