@@ -111,6 +111,25 @@ func (provider *AlertProvider) buildHTTPRequest(cfg *Config, ep *endpoint.Endpoi
111111 resultErrors := strings .ReplaceAll (strings .Join (result .Errors , "," ), "\" " , "\\ \" " )
112112 body = strings .ReplaceAll (body , "[RESULT_ERRORS]" , resultErrors )
113113 url = strings .ReplaceAll (url , "[RESULT_ERRORS]" , resultErrors )
114+
115+ if len (result .ConditionResults ) > 0 {
116+ var formattedConditionResults string
117+ for index , conditionResult := range result .ConditionResults {
118+ var prefix string
119+ if conditionResult .Success {
120+ prefix = "✅"
121+ } else {
122+ prefix = "❌"
123+ }
124+ formattedConditionResults += fmt .Sprintf ("%s - `%s`" , prefix , conditionResult .Condition )
125+ if index < len (result .ConditionResults )- 1 {
126+ formattedConditionResults += ", "
127+ }
128+ }
129+ body = strings .ReplaceAll (body , "[RESULT_CONDITIONS]" , formattedConditionResults )
130+ url = strings .ReplaceAll (url , "[RESULT_CONDITIONS]" , formattedConditionResults )
131+ }
132+
114133 if resolved {
115134 body = strings .ReplaceAll (body , "[ALERT_TRIGGERED_OR_RESOLVED]" , provider .GetAlertStatePlaceholderValue (cfg , true ))
116135 url = strings .ReplaceAll (url , "[ALERT_TRIGGERED_OR_RESOLVED]" , provider .GetAlertStatePlaceholderValue (cfg , true ))
0 commit comments