Hi, alerts are always generated for a time frame which can contain multiple matching messages.
In other words, there is no single message that you could link to. Cheers, Jochen On Friday, 23 September 2016 20:41:59 UTC+2, [email protected] wrote: > > I'm using the HipChat plugin to send alerts if a field value is a certain > number. I would the message to contain a URL to the message just like > clicking Permalink would generate when looking at the message. Anyone know > how to accomplish this? > > Here is my message template as it stands now: > > ${if stream_url}<a href="${stream_url}">${end} > <strong>Alert for ${stream.title}</strong> > ${if stream_url} > </a> > ${end} > <i>(${check_result.triggeredCondition})</i> > <br/> > <i>${check_result.resultDescription}, triggered at > ${check_result.triggeredAt}</i> > <br/> > ${if backlog}Last messages accounting for this alert:<br/> > <table align="left"> > <tr><th>My Field</th><th>Details</th></tr> > ${foreach backlog message}<br/> > <tr> > <td><b>${message.fields.myField}</b></td> > <td><code>${message.source}, ${message.id}</code></td> > </tr> > </table> > ${end} > ${else} > <i>(No messages to display.)</i> > ${end} > > -- You received this message because you are subscribed to the Google Groups "Graylog Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/graylog2/6c87047e-78d7-4f85-97ed-643fb7965fa5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
