MetricCollector.setMaxAge

void setMaxAge(Duration age)

Sets the maximum age for data retention.

Parameters

ageThe maximum age duration.