-
Notifications
You must be signed in to change notification settings - Fork 4
feat: 增加获取仪表盘集群数据汇总的接口 getSummaryClusterInfo #75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
protos/config.proto
Outdated
| NOT_AVAILABLE = 0; | ||
| AVAILABLE = 1; |
There was a problem hiding this comment.
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还可能会有其他状态?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK,那这样的预留没有问题。还是先把0改成UNKNOWN就行

增加的接口字段同ai一致