"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FLEET_HEALTH_SUBSCRIPTION = void 0;
const client_1 = require("@apollo/client");
exports.FLEET_HEALTH_SUBSCRIPTION = (0, client_1.gql) `
  subscription OnFleetHealthUpdate($fleetId: ID!) {
    fleetHealth(fleetId: $fleetId) {
      agentCount
      activeAgents
      errorRate
      cpuUsage
      memoryUsage
      requestsPerSecond
      averageLatency
      costPerHour
      alerts {
        id
        severity
        message
        timestamp
      }
      metrics {
        timestamp
        values {
          requestsPerSecond
          averageLatency
          costPerHour
          cpuUsage
          memoryUsage
          errorRate
        }
      }
    }
  }
`;
//# sourceMappingURL=subscriptions.js.map