chore: cluster system load service
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import React, { useEffect } from 'react';
|
||||
import { useClusterSystemLoad } from '../../services/use-cluster-system-load';
|
||||
|
||||
const ClusterSystemLoad: React.FC<{ clusterId: number }> = ({ clusterId }) => {
|
||||
const { systemLoad, fetchClusterSystemLoad } = useClusterSystemLoad();
|
||||
|
||||
useEffect(() => {
|
||||
if (clusterId) {
|
||||
fetchClusterSystemLoad({ cluster_id: clusterId });
|
||||
}
|
||||
}, [clusterId]);
|
||||
|
||||
return <div>Cluster System Load Component</div>;
|
||||
};
|
||||
|
||||
export default ClusterSystemLoad;
|
||||
Reference in New Issue
Block a user