(self)
return (
            # Check that we exceeded user specified failcount for the reaction
            # to trigger.
            self.jdata['failcount'] >= self.redata['trigger'] and
            # Check that we don't run the reaction more often than the specified
            # frequency.
            (time.time() - float(self.redata['lastrun'])) >= self.redata['frequency'] and
            # Should the reaction be called when the monitor is True or False?
            self.redata['data']['call_on'] in self.jdata['check']['status']
        )
Common set of conditions to check if the reaction should be run.

        Note that this is applicable to *most* reactions, but your reaction
        may have a different set of requirements. If it does, override this
        method.
Common set of conditions to check if the reaction should be run.
Common set of conditions to check if the reaction should be run .
def _ShouldRun(self):
        """Common set of conditions to check if the reaction should be run.

        Note that this is applicable to *most* reactions, but your reaction
        may have a different set of requirements. If it does, override this
        method.
        """
        return (
            # Check that we exceeded user specified failcount for the reaction
            # to trigger.
            self.jdata['failcount'] >= self.redata['trigger'] and
            # Check that we don't run the reaction more often than the specified
            # frequency.
            (time.time() - float(self.redata['lastrun'])) >= self.redata['frequency'] and
            # Should the reaction be called when the monitor is True or False?
            self.redata['data']['call_on'] in self.jdata['check']['status']
        )
def _ShouldRun ( self ) : return ( # Check that we exceeded user specified failcount for the reaction # to trigger. self . jdata [ 'failcount' ] >= self . redata [ 'trigger' ] and # Check that we don't run the reaction more often than the specified # frequency. ( time . time ( ) - float ( self . redata [ 'lastrun' ] ) ) >= self . redata [ 'frequency' ] and # Should the reaction be called when the monitor is True or False? self . redata [ 'data' ] [ 'call_on' ] in self . jdata [ 'check' ] [ 'status' ] )