Add HostConfig + Cluster fields to models and update docs

This commit is contained in:
Rongsong Shen 2026-04-16 09:24:22 +00:00
parent 960ef62342
commit 00c4472d6c
9 changed files with 1805 additions and 9 deletions

View file

@ -14,15 +14,18 @@ var CLUSTERSTAT = map[string]int{
var JSONBCLFields = []string{"resources", "host_types", "host_models", "cluster_admins"}
type ClusterInfo struct {
ClusterName string `json:"cluster_name"`
Version string `json:"version"`
Status int `json:"status"`
ControllerName string `json:"controller_name"`
NumServers int `json:"num_servers"`
Resources string `json:"resources"`
HostTypes string `json:"host_types"`
HostModels string `json:"host_models"`
ClusterAdmins string `json:"cluster_admins"`
ClusterName string `json:"cluster_name"`
Version string `json:"version"`
Status int `json:"status"`
ControllerName string `json:"controller_name"`
NumServers int `json:"num_servers"`
Resources string `json:"resources"`
HostTypes string `json:"host_types"`
HostModels string `json:"host_models"`
ClusterAdmins string `json:"cluster_admins"`
HeartbeatInterval int `json:"heartbeat_interval"`
Vcpus int `json:"vcpus"`
InactiveHeartbeatCount int `json:"inactive_heartbeat_count"`
}
var CLUSTER_SUPPORT_FILTERS = []string{