Unit status message
The unit status message is sent from the unit to AosCloud to notify about the current unit state once the unit connects to the backend. Information about all services should be sent.
{
"header": {
"version": 5,
"systemId": "NTF9XNJ99HW3OF7A7",
"messageType": "unitStatus"
},
"data": {
"nodes": [
{
"nodeId": "node0",
"nodeType": "node0Type",
"numCpus": 4,
"totalRam": 40000000,
"partitions": [
{
"name": "var",
"types": [
"general"
],
"totalSize": 10000
}
]
}
],
"unitConfig": [
{
"vendorVersion": "3",
"status": "installed"
}
],
"services": [
{
"id": "8dc0c1d0-aac9-4d9d-89b8-fed0ac5fc7b2",
"aosVersion": 1469,
"status": "installed"
}
],
"layers": [
{
"id": "",
"aosVersion": 0,
"digest": "sha256:cc730d9ea462e223df4e20ca40ff44f28486647ef3aeadaf1d8b49a53ce80d20",
"status": "installed"
}
],
"instance": [
{
"serviceId": "8dc0c1d0-aac9-4d9d-89b8-fed0ac5fc7b2",
"subjectId": "subject_uuid",
"instance": 0,
"aosVersion": 1469,
"stateChecksum": "123456789",
"runState": "running",
"nodeId": "node0",
"errorInfo": {
"message": "error if exist"
}
}
],
"components": [
{
"id": "rootfs",
"aosVersion": 0,
"vendorVersion": "",
"status": "error",
"error": "vendor version file has wrong format"
},
{
"id": "boot",
"aosVersion": 3,
"vendorVersion": "3.1.0",
"status": "installed"
}
],
"unitSubjects": [
"unitsubject_uuid"
]
}
}
nodes fiels:
Field | Required | Description |
---|---|---|
nodeId | Yes | Node id |
nodeType | Yes | Type of the node |
numCpus | Yes | Count of CPUs present on the node |
totalRam | Yes | Total RAM presents on the node |
partitions | Yes | Partitions infomation |