add attribute 'reset-on-threshold-reached'