> ## 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.

# Configuring Record Windows

> A record window makes every record its own window in Validio, dated by a timestamp field. Learn how to add one and which validators use it.

A record window makes every record its own window, dated by a timestamp field. Validators on a record window produce one datapoint per timestamp, instead of one per time interval as on a [tumbling window](https://docs.validio.io/docs/windows/configuring-tumbling-windows.md). For an overview of window types, see [About Windows](https://docs.validio.io/docs/windows.md).

Record windows are the window type of [Imported Metric](https://docs.validio.io/docs/validators/validator-types/imported-metric.md) validators, where each reported metric value is one record. You can also add record windows to data warehouse, query engine, and dbt sources. Record windows are not available on streaming sources.

> [!WARNING]
>
> A record window evaluates one record per timestamp, in each segment. When several records share the same value in the data-time field, Validio picks one of them arbitrarily and ignores the rest, without an error. Use a data-time field that is unique per record, such as an event timestamp, not a date. For example, on a table with 500 rows that share one `created_at` date, the validator evaluates one row.

## Add a record window

1. Navigate to the source's details page and click the **Windows** tab.
2. Click **+ New window**.
3. Under **Select type**, choose **Record window**. If the source does not support record windows, the type is disabled. Hover over it to see why.
4. Under **Configuration**,
   1. Select the **Data-time field**, the timestamp field that dates each record.
   2. Validio fills in a **Name** for the window from the field, such as `Record (created_at)`. To use your own, type it in the **Name** field. Once you type, click **Generate name** to return to the generated name.
   3. (Optional) Under **Advanced**, configure partition filtering and segment retention.
5. Click **Create window**.

![The New window dialog with Record window selected, the \_loaded\_at data-time field, and the name Record (\_loaded\_at)](https://mintcdn.com/validio/tGA9-d7qpa-9YqsV/images/docs/windows/1140-window-record-config.png?fit=max\&auto=format\&n=tGA9-d7qpa-9YqsV\&q=85\&s=7c65424337f39252a5f5287cb052a669)

New record window

Only the name of a record window can be changed after it is created. To use a different data-time field, create a new window. For more information, see [Updating a window](https://docs.validio.io/docs/windows.md#updating-a-window).

## Configuration parameters

| Field | Values | Description |
| :- | :- | :- |
| Name | String | Identifier for the window, used when configuring validators. |
| Data-time field | Field name | The timestamp field that dates each record. Cannot be changed after the window is created. |
| Partition field | Field name | (Optional, data warehouse sources) Adds a filter on the partition column of a partitioned table. |
| Partition lookback | Number and unit | (Optional) How far back from the window start time to read data. |
| Segment retention period (days) | Number | (Optional) Maximum number of days to keep segments when new data has not been seen. |

## Record windows on imported metrics sources

An [imported metrics source](https://docs.validio.io/docs/validators/validator-types/imported-metric.md#set-up-an-imported-metrics-source) has one record window, on the `validio_observed_at` field. This field holds the observed time of each reported metric value. It is not a column of the asset, so the window is never offered on a data source.

You do not add this window yourself. It is created with the source, named `Record (validio_observed_at)`, and every Imported Metric validator on the source uses it. If the window is missing, the next Imported Metric validator you create adds it again. The **Windows** tab is hidden on an imported metrics source.

## Validators that accept record windows

Most validators that take a window can use a record window. Numeric Distribution, Categorical Distribution, and Relative Volume validators cannot. Referential Integrity and Reconciliation validators accept one on one side only:

| Validator type | Record window support |
| :- | :- |
| [Numeric Distribution](https://docs.validio.io/docs/validators/validator-types/numeric-distribution.md), [Categorical Distribution](https://docs.validio.io/docs/validators/validator-types/categorical-distribution.md), [Relative Volume](https://docs.validio.io/docs/validators/validator-types/relative-volume.md) | Not supported. The record window is disabled in the window picker. |
| [Referential Integrity](https://docs.validio.io/docs/validators/validator-types/referential-integrity.md) | On the source only. The reference source must then use a global window. |
| [Reconciliation](https://docs.validio.io/docs/validators/validator-types/reconciliation.md) | On the left validator only. The right validator must then use a global window. |

## Record windows and time

A validator on a record window reads only records newer than the last one it evaluated. A record that arrives later with an older timestamp is skipped. To include it, [rerun the validator](https://docs.validio.io/docs/validators/managing-validators.md#rerunning-a-validator) from a datapoint before that timestamp.

On the validator graph, each datapoint on a record window has the same start and end time: the time in the record's data-time field. The graph tooltip shows this as a single **Observed** time instead of a start and end time. Global windows show their datapoints the same way.

## Related resources

* [About Windows](https://docs.validio.io/docs/windows.md)
* [Imported Metric](https://docs.validio.io/docs/validators/validator-types/imported-metric.md)
* [Configuring Tumbling Windows](https://docs.validio.io/docs/windows/configuring-tumbling-windows.md)
* [Configuring Global Windows](https://docs.validio.io/docs/windows/configuring-global-windows.md)
