(self, value, threshold)
@type value: float
        @param value: metric value
        @type threshold: float
        @param threshold: value that trigger a warning
def __init__(self, value, threshold):
        """
        @type value: float
        @param value: metric value
        @type threshold: float
        @param threshold: value that trigger a warning
        """
        self.value = value
        self.threshold = threshold

        if not raven:
            self.log.error('raven.handlers.logging import failed. '
                           'Handler disabled')
            self.enabled = False
            return
def __init__ ( self , value , threshold ) : self . value = value self . threshold = threshold if not raven : self . log . error ( 'raven.handlers.logging import failed. ' 'Handler disabled' ) self . enabled = False return