@staticmethod
def parse_thresholds(raw_thresholds_spec):
    """Parse raw 'thresholds' global configuration option to dict."""
    if not raw_thresholds_spec:
        return {}
    valid_thresholds = {}
    error_msg = "Invalid suite host threshold component: '%s'"
    for threshold in raw_thresholds_spec.split(';'):
        try:
            measure, cutoff = threshold.strip().split()
            if measure.startswith('load'):
                valid_thresholds[measure] = float(cutoff)
            elif measure == 'memory' or measure.startswith('disk-space'):
                valid_thresholds[measure] = int(cutoff)
            else:
                raise ValueError(error_msg % cutoff)
        except ValueError:
            raise ValueError(error_msg % threshold)
    return valid_thresholds
