{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instana/json-schema/instana-infrastructure-groups-result-schema.json",
  "title": "InfrastructureGroupsResult",
  "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/InfrastructureGroupsResult",
  "type": "object",
  "properties": {
    "adjustedTimeframe": {
      "$ref": "#/$defs/AdjustedTimeframe"
    },
    "canLoadMore": {
      "type": "boolean"
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/InfrastructureGroup"
      }
    },
    "next": {
      "$ref": "#/$defs/InfraExploreCursor"
    },
    "totalHits": {
      "type": "integer",
      "format": "int64",
      "description": "represents the total number of results",
      "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"
      ]
    },
    "InfraExploreCursor": {
      "type": "object",
      "description": "cursor to use between successive queries"
    },
    "InfrastructureGroup": {
      "type": "object",
      "description": "group of infrastructure entities",
      "properties": {
        "count": {
          "type": "integer",
          "format": "int64",
          "description": "number of entities in this group"
        },
        "metrics": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "description": "map of metric keys to array of timestamp,value pairs",
            "items": {
              "type": "array",
              "description": "map of metric keys to array of timestamp,value pairs",
              "items": {
                "type": "number",
                "description": "map of metric keys to array of timestamp,value pairs"
              }
            }
          },
          "description": "map of metric keys to array of timestamp,value pairs"
        },
        "pollRate": {
          "type": "integer",
          "format": "int64",
          "description": "max poll rate across this group"
        },
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "description": "tag keys and values for this group"
          },
          "description": "tag keys and values for this group"
        }
      }
    }
  }
}