Deadman switch: only alert on state "Critical"

Hello Community.

I was wondering if it is possible to skip the recovery notification when the deadman switch level goes back to state “OK”.

TICKscript:

var data = stream
    |from()
        .database(my_db)
        .retentionPolicy(my_rp)
        .measurement(load)
data
    |deadman(10.0, 10m)
        .stateChangesOnly()
        .message('my_db {{if eq .Level "OK"}}alive{{else}}dead{{end}}')
        .id(idVar)
        .slack()
        .log('/var/log/kapacitor/deadman.log')

Does anybody knows?
Thanks!!!

you can add the “.noRecoveries()” property to your deadman node.