83 lines
1.5 KiB
JSON
83 lines
1.5 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "cluster_node",
|
|
"title": "集群节点分配",
|
|
"primary": [
|
|
"id"
|
|
],
|
|
"catelog": "entity"
|
|
}
|
|
],
|
|
"fields": [
|
|
{
|
|
"name": "id",
|
|
"title": "id",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "cluster_id",
|
|
"title": "所属集群",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "node_id",
|
|
"title": "算力节点",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "role",
|
|
"title": "角色(control/compute/storage)",
|
|
"type": "char",
|
|
"length": 16,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "status",
|
|
"title": "状态(joining/active/draining/removed)",
|
|
"type": "char",
|
|
"length": 16,
|
|
"default": "joining"
|
|
},
|
|
{
|
|
"name": "assigned_at",
|
|
"title": "分配时间",
|
|
"type": "timestamp",
|
|
"nullable": "no"
|
|
}
|
|
],
|
|
"codes": [
|
|
{
|
|
"field": "cluster_id",
|
|
"table": "cluster",
|
|
"valuefield": "id",
|
|
"textfield": "name"
|
|
},
|
|
{
|
|
"field": "node_id",
|
|
"table": "compute_node",
|
|
"valuefield": "id",
|
|
"textfield": "name"
|
|
},
|
|
{
|
|
"field": "role",
|
|
"table": "appcodes_kv",
|
|
"valuefield": "k",
|
|
"textfield": "v",
|
|
"cond": "parentid='node_role'"
|
|
},
|
|
{
|
|
"field": "status",
|
|
"table": "appcodes_kv",
|
|
"valuefield": "k",
|
|
"textfield": "v",
|
|
"cond": "parentid='node_status'"
|
|
}
|
|
]
|
|
} |