# Data Validity

The `validity` key provides additional context around the measured state of foot traffic data for a given interval. The vast majority of your data will be in a `valid` state. This means that Dor has detected that all sensors associated to a location were measuring data for the timeframe and no sensor issues were detected. Some data may be in an `invalid` state, indicating that an issue was detected during the timeframe for all sensors associated with a location. If an interval includes both valid and invalid data, it will be marked as `degraded`.

For example, if Dor detects that the batteries have been removed from a sensor for a 15-minute period, data for that 15-minute period will be marked as `invalid`. Data for the hour will be marked  `degraded` because the hour includes periods of both valid and invalid data.

#### Validity Definitions <a href="#validity-definitions" id="validity-definitions"></a>

| Value        | Description                                                                                             |
| ------------ | ------------------------------------------------------------------------------------------------------- |
| **valid**    | No sensor issues have been detected for the interval.                                                   |
| **degraded** | Due to an unrecoverable sensor issue, some portions of the interval contain invalid or unmeasured data. |
| **invalid**  | Due to an unrecoverable sensor issue, the entire interval contains invalid or unmeasured data.          |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.getdor.com/dtm-docs/dtm-api/data-validity.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
