Skip to content

Commit 5f6df36

Browse files
GraceWalkZQKC
authored andcommitted
feat: 健康状态展示优化
1 parent 7d045db commit 5f6df36

30 files changed

+752
-645
lines changed

km-console/packages/layout-clusters-fe/src/api/index.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const api = {
2424
logout: `${securityPrefix}/account/logout`,
2525

2626
// 全局信息
27+
getVersionInfo: () => getApi('/self/version'),
2728
getUserInfo: (userId: number) => `${securityPrefix}/user/${userId}`,
2829
getPermissionTree: `${securityPrefix}/permission/tree`,
2930
getKafkaVersionItems: () => getApi('/kafka-versions-items'),
@@ -60,6 +61,7 @@ const api = {
6061
phyClustersDashbord: getApi(`/physical-clusters/dashboard`),
6162
supportKafkaVersion: getApi(`/support-kafka-versions`),
6263
phyClusterState: getApi(`/physical-clusters/state`),
64+
phyClusterHealthState: getApi(`/physical-clusters/health-state`),
6365

6466
getOperatingStateList: (clusterPhyId: number) => getApi(`/clusters/${clusterPhyId}/groups-overview`),
6567
getGroupTopicList: (clusterPhyId: number, groupName: string) => getApi(`/clusters/${clusterPhyId}/groups/${groupName}/topics-overview`),
@@ -201,6 +203,14 @@ const api = {
201203
getJobsTaskData: (clusterPhyId: string, jobId: string | number) => getApi(`/clusters/${clusterPhyId}/jobs/${jobId}/modify-detail`),
202204
//编辑任务
203205
putJobsTaskData: (clusterPhyId: string) => getApi(`/clusters/${clusterPhyId}/jobs`),
206+
207+
// Zookeeper 接口
208+
getZookeeperState: (clusterPhyId: string) => getApi(`/clusters/${clusterPhyId}/zookeepers-state`),
209+
getZookeeperList: (clusterPhyId: number) => getApi(`/clusters/${clusterPhyId}/zookeepers-overview`),
210+
getZookeeperNodeChildren: (clusterPhyId: number) => getApi(`/clusters/${clusterPhyId}/znode-children`),
211+
getZookeeperNodeData: (clusterPhyId: number) => getApi(`/clusters/${clusterPhyId}/znode-data`),
212+
getZookeeperMetricsInfo: (clusterPhyId: number) => getApi(`/clusters/${clusterPhyId}/zookeeper-latest-metrics`),
213+
getZookeeperMetrics: (clusterPhyId: string) => getApi(`/clusters/${clusterPhyId}/zookeeper-metrics`),
204214
};
205215

206216
export default api;

km-console/packages/layout-clusters-fe/src/assets/health-status-exception.png renamed to km-console/packages/layout-clusters-fe/src/assets/health-down-emoji.png

File renamed without changes.
25.7 KB
Loading

km-console/packages/layout-clusters-fe/src/assets/health-status-success.png renamed to km-console/packages/layout-clusters-fe/src/assets/health-good-emoji.png

File renamed without changes.
25.7 KB
Loading

km-console/packages/layout-clusters-fe/src/assets/health-status-normal.png renamed to km-console/packages/layout-clusters-fe/src/assets/health-medium-emoji.png

File renamed without changes.
24 KB
Loading
23.8 KB
Loading
24.9 KB
Loading
20.9 KB
Loading

0 commit comments

Comments
 (0)