---
title: "interval"
description: "Fields of a `interval` variable."
---

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

# interval

## Example

```json
{
  "name": "window",
  "type": "interval",
  "options": [
    "1m",
    "5m",
    "1h"
  ],
  "auto": true,
  "autoSteps": 30,
  "autoMin": "10s",
  "default": "5m"
}
```

From [`spec/examples/evolved-features.json`](https://github.com/slashobserve/slashobserve/blob/main/spec/examples/evolved-features.json).

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `name` (required) | `variableName` | Referenced in queries as $name, ${name} or ${name:format}. |
| `label` | `string` |   |
| `description` | `string` |   |
| `hide` | `"label"`, `"variable"` |   |
| `skipUrlSync` | `boolean` | The variable's value is not read from or written to the URL. |
| `type` (required) | `"interval"` |   |
| `options` (required) | array of `string` | At most 50 items. |
| `auto` | `boolean` |   |
| `autoSteps` | `integer` | Between 1 and 1000. |
| `autoMin` | `string` |   |
| `default` | `string` |   |

Generated from [`spec/schema/observespec.v0.json`](https://github.com/slashobserve/slashobserve/blob/bac0fe39/spec/schema/observespec.v0.json) at `bac0fe39`. [Report a problem](https://github.com/slashobserve/slashobserve/issues/new).
