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

        @type value: float
        @param value: metric value
        @type threshold: float
        @param threshold: value that trigger a warning
        
src/diamond/handler/sentry.py