import { z } from 'zod';

export const ServiceHealthSchema = z.object({
  serviceId: z.string(),
  status: z.enum(['up', 'down', 'degraded']),
  responseTime: z.number().optional(),
  lastCheck: z.string(),
});

export type ServiceHealth = z.infer<typeof ServiceHealthSchema>;

export const HealthParamsSchema = z.object({
  serviceId: z.string().min(1, 'Service ID is required'),
});

export type HealthParams = z.infer<typeof HealthParamsSchema>;
