yandex-sysmon/notify — pull request #31 by mdevaev (2014-02-19 17:26:06+00:00)
Title: Saving and checking the status of the previous event

```
@state.add_prev()
def on_event(event, prev):
if prev["status"] == "OK" and event["status"] == "CRIT":
pass
# or
if state.is_changed(prev, event, "OK", "CRIT"):
pass
```