pub fn split_directive(part: &str) -> Result<(&str, MetricLevel), String>
Splits one directive into its (pattern, level) parts, rejecting an invalid level with an error describing the offending directive.
(pattern, level)