@@ -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
206216export default api ;
0 commit comments