Reporting Model File Information
Message instance
{
"header": {
"id": "",
"msg_id": "368920fd-f50e-4c82-8d21-e7fd134233ec",
"parentId": "",
"parent_msg_id": "",
"isSync": false,
"sync": false,
"timestamp": 1706283182365,
"version": "",
"resourceversion": "",
"nodeId": "",
"peerInfo": {}
},
"router": {
"source": "",
"destination": "",
"option": "",
"resource": ""
},
"route": {
"source": "hardware",
"group": "hub",
"operation": "update",
"resource": "websocket/modelfile_info"
},
"content": {
}
}
Parameter description
The content message is described as follows:
{
"modelfiles": [{
"uuid": "3ec49c17-a1b1-475d-8b13-41c49b3c0fd0",
"pod_uid": "ef365f87-7150-4310-b7bb-3fe47d1c8579",
"modelfile": [{
"name": "xxx",
"version": "xxx",
"downloaded_time": "2023-10-10T15:03:09Z",
"percentage": "30%",
"status": "active | inactive",
"download_status": "downloading | downloaded | failed",
"reason": "xx"
}]
}]
}
Elements are defined as follows:
Level-1 Resource Name |
Level-2 Resource Name |
Level-3 Resource Name |
Description |
|---|---|---|---|
modelfiles |
- |
- |
Meaning: model file information list Type: list |
- |
uuid |
- |
Meaning: service ID Type: string Value: matching the regular expression 0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12} |
- |
pod_uid |
- |
Meaning: ID of a pod Type: string Value: matching the regular expression [0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12} |
- |
modelfile |
- |
Meaning: model file information Type: list |
- |
- |
name |
Meaning: model file name Type: string Value: matching the regular expression ^[a-zA-Z0-9_.-]{1,256}$ and excluding two consecutive periods (..). Only .om, .tar.gz, and .zip files are supported. |
- |
- |
version |
Meaning: model file version Type: string Value: matching the regular expression ^[a-z0-9]([a-z0-9._-]{0,62}[a-z0-9]){0,1}$ |
- |
- |
downloaded_time |
Meaning: download complete time Type: string Example value: 2023-10-10T15:03:09Z |
- |
- |
percentage |
Meaning: download progress Type: string Value: 0% to 100% |
- |
- |
status |
Meaning: active status Type: string Value: active or inactive |
- |
- |
download_status |
Meaning: download status Type: string Value: downloading, downloaded, or failed |
- |
- |
reason |
Meaning: failure cause Type: string Example value: download from url failed |