Simple (yet not) add of custom tags and fields to deadman

kapacitor
#1

So when I create normal alerts, I am able to use the eval node to create custom fields and tags, but how is that accomplished in a deadman scenario?

This doesn’t work:

var data = stream
|from()
.database(db)
.retentionPolicy(rp)
.measurement(measurement)
.groupBy(groupBy)
.where(whereFilter)
|eval(lambda: string(‘test’), lambda: string(‘https://mycompany.com/dashboard’), lambda: string(‘cpu_usage_user’))
.as(‘env’, ‘dashboard’, ‘measure_name’)
.tags(‘env’)

var trigger = data
|deadman(threshold, period)
.stateChangesOnly()
.message(message)
.id(idVar)
.idTag(idTag)
.levelTag(levelTag)
.messageField(messageField)
.durationField(durationField)
.post(‘https://mycompany.com/api’)