code: def threshold(self):
          
          if self._threshold is None:
              self._threshold = {
                  'error': self.timer_warning,
                  'warning': self.timer_ok,
              }[self.timer_fail]
          return self._threshold
docs: Get maximum test time allowed when --timer-fail option is used.