{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ground-station/json-schema/amazon-ground-station-update-agent-status-request-schema.json",
  "title": "UpdateAgentStatusRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ground-station-agent-api-openapi.yml#/components/schemas/UpdateAgentStatusRequest",
  "type": "object",
  "properties": {
    "agentId": {
      "type": "string",
      "description": "UUID of agent to update."
    },
    "taskId": {
      "type": "string",
      "description": "GUID of agent task."
    },
    "aggregateStatus": {
      "$ref": "#/$defs/AggregateStatus"
    },
    "componentStatuses": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ComponentStatusData"
      },
      "description": "List of component statuses for agent."
    }
  },
  "required": [
    "agentId",
    "taskId",
    "aggregateStatus",
    "componentStatuses"
  ],
  "$defs": {
    "AggregateStatus": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "SUCCESS",
            "FAILED",
            "ACTIVE",
            "INACTIVE"
          ],
          "description": "Aggregate status."
        },
        "signatureMap": {
          "type": "object",
          "additionalProperties": {
            "type": "boolean"
          },
          "description": "Sparse map of failure signatures."
        }
      },
      "required": [
        "status"
      ]
    },
    "ComponentStatusData": {
      "type": "object",
      "properties": {
        "componentType": {
          "type": "string",
          "description": "The Component type."
        },
        "capabilityArn": {
          "type": "string",
          "description": "Capability ARN of the component."
        },
        "status": {
          "type": "string",
          "enum": [
            "SUCCESS",
            "FAILED",
            "ACTIVE",
            "INACTIVE"
          ],
          "description": "Component status."
        },
        "bytesSent": {
          "type": "integer",
          "description": "Bytes sent by the component."
        },
        "bytesReceived": {
          "type": "integer",
          "description": "Bytes received by the component."
        },
        "packetsDropped": {
          "type": "integer",
          "description": "Packets dropped by component."
        },
        "dataflowId": {
          "type": "string",
          "description": "Dataflow UUID associated with the component."
        }
      },
      "required": [
        "componentType",
        "capabilityArn",
        "status",
        "dataflowId"
      ]
    }
  }
}