Browse Source

Add get system config in utils

ruiyi.jiang 2 years ago
parent
commit
6d1fa3b392
1 changed files with 5 additions and 0 deletions
  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 };
   return { nodes, childNodes, system, workingNodes };
 };
 };
 
 
+// get nodes
 export const getNode = (nodes: any, type: MILVUS_NODE_TYPE) => {
 export const getNode = (nodes: any, type: MILVUS_NODE_TYPE) => {
   return nodes.filter((n: any) => n.infos.type === type);
   return nodes.filter((n: any) => n.infos.type === type);
 };
 };
+
+export const getSystemConfigs = (workingNodes: any) => {
+  return workingNodes.map((n: any) => n.infos.system_configurations);
+};