{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instana/json-schema/instana-get-available-metrics-query-schema.json",
  "title": "GetAvailableMetricsQuery",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instana-infrastructure-analyze-api-openapi.yml#/components/schemas/GetAvailableMetricsQuery",
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "description": "Search term used to filter results using fields such as label, description, tag name or keywords",
      "maxLength": 200,
      "minLength": 0
    },
    "tagFilterExpression": {
      "$ref": "#/$defs/TagFilterExpressionElement"
    },
    "timeFrame": {
      "$ref": "#/$defs/TimeFrame"
    },
    "type": {
      "type": "string",
      "description": "Entity type. Identifier for the monitored technology."
    }
  },
  "required": [
    "tagFilterExpression",
    "timeFrame"
  ],
  "$defs": {
    "TagFilterExpressionElement": {
      "type": "object",
      "description": "Boolean expression of tag filters to define the scope of relevant calls.",
      "properties": {
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ]
    },
    "TimeFrame": {
      "type": "object",
      "description": "Time range for which the data should be retrieved.",
      "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",
          "maximum": 2678400000,
          "minimum": 0
        }
      }
    }
  }
}