I would like to write a .message() an http link giving the path to a Grafana panel.
The problem is the two time formats are completely different: {{ .Time }} in my TICKscript gives a time formatted like 2017-07-21 14:56:00 +0000 UTC while Grafana uses in its URL unix epoc format like 1500649601.
I’ve used following workaround to get the timestamp in unix time:
using eval and lambda to create new field called timestamp and then you can reference to it as to any other field in the alert.message():
|eval(lambda: int(unixNano("time")/1000000000))
.as('timestamp')
|alert()
.message("Current timestamp is {{ index .Fields "timestamp" }}")