diff --git a/ctl/operation/clusters.go b/ctl/operation/clusters.go index ad5a1df0ee..41c9d59e0f 100644 --- a/ctl/operation/clusters.go +++ b/ctl/operation/clusters.go @@ -44,14 +44,14 @@ type ClusterResponse struct { } type DiagnoseShardStatus struct { - NodeName string `json:"node_name"` + NodeName string `json:"nodeName"` Status string `json:"status"` } type DiagnoseShardResponse struct { // shardID -> nodeName - UnregisteredShards []uint32 `json:"unregistered_shards"` - UnreadyShards map[uint32]DiagnoseShardStatus `json:"unready_shards"` + UnregisteredShards []uint32 `json:"unregisteredShards"` + UnreadyShards map[uint32]DiagnoseShardStatus `json:"unreadyShards"` } func clusterUrl() string { diff --git a/horaemeta/server/service/http/types.go b/horaemeta/server/service/http/types.go index 2d17652d57..183257eb1a 100644 --- a/horaemeta/server/service/http/types.go +++ b/horaemeta/server/service/http/types.go @@ -80,14 +80,14 @@ type API struct { } type DiagnoseShardStatus struct { - NodeName string `json:"node_name"` + NodeName string `json:"nodeName"` Status string `json:"status"` } type DiagnoseShardResult struct { // shardID -> nodeName - UnregisteredShards []storage.ShardID `json:"unregistered_shards"` - UnreadyShards map[storage.ShardID]DiagnoseShardStatus `json:"unready_shards"` + UnregisteredShards []storage.ShardID `json:"unregisteredShards"` + UnreadyShards map[storage.ShardID]DiagnoseShardStatus `json:"unreadyShards"` } type QueryTableRequest struct {