writing-a-metric__set-threshold-duration