def __init__(self, metric, sub_metric, stat_name, threshold, sla_type):
    if sla_type not in self.supported_sla_types:
      logger.error('Unsupported sla type passed : ' + sla_type)
      return None
    self.metric = metric
    self.sub_metric = sub_metric
    self.stat_name = stat_name
    self.sla_type = sla_type
    self.is_processed = False
    self.threshold = None
    self.display = None
    if '%' in threshold:
      self.threshold = float(threshold.translate(None, '%'))
      self.display = '%'
    else:
      self.threshold = float(threshold)
      self.display = ''
    self.sla_passed = None
    self.stat_value = None
dataset/ETHPy150Open linkedin/naarad/src/naarad/sla.py/SLA.__init__/original