You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/react/kubernetes/queries/useGetMetricsMutation.ts

9 lines
334 B

import { useMutation } from '@tanstack/react-query';
import { getMetricsForAllNodes } from '../metrics/metrics';
// 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);
}