{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-application-discovery-service/refs/heads/main/json-schema/application-discovery-service-list-server-neighbors-response-schema.json",
  "title": "ListServerNeighborsResponse",
  "description": "ListServerNeighborsResponse schema from Amazon Application Discovery Service API",
  "type": "object",
  "properties": {
    "neighbors": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "sourceServerId": {
            "type": "string",
            "example": "d-SERVER-500456",
            "description": "The ID of the server that opened the network connection."
          },
          "destinationServerId": {
            "type": "string",
            "example": "d-SERVER-500457",
            "description": "The ID of the server that accepted the network connection."
          },
          "destinationPort": {
            "type": "integer",
            "example": 443,
            "description": "The destination network port for the connection."
          },
          "transportProtocol": {
            "type": "string",
            "example": "TCP",
            "description": "The network protocol used for the connection."
          },
          "connectionsCount": {
            "type": "integer",
            "format": "int64",
            "example": 125,
            "description": "The number of open network connections with the neighboring server."
          }
        },
        "required": [
          "sourceServerId",
          "destinationServerId",
          "connectionsCount"
        ]
      },
      "description": "List of distinct servers that are one hop away from the given server."
    },
    "nextToken": {
      "type": "string",
      "example": "",
      "description": "Token to retrieve the next set of results."
    },
    "knownDependencyCount": {
      "type": "integer",
      "example": 1,
      "description": "Count of distinct servers that are one hop away from the given server."
    }
  }
}