{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instana/json-schema/instana-service-result-schema.json",
  "title": "ServiceResult",
  "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/ServiceResult",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Service"
      }
    },
    "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": {
    "Service": {
      "type": "object",
      "properties": {
        "entityType": {
          "type": "string",
          "description": "Since, this is a Service, it will be of type `SERVICE`.",
          "enum": [
            "APPLICATION",
            "SERVICE",
            "ENDPOINT"
          ]
        },
        "id": {
          "type": "string",
          "description": "Unique ID of the Service. Eg: `3feb3dcd206c166ef2b41c707e0cd38d7cd325aa`."
        },
        "label": {
          "type": "string",
          "description": "Name of the Service. Eg: `payment`."
        },
        "snapshotIds": {
          "type": "array",
          "description": "A unique identifier the metrics are assigned to.",
          "items": {
            "type": "string",
            "description": "A unique identifier the metrics are assigned to."
          },
          "uniqueItems": true
        },
        "technologies": {
          "type": "array",
          "description": "List of technologies: `Eg:[\"springbootApplicationContainer\"]`",
          "items": {
            "type": "string",
            "description": "List of technologies: `Eg:[\"springbootApplicationContainer\"]`"
          },
          "uniqueItems": true
        },
        "types": {
          "type": "array",
          "description": "Shows types of Endpoints a Service can consist of. It may be one or more. Eg: `HTTP` `OPENTELEMETRY` can be in 1 Service.",
          "items": {
            "type": "string",
            "description": "Shows types of Endpoints a Service can consist of. It may be one or more. Eg: `HTTP` `OPENTELEMETRY` can be in 1 Service.",
            "enum": [
              "UNDEFINED",
              "RPC",
              "EVENT",
              "GRAPHQL",
              "BATCH",
              "SHELL",
              "HTTP",
              "SDK",
              "OPENTELEMETRY",
              "INTERNAL",
              "DATABASE",
              "MESSAGING",
              "PAGE",
              "PAGE_RESOURCE"
            ]
          },
          "uniqueItems": true
        }
      },
      "required": [
        "id",
        "label",
        "snapshotIds",
        "technologies",
        "types"
      ]
    }
  }
}