max_value_metric function

Method that return max value of metric.