mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
When Messasge field is set for an alert, map it to the output field in a Sensu check result. If Message is empty, send "Grafana Metric Condition Met"
This commit is contained in:
parent
5910453e8a
commit
204fe007b7
@ -112,7 +112,7 @@ func (this *SensuNotifier) Notify(evalContext *alerting.EvalContext) error {
|
||||
}
|
||||
|
||||
if evalContext.Rule.Message != "" {
|
||||
bodyJSON.Set("message", evalContext.Rule.Message)
|
||||
bodyJSON.Set("output", evalContext.Rule.Message)
|
||||
}
|
||||
|
||||
body, _ := bodyJSON.MarshalJSON()
|
||||
|
Loading…
Reference in New Issue
Block a user