{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instana/json-schema/instana-application-metric-result-schema.json",
  "title": "ApplicationMetricResult",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instana-application-metrics-api-openapi.yml#/components/schemas/ApplicationMetricResult",
  "type": "object",
  "properties": {
    "adjustedTimeframe": {
      "$ref": "#/$defs/AdjustedTimeframe"
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ApplicationItem"
      }
    },
    "page": {
      "type": "integer",
      "format": "int32",
      "description": "Page Number",
      "minimum": 1
    },
    "pageSize": {
      "type": "integer",
      "format": "int32",
      "minimum": 1
    },
    "totalHits": {
      "type": "integer",
      "format": "int64",
      "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"
      ]
    },
    "Application": {
      "type": "object",
      "description": "Returns a list of Application Perspectives.",
      "properties": {
        "boundaryScope": {
          "type": "string",
          "description": "Here, `ALL` Application Boundary Scope is considered."
        },
        "entityType": {
          "type": "string",
          "description": "Since, this is an Application Perspective, it will be of type `APPLICATION`.",
          "enum": [
            "APPLICATION",
            "SERVICE",
            "ENDPOINT"
          ]
        },
        "id": {
          "type": "string",
          "description": "Unique ID of the Application Perspective. Eg: `Av62RoIKQv-A3n6DbMQh9g`."
        },
        "label": {
          "type": "string",
          "description": "Name of the Application Perspective. Eg: `app1`."
        }
      },
      "required": [
        "boundaryScope",
        "id",
        "label"
      ]
    },
    "ApplicationItem": {
      "type": "object",
      "properties": {
        "application": {
          "$ref": "#/$defs/Application"
        },
        "metrics": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "number"
              }
            }
          }
        }
      },
      "required": [
        "application",
        "metrics"
      ]
    }
  }
}