Skip to content

Conversation

@zh-vah
Copy link

@zh-vah zh-vah commented Oct 30, 2025

增加的接口字段同ai一致

@zh-vah zh-vah changed the title feat: 增加 AI 仪表盘获取集群数据汇总的接口 GetSummaryClusterInfo feat: 增加获取仪表盘集群数据汇总的接口 getSummaryClusterInfo Oct 30, 2025
Comment on lines 109 to 110
NOT_AVAILABLE = 0;
AVAILABLE = 1;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

根据protobuf的设计规范,enum的0值应不包含业务含义。所以这里把0(空值)的值的含义设置为UNKNOWN,NOT_AVAILABLE和AVAILABLE分别为1和2。

另外,这里为什么是一个enum?后续partition还可能会有其他状态?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

问了下薛老师和秦老师,说是可能还会有其它状态。现在只展示两种状态NOT_AVAILABLE和AVAILABLE。
img_v3_02ri_8fbc6822-ec6a-40c4-b494-ea430d83595g

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK,那这样的预留没有问题。还是先把0改成UNKNOWN就行

@zh-vah zh-vah requested a review from ddadaal October 30, 2025 09:40
@zh-vah zh-vah requested a review from ddadaal November 3, 2025 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants