"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GET_FLEET_OPTIMIZATION_METRICS = exports.GET_FLEET_HEALTH_METRICS = exports.GET_AVAILABLE_AGENTS = exports.GET_AGENT_METRICS = exports.GET_AGENT_FLEETS = void 0;
const client_1 = require("@apollo/client");
exports.GET_AGENT_FLEETS = (0, client_1.gql) `
  query GetAgentFleets {
    fleets {
      id
      name
      description
      status
      errorRate
      agents {
        id
        name
        status
        type
        capabilities
        metadata
        created
        updated
      }
      metadata
      created
      updated
    }
  }
`;
exports.GET_AGENT_METRICS = (0, client_1.gql) `
  query GetAgentMetrics($agentId: ID!, $start: DateTime!, $end: DateTime!, $metrics: [String!]) {
    agentMetrics(agentId: $agentId, start: $start, end: $end, metrics: $metrics) {
      id
      name
      description
      unit
      values {
        timestamp
        value
        metadata
      }
      metadata
    }
  }
`;
exports.GET_AVAILABLE_AGENTS = (0, client_1.gql) `
  query GetAvailableAgents {
    agents {
      id
      name
      type
      status
      capabilities
      metadata
    }
  }
`;
exports.GET_FLEET_HEALTH_METRICS = (0, client_1.gql) `
  query GetFleetHealthMetrics($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
        }
      }
    }
  }
`;
exports.GET_FLEET_OPTIMIZATION_METRICS = (0, client_1.gql) `
  query GetFleetOptimizationMetrics($fleetId: ID!) {
    fleetOptimization(fleetId: $fleetId) {
      costEfficiency
      resourceUtilization
      scalingEfficiency
      recommendations {
        id
        type
        priority
        description
        potentialSavings
        implementationComplexity
      }
      historicalMetrics {
        timestamp
        costPerRequest
        resourceUtilization
        responseTime
      }
    }
  }
`;
//# sourceMappingURL=queries.js.map