question: private static MetricValue duration_to_metricvalue_ ( Duration duration ) { return MetricValue . fromIntValue ( duration . getMillis ( ) ) ; }
target:  Convert a duration to a metric value. The returned metric value is expressed as the duration in milliseconds.