MetricCollector.max

T max(Duration window)

Gets the maximum value within a time window.

Parameters

windowThe duration to look back from now.

Returns

The maximum value in the window.

Throws

Exception if no data is in the window.