def onConfigure(self):
        self.withEvents(["filesystemFailure", "diskFailure"]).withOrdered(False)
        self.withAllConditions([
            lambda rule, event: rule.firstEvent.get("source") == event.get("source"),
            lambda rule, event:Duration.between(rule.firstEvent.time, event.time).seconds <= 2
        ])
        self.withDuration(Duration.ofSeconds(5))