Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
# The set of element above the threshold
fun above_threshold: Set[ELM] is abstract
# The set of element above the threshold
fun above_threshold: Set[ELM] is abstract
+
+ # Sort the metric keys by values
+ fun sort: Array[ELM] do
+ return values.keys_sorted_by_values(default_reverse_comparator)
+ end
end
# A Metric that collects integer data
end
# A Metric that collects integer data
print "{"\t" * indent} sum: {sum}"
end
end
print "{"\t" * indent} sum: {sum}"
end
end
end
# A MetricSet is a metric holder
end
# A MetricSet is a metric holder