Filter event stream for changed state only

Hi all,

is it possible to filter the CheckResult event stream for changes in state only (check_result.vars_after.state != check_result.vars_before.state)?

If yes, what would the filter have to look like?

Seems like the StateChange Event will allow me to do what I want.