{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-twinmaker/json-schema/amazon-iot-twinmaker-get-property-value-history-request-schema.json",
  "title": "GetPropertyValueHistoryRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-twinmaker-entity-properties-api-openapi.yml#/components/schemas/GetPropertyValueHistoryRequest",
  "type": "object",
  "properties": {
    "workspaceId": {
      "type": "string",
      "description": "The ID of the workspace."
    },
    "entityId": {
      "type": "string",
      "description": "The ID of the entity."
    },
    "componentName": {
      "type": "string",
      "description": "The name of the component."
    },
    "componentPath": {
      "type": "string",
      "description": "This string specifies the path to the composite component, starting from the top-level component."
    },
    "componentTypeId": {
      "type": "string",
      "description": "The ID of the component type."
    },
    "selectedProperties": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of properties whose value histories the request retrieves."
    },
    "propertyFilters": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PropertyFilter"
      },
      "description": "A list of objects that filter the property value history request."
    },
    "startDateTime": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time of the earliest property value to return."
    },
    "endDateTime": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time of the latest property value to return."
    },
    "interpolation": {
      "$ref": "#/$defs/InterpolationParameters"
    },
    "nextToken": {
      "type": "string",
      "description": "The string that specifies the next page of results."
    },
    "maxResults": {
      "type": "integer",
      "description": "The maximum number of results to return at one time. The default is 25. Valid Range: Minimum value of 1. Maximum value of 250."
    },
    "orderByTime": {
      "type": "string",
      "description": "The time direction to use in the result order."
    },
    "startTime": {
      "type": "string",
      "description": "The ISO8601 DateTime of the earliest property value to return. For more information about the ISO8601 DateTime format, see the data type PropertyValue."
    },
    "endTime": {
      "type": "string",
      "description": "The ISO8601 DateTime of the latest property value to return. For more information about the ISO8601 DateTime format, see the data type PropertyValue."
    }
  },
  "required": [
    "workspaceId",
    "selectedProperties"
  ],
  "$defs": {
    "DataValue": {
      "type": "object",
      "properties": {
        "booleanValue": {
          "type": "boolean",
          "description": "A Boolean value."
        },
        "doubleValue": {
          "type": "number",
          "description": "A double value."
        },
        "integerValue": {
          "type": "integer",
          "description": "An integer value."
        },
        "longValue": {
          "type": "integer",
          "description": "A long value."
        },
        "stringValue": {
          "type": "string",
          "description": "A string value."
        },
        "listValue": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DataValue"
          },
          "description": "A list of multiple values."
        },
        "mapValue": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/DataValue"
          },
          "description": "An object that maps strings to multiple DataValue objects."
        },
        "relationshipValue": {
          "$ref": "#/$defs/RelationshipValue"
        },
        "expression": {
          "type": "string",
          "description": "An expression that produces the value."
        }
      }
    },
    "InterpolationParameters": {
      "type": "object",
      "properties": {
        "interpolationType": {
          "type": "string",
          "description": "The interpolation type."
        },
        "intervalInSeconds": {
          "type": "integer",
          "description": "The interpolation time interval in seconds."
        }
      }
    },
    "PropertyFilter": {
      "type": "object",
      "properties": {
        "propertyName": {
          "type": "string",
          "description": "The property name associated with this property filter."
        },
        "operator": {
          "type": "string",
          "description": "The operator associated with this property filter."
        },
        "value": {
          "$ref": "#/$defs/DataValue"
        }
      }
    },
    "RelationshipValue": {
      "type": "object",
      "properties": {
        "targetEntityId": {
          "type": "string",
          "description": "The ID of the target entity associated with this relationship value."
        },
        "targetComponentName": {
          "type": "string",
          "description": "The name of the target component associated with the relationship value."
        }
      }
    }
  }
}