There is a property method stateChangesOnly()on alert nodes in TICKscript that will only issue a warning when a warning state changes. Your script will look like this:
stream
|from()
.measurement('mymetric_value')
|deadman(1.0, 10s)
.message('service is down!')
.log('/tmp/alerts.log')
.email('myemail@company.com')
.stateChangesOnly()
For more information, see the documentation in stateChangeOnly () .
source
share