mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Adding Action to view the graph by its public URL.
This commit is contained in:
@@ -96,14 +96,26 @@ func (this *TeamsNotifier) Notify(evalContext *alerting.EvalContext) error {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"text": message,
|
"text": message,
|
||||||
"potentialAction": []map[string]interface{}{
|
},
|
||||||
|
},
|
||||||
|
"potentialAction": []map[string]interface{}{
|
||||||
|
{
|
||||||
|
"@context": "http://schema.org",
|
||||||
|
"@type": "OpenUri",
|
||||||
|
"name": "View Rule",
|
||||||
|
"targets": []map[string]interface{}{
|
||||||
{
|
{
|
||||||
"@context": "http://schema.org",
|
"os": "default", "uri": ruleUrl,
|
||||||
"@type": "ViewAction",
|
},
|
||||||
"name": "View Rule",
|
},
|
||||||
"target": []string{
|
},
|
||||||
ruleUrl,
|
{
|
||||||
},
|
"@context": "http://schema.org",
|
||||||
|
"@type": "OpenUri",
|
||||||
|
"name": "View Graph",
|
||||||
|
"targets": []map[string]interface{}{
|
||||||
|
{
|
||||||
|
"os": "default", "uri": evalContext.ImagePublicUrl,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user