1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 13:29:41 +02:00
portainer/app/react/kubernetes/queries/useGetMetricsMutation.ts

8 lines
325 B
TypeScript

import { useMutation } from 'react-query';
import { getMetricsForAllNodes } from '../services/service';
// use this as a mutation because the metrics request should be manually fired when the user clicks to turn the metrics toggle on
export function useGetMetricsMutation() {
return useMutation(getMetricsForAllNodes);
}