Back to Elasticsearch

Deriv

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

9.4.0497 B
Original Source

% This is generated by ESQL's AbstractFunctionTestCase. Do not edit it. See ../README.md for how to regenerate it.

Example

esql
TS datenanos-k8s
| WHERE pod == "three"
| STATS max_deriv = MAX(DERIV(network.cost)) BY time_bucket = BUCKET(@timestamp,5minute), pod
max_deriv:doubletime_bucket:date_nanospod:keyword
0.1016742024-05-10T00:00:00.000Zthree
0.04112024-05-10T00:05:00.000Zthree
-0.0171492024-05-10T00:10:00.000Zthree