pub fn threshold_level(percent: f64) -> ThresholdLevel
Returns the severity level for a metric percentage.