Add events for the setMetricValue function