max - Calculate the max value
The max
function will return the largest value passed into a function. It is most typically used as an aggregation.
Syntax
Arguments
Name | Type | Required | Description |
---|---|---|---|
value | number | true | The first numerical value to test |
...values | number | true | All subsequent numerical values |
Example - Capturing largest latency per page
Consider the following documents:
We can capture the largest value for latency
using the top
command:
This will give the top 10 values for path
that have the highest latency.
Theme
Light