Commit fc597260 by Marcus Efraimsson Committed by GitHub

Merge pull request #13167 from holiiveira/teams-image

Alert Teams - Adding Action to view the graph by its public URL.
parents b070784b a1d1c4fb
......@@ -96,15 +96,27 @@ func (this *TeamsNotifier) Notify(evalContext *alerting.EvalContext) error {
},
},
"text": message,
},
},
"potentialAction": []map[string]interface{}{
{
"@context": "http://schema.org",
"@type": "ViewAction",
"@type": "OpenUri",
"name": "View Rule",
"target": []string{
ruleUrl,
"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