> ## Documentation Index
> Fetch the complete documentation index at: https://docs.validio.io/llms.txt
> Use this file to discover all available pages before exploring further.

# RecordWindowConfigCreateInput

> Record window configuration create input.



**Kind**: `input`

## Fields

**`dataTimeField`**: `JsonPointer!` (required)

Identifier for the index field used to configure the window.

---

**`partitionFilter`**: `PartitionFilterInput`

Partition qualifying filter.

For incremental windows, this is useful when the datetime field of the window
differs from a table's partitioning column. For example, given a tumbling
window configured on `created_at` and a partition filter on `_PARTITIONTIME`
with a lookback of 3 days:
```sql
SELECT * FROM mytable
WHERE
    -- tumbling window filter
    created_at >= (CURRENT_TIMESTAMP - INTERVAL '1 DAY')
    AND
    -- partition filter
    _PARTITIONTIME >= (CURRENT_TIMESTAMP - INTERVAL '3 DAYS')
```

---

**`segmentRetentionPeriodDays`**: `Int`

For validators attached to this window, this configuration sets a threshold to let the system clean up segments on validators that may have become stale.
If the last time data was processed on behalf of a segment exceeds this threshold, the segment is considered stale and is cleaned up. Note that the threshold is relative to the most recent segment processed.
When left unset, the system never cleans up stale segments.

