Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

335 B
Raw Blame
import { useQuery } from '@tanstack/react-query';

import { healthApi } from '@/api/health-api';

export const healthKeys = {
  all: ['system-health'] as const,
};

export const healthQueries = {
  useSystemHealth: () =>
    useQuery({
      queryKey: healthKeys.all,
      queryFn: () => healthApi.getSystemHealthChecks(),
    }),
};