Commit e983f8f5 by Henrique Oliveira

Adding Action to view the graph by its public URL.

parent d76dad86
...@@ -96,14 +96,26 @@ func (this *TeamsNotifier) Notify(evalContext *alerting.EvalContext) error { ...@@ -96,14 +96,26 @@ func (this *TeamsNotifier) Notify(evalContext *alerting.EvalContext) error {
}, },
}, },
"text": message, "text": message,
"potentialAction": []map[string]interface{}{ },
{ },
"@context": "http://schema.org", "potentialAction": []map[string]interface{}{
"@type": "ViewAction", {
"name": "View Rule", "@context": "http://schema.org",
"target": []string{ "@type": "OpenUri",
ruleUrl, "name": "View Rule",
}, "targets": []map[string]interface{}{
{
"os": "default", "uri": ruleUrl,
},
},
},
{
"@context": "http://schema.org",
"@type": "OpenUri",
"name": "View Graph",
"targets": []map[string]interface{}{
{
"os": "default", "uri": evalContext.ImagePublicUrl,
}, },
}, },
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment