Skip to content

Commit 9a8dacb

Browse files
committed
Add doc for min/max_over_time
1 parent d3f042e commit 9a8dacb

File tree

38 files changed

+778
-6
lines changed

38 files changed

+778
-6
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
## `TS` [esql-ts]
2+
3+
The `TS` command is similar to the [FROM](from.md) source command,
4+
but with two key differences: it targets only [time-series indices](docs-content://manage-data/data-store/data-streams/time-series-data-stream-tsds.md)
5+
and enables the use of time-series aggregation functions
6+
with the [STATS](stats-by.md) command.
7+
8+
**Syntax**
9+
10+
```esql
11+
TS index_pattern [METADATA fields]
12+
```
13+
14+
**Parameters**
15+
16+
`index_pattern`
17+
: A list of indices, data streams or aliases. Supports wildcards and date math.
18+
19+
`fields`
20+
: A comma-separated list of [metadata fields](/reference/query-languages/esql/esql-metadata-fields.md) to retrieve.
21+
22+
**Examples**
23+
24+
```esql
25+
TS metrics
26+
| STATS sum(last_over_time(memory_usage))
27+
```
28+

docs/reference/query-languages/esql/_snippets/functions/description/avg_over_time.md

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/_snippets/functions/description/max_over_time.md

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/_snippets/functions/description/min_over_time.md

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/_snippets/functions/examples/avg_over_time.md

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/_snippets/functions/examples/max_over_time.md

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/_snippets/functions/examples/min_over_time.md

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/_snippets/functions/layout/avg_over_time.md

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/_snippets/functions/layout/max_over_time.md

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/_snippets/functions/layout/min_over_time.md

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)