mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-06 17:18:35 +08:00
enhance: [skip e2e] refine display format (#38537)
issue: #36621 Signed-off-by: jaime <yun.zhang@zilliz.com>
This commit is contained in:
parent
decdfdae10
commit
4d5572d7ed
@ -37,7 +37,6 @@ import (
|
||||
"github.com/milvus-io/milvus/pkg/util/merr"
|
||||
"github.com/milvus-io/milvus/pkg/util/metricsinfo"
|
||||
"github.com/milvus-io/milvus/pkg/util/paramtable"
|
||||
"github.com/milvus-io/milvus/pkg/util/tsoutil"
|
||||
"github.com/milvus-io/milvus/pkg/util/typeutil"
|
||||
)
|
||||
|
||||
@ -340,7 +339,7 @@ func describeCollection(node *Proxy) gin.HandlerFunc {
|
||||
collection := &metricsinfo.Collection{
|
||||
CollectionID: strconv.FormatInt(describeCollectionResp.CollectionID, 10),
|
||||
CollectionName: describeCollectionResp.CollectionName,
|
||||
CreatedTime: tsoutil.PhysicalTimeFormat(describeCollectionResp.CreatedUtcTimestamp),
|
||||
CreatedTime: typeutil.TimestampToString(describeCollectionResp.CreatedUtcTimestamp),
|
||||
ShardsNum: int(describeCollectionResp.ShardsNum),
|
||||
ConsistencyLevel: describeCollectionResp.ConsistencyLevel.String(),
|
||||
Aliases: describeCollectionResp.Aliases,
|
||||
|
||||
@ -440,7 +440,7 @@ type Field struct {
|
||||
}
|
||||
|
||||
type Collection struct {
|
||||
CollectionID string `json:"collection_id,omitempty,string"`
|
||||
CollectionID string `json:"collection_id,omitempty"`
|
||||
CollectionName string `json:"collection_name,omitempty"`
|
||||
CreatedTime string `json:"created_time,omitempty"`
|
||||
ShardsNum int `json:"shards_num,omitempty"`
|
||||
@ -479,6 +479,4 @@ type Index struct {
|
||||
IndexParams map[string]string `json:"index_params,omitempty"`
|
||||
IsAutoIndex bool `json:"is_auto_index,omitempty"`
|
||||
UserIndexParams map[string]string `json:"user_index_params"`
|
||||
State string `json:"state,omitempty"`
|
||||
IndexStateFailReason string `json:"index_state_fail_reason,omitempty"`
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user