Hi,
I am currently trying with watcher for anomalies.
Here is my text field which gets notified in slack.
"text": "Machine Learning Results - Object cache size is going to exceed threshold limit.\n Anomalies:\n{{#ctx.payload.hits.hits}}score={{_source.anomaly_score}} at time={{_source.timestamp}}\n{{/ctx.payload.hits.hits}}"
and in slack, it is notified as below.
Machine Learning Results - Object cache size is going to exceed threshold limit.
Anomalies:
score=34.23307635237295 at time=1540379400000
score=32.13437 at time=1540379700000
_source.timestamp is producing milliseconds-since-the-epoch value. But I would like to notify this value as readable date format.
Is there way to format this ?