> ## Documentation Index
> Fetch the complete documentation index at: https://elementary-more-explicit-webhook-instructions.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# detection_delay

```
detection_delay:
  period: < time period > # supported periods: hour, day, week, month
  count: < number of periods >
```

The duration for retracting the detection period.
That's useful in cases which the latest data should be excluded from the test. For example, this can happen because of scheduling issues- if the test is running before the table is populated for some reason. The detection delay is the period of time to ignore, after the detection period.

* *Default: 0*
* *Relevant tests: Anomaly detection tests with `timestamp_column`*

<img src="https://mintlify.s3-us-west-1.amazonaws.com/elementary-more-explicit-webhook-instructions/pics/anomalies/detection-delay.png" alt="Detection Delay" />

<RequestExample>
  ```yml test
  models:
    - name: this_is_a_model
      tests:
        - elementary.volume_anomalies:
            detection_delay:
              period: day
              count: 1
  ```

  ```yml model
  models:
    - name: this_is_a_model
      config:
        elementary:
          detection_delay:
            period: day
            count: 1
  ```

  ```yml dbt_project.yml
  vars:
    detection_delay:
      period: day
      count: 1
  ```
</RequestExample>

#### How it works?

The `detection_delay` param only works for tests that have `timestamp_column` configuration.
It does not affect the other duration parameters, like `detection_period` or `training_period`.
