{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instana/json-schema/instana-get-snapshots-query-schema.json",
  "title": "GetSnapshotsQuery",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instana-infrastructure-resources-api-openapi.yml#/components/schemas/GetSnapshotsQuery",
  "type": "object",
  "properties": {
    "snapshotIds": {
      "type": "array",
      "description": "List of one or more snapshot ids.",
      "items": {
        "type": "string",
        "description": "List of one or more snapshot ids."
      },
      "maxItems": 1000,
      "minItems": 0,
      "uniqueItems": true
    },
    "timeFrame": {
      "$ref": "#/$defs/TimeFrame"
    }
  },
  "required": [
    "snapshotIds"
  ],
  "$defs": {
    "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
        }
      }
    }
  }
}