{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-sitewise/json-schema/amazon-iot-sitewise-get-asset-property-aggregates-request-schema.json",
  "title": "GetAssetPropertyAggregatesRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-sitewise-properties-api-openapi.yml#/components/schemas/GetAssetPropertyAggregatesRequest",
  "type": "object",
  "properties": {
    "assetId": {
      "type": "string",
      "description": "The ID of the asset, in UUID format."
    },
    "propertyId": {
      "type": "string",
      "description": "The ID of the asset property, in UUID format."
    },
    "propertyAlias": {
      "type": "string",
      "description": "The alias that identifies the property, such as an OPC-UA server data stream path (for example, /company/windfarm/3/turbine/7/temperature). For more information, see Mapping industrial data streams to asset properties in the IoT SiteWise User Guide."
    },
    "aggregateTypes": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "AVERAGE",
          "COUNT",
          "MAXIMUM",
          "MINIMUM",
          "SUM",
          "STANDARD_DEVIATION"
        ]
      },
      "description": "The data aggregating function."
    },
    "resolution": {
      "type": "string",
      "description": "The time interval over which to aggregate data."
    },
    "qualities": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "GOOD",
          "BAD",
          "UNCERTAIN"
        ]
      },
      "description": "The quality by which to filter asset data."
    },
    "startDate": {
      "type": "string",
      "format": "date-time",
      "description": "The exclusive start of the range from which to query historical data, expressed in seconds in Unix epoch time."
    },
    "endDate": {
      "type": "string",
      "format": "date-time",
      "description": "The inclusive end of the range from which to query historical data, expressed in seconds in Unix epoch time."
    },
    "timeOrdering": {
      "type": "string",
      "enum": [
        "ASCENDING",
        "DESCENDING"
      ],
      "description": "The chronological sorting order of the requested information. Default: ASCENDING"
    },
    "nextToken": {
      "type": "string",
      "description": "The token to be used for the next set of paginated results."
    },
    "maxResults": {
      "type": "integer",
      "description": "The maximum number of results to return for each paginated request. A result set is returned in the two cases, whichever occurs first. The size of the result set is equal to 1 MB. The number of data points in the result set is equal to the value of maxResults. The maximum value of maxResults is 2500."
    }
  },
  "required": [
    "aggregateTypes",
    "resolution",
    "startDate",
    "endDate"
  ]
}