{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-sitewise/json-schema/amazon-iot-sitewise-get-capture-data-request-schema.json",
  "title": "GetCaptureDataRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-sitewise-operations-api-openapi.yml#/components/schemas/GetCaptureDataRequest",
  "type": "object",
  "properties": {
    "workspaceName": {
      "type": "string",
      "description": "The name of the workspace that contains the capture source."
    },
    "startTime": {
      "$ref": "#/$defs/TimeInNanos"
    },
    "endTime": {
      "$ref": "#/$defs/TimeInNanos"
    },
    "timeSeriesId": {
      "type": "string",
      "description": "The time series ID that identifies the capture source. Mutually exclusive with propertyAlias."
    },
    "propertyAlias": {
      "type": "string",
      "description": "The property alias that identifies the capture source. Mutually exclusive with timeSeriesId."
    },
    "formatSettings": {
      "$ref": "#/$defs/FormatSettings"
    },
    "nextToken": {
      "type": "string",
      "description": "The token from a previous response used to continue retrieving data."
    }
  },
  "required": [
    "workspaceName",
    "startTime",
    "endTime"
  ],
  "$defs": {
    "FormatSettings": {
      "type": "object",
      "properties": {
        "framesPerSecond": {
          "type": "integer",
          "description": "The target frame rate for the output."
        },
        "widthInPixels": {
          "type": "integer",
          "description": "The target width of the output, in pixels."
        },
        "heightInPixels": {
          "type": "integer",
          "description": "The target height of the output, in pixels."
        }
      }
    },
    "TimeInNanos": {
      "type": "object",
      "properties": {
        "timeInSeconds": {
          "type": "integer",
          "description": "The timestamp date, in seconds, in the Unix epoch format. Fractional nanosecond data is provided by offsetInNanos."
        },
        "offsetInNanos": {
          "type": "integer",
          "description": "The nanosecond offset from timeInSeconds."
        }
      },
      "required": [
        "timeInSeconds"
      ]
    }
  }
}