{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instana/json-schema/instana-topology-schema.json",
  "title": "Topology",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instana-infrastructure-topology-api-openapi.yml#/components/schemas/Topology",
  "type": "object",
  "properties": {
    "edges": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GraphEdge"
      }
    },
    "nodes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GraphNode"
      }
    }
  },
  "$defs": {
    "EntityId": {
      "type": "object",
      "properties": {
        "host": {
          "type": "string"
        },
        "pluginId": {
          "type": "string",
          "description": "Plugin name"
        },
        "steadyId": {
          "type": "string",
          "description": "Steady identifier for the entity."
        }
      },
      "required": [
        "host",
        "pluginId",
        "steadyId"
      ]
    },
    "GraphEdge": {
      "type": "object",
      "properties": {
        "destination": {
          "type": "string",
          "description": "ID of the outgoing GraphEdge."
        },
        "relation": {
          "type": "string",
          "description": "Type of dependency between the source and the destination.",
          "enum": [
            "in",
            "is",
            "to",
            "of",
            "connected",
            "describes",
            "of20",
            "to20",
            "dummy",
            "parent"
          ]
        },
        "source": {
          "type": "string",
          "description": "ID of the incoming GraphEdge."
        }
      }
    },
    "GraphNode": {
      "type": "object",
      "properties": {
        "data": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          }
        },
        "entityId": {
          "$ref": "#/$defs/EntityId"
        },
        "id": {
          "type": "string",
          "description": "GraphNode ID."
        },
        "label": {
          "type": "string",
          "description": "Label of the entity"
        },
        "plugin": {
          "type": "string",
          "description": "Name of the plugin"
        }
      }
    }
  }
}