瀏覽代碼

Add get system config in utils

ruiyi.jiang 2 年之前
父節點
當前提交
6d1fa3b392
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      client/src/utils/Metric.ts

+ 5 - 0
client/src/utils/Metric.ts

@@ -43,6 +43,11 @@ export const parseJson = (jsonData: any) => {
   return { nodes, childNodes, system, workingNodes };
 };
 
+// get nodes
 export const getNode = (nodes: any, type: MILVUS_NODE_TYPE) => {
   return nodes.filter((n: any) => n.infos.type === type);
 };
+
+export const getSystemConfigs = (workingNodes: any) => {
+  return workingNodes.map((n: any) => n.infos.system_configurations);
+};