{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instana/json-schema/instana-endpoint-result-schema.json",
  "title": "EndpointResult",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instana-application-resources-api-openapi.yml#/components/schemas/EndpointResult",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Endpoint"
      }
    },
    "page": {
      "type": "integer",
      "format": "int32",
      "description": "Page number you want to retrieve in a request / retrieved in a response."
    },
    "pageSize": {
      "type": "integer",
      "format": "int32",
      "description": "number of elements retrieved in a single query."
    },
    "totalHits": {
      "type": "integer",
      "format": "int32",
      "description": "The number of results returned. For eg: If `items` has 5 elements, `totalhits` will be 5"
    }
  },
  "$defs": {
    "Endpoint": {
      "type": "object",
      "properties": {
        "entityType": {
          "type": "string",
          "description": "Since, this is a Endpoint, it will be of type `ENDPOINT`.",
          "enum": [
            "APPLICATION",
            "SERVICE",
            "ENDPOINT"
          ]
        },
        "id": {
          "type": "string",
          "description": "Unique ID of the Endpoint. Eg: `NCRq5oYnan5x-PkdTPQwLLUdu5M`."
        },
        "isSynthetic": {
          "type": "boolean",
          "writeOnly": true
        },
        "label": {
          "type": "string",
          "description": "Name of the Endpoint. Eg: `GET /api/fetch`."
        },
        "serviceId": {
          "type": "string",
          "description": "The serviceId this endpoint belongs to."
        },
        "synthetic": {
          "type": "boolean"
        },
        "syntheticType": {
          "type": "string",
          "enum": [
            "NON_SYNTHETIC",
            "SYNTHETIC",
            "MIXED"
          ]
        },
        "technologies": {
          "type": "array",
          "description": "List of technologies: `Eg:[\"springbootApplicationContainer\"]`",
          "items": {
            "type": "string",
            "description": "List of technologies: `Eg:[\"springbootApplicationContainer\"]`"
          },
          "uniqueItems": true
        },
        "type": {
          "type": "string",
          "description": "The type of the Endpoint.",
          "enum": [
            "UNDEFINED",
            "RPC",
            "EVENT",
            "GRAPHQL",
            "BATCH",
            "SHELL",
            "HTTP",
            "SDK",
            "OPENTELEMETRY",
            "INTERNAL",
            "DATABASE",
            "MESSAGING",
            "PAGE",
            "PAGE_RESOURCE"
          ]
        }
      },
      "required": [
        "id",
        "label",
        "serviceId",
        "technologies",
        "type"
      ]
    }
  }
}