{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instana/json-schema/instana-call-groups-result-schema.json",
  "title": "CallGroupsResult",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instana-application-analyze-api-openapi.yml#/components/schemas/CallGroupsResult",
  "type": "object",
  "properties": {
    "adjustedTimeframe": {
      "$ref": "#/$defs/AdjustedTimeframe"
    },
    "canLoadMore": {
      "type": "boolean",
      "description": "Determine if additional data is available when a new query is made using the cursor from the last item in the `items` list."
    },
    "items": {
      "type": "array",
      "description": "Represents an array of call group item containing several attributes that describe its properties.\nThe item includes fields such as cursor, metrics, name, and timestamp, which provide detailed information about the item.\n",
      "items": {
        "$ref": "#/$defs/CallGroupsItem"
      }
    },
    "totalHits": {
      "type": "integer",
      "format": "int64",
      "description": "The total number of items that match a given filter",
      "minimum": 0
    },
    "totalRepresentedItemCount": {
      "type": "integer",
      "format": "int64",
      "description": "For calls and EUM beacons, one row can represent multiple real items (batched call, sample multiplicity)",
      "minimum": 0
    },
    "totalRetainedItemCount": {
      "type": "integer",
      "format": "int64",
      "description": "For calls and EUM beacons, only a subset is retained for historic data. Each retained row can represent multiple real items due to batching.",
      "minimum": 0
    }
  },
  "required": [
    "items"
  ],
  "$defs": {
    "AdjustedTimeframe": {
      "type": "object",
      "description": "Time frame provided in API request is slightly adjusted in response for faster API response.\nFor example, In request payload, if timeframe is 08:03 - 14:03, which is a 6 hour window size. It is adjusted to 08:05 - 14:00\nAnother example, In request payload, if timeframe is 08:20 - 08:20 (next day) which is a 24h window size. It is adjusted to 08:30 - 08:00 (next day)\n",
      "properties": {
        "to": {
          "type": "integer",
          "format": "int64",
          "description": "end of timeframe expressed as the Unix epoch time in milliseconds. Eg: `ISO 8601` standard time `2024-06-27T05:05:55.615Z` can be represented as `1719464755615` in Unix epoch time in milliseconds."
        },
        "windowSize": {
          "type": "integer",
          "format": "int64",
          "description": "windowSize in milliseconds",
          "minimum": 0
        }
      },
      "required": [
        "to"
      ]
    },
    "CallGroupsItem": {
      "type": "object",
      "description": "Represents an array of call group item containing several attributes that describe its properties.\nThe item includes fields such as cursor, metrics, name, and timestamp, which provide detailed information about the item.\n",
      "properties": {
        "cursor": {
          "$ref": "#/$defs/IngestionOffsetCursor"
        },
        "metrics": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "description": "Grouped metric details like `errors.mean`, `calls.sum`.\nIt is usually a array of key-value pair. Format of key is `metric.aggregation.granularity`, for example: `latency.p75.360`.\nFormat of value is `[earliest timestamp, value of key]`, for example: `[1725602720000, 0.013141001434936938]`.\n",
            "items": {
              "type": "array",
              "description": "Grouped metric details like `errors.mean`, `calls.sum`.\nIt is usually a array of key-value pair. Format of key is `metric.aggregation.granularity`, for example: `latency.p75.360`.\nFormat of value is `[earliest timestamp, value of key]`, for example: `[1725602720000, 0.013141001434936938]`.\n",
              "items": {
                "type": "number",
                "description": "Grouped metric details like `errors.mean`, `calls.sum`.\nIt is usually a array of key-value pair. Format of key is `metric.aggregation.granularity`, for example: `latency.p75.360`.\nFormat of value is `[earliest timestamp, value of key]`, for example: `[1725602720000, 0.013141001434936938]`.\n"
              }
            }
          },
          "description": "Grouped metric details like `errors.mean`, `calls.sum`.\nIt is usually a array of key-value pair. Format of key is `metric.aggregation.granularity`, for example: `latency.p75.360`.\nFormat of value is `[earliest timestamp, value of key]`, for example: `[1725602720000, 0.013141001434936938]`.\n"
        },
        "name": {
          "type": "string",
          "description": "Name of the group."
        },
        "timestamp": {
          "type": "integer",
          "format": "int64",
          "description": "Earliest timestamp of the call from the group",
          "minimum": 0
        }
      },
      "required": [
        "cursor",
        "metrics",
        "name"
      ]
    },
    "IngestionOffsetCursor": {
      "type": "object",
      "description": "Cursor to use between successive queries"
    }
  }
}