chore: cluster system load service

This commit is contained in:
jialin
2026-01-12 12:24:34 +08:00
parent 2e5b075d1b
commit 05ad296b43
7 changed files with 105 additions and 9 deletions
@@ -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;