Skip to content

Commit

Permalink
fix alert
Browse files Browse the repository at this point in the history
  • Loading branch information
notshivansh committed Feb 12, 2025
1 parent f49f1ab commit f10b755
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,12 @@ private static String createAndGetBody(AlertType alertType, String metricsUrl,
body.append(CardTextBlock.createTextBlock(headingText, true, "bolder"));

if (!alertResult.redAlertHosts.isEmpty()) {
String payload = generateRedAlertPayload(alertResult.greenAlertHosts, alertType, metricsUrl);
String payload = generateRedAlertPayload(alertResult.redAlertHosts, alertType, metricsUrl);
if (payload != null) {
body.append(CardTextBlock.createTextBlock(payload, true, "default", "attention"));
}
}

if (!alertResult.greenAlertHosts.isEmpty()) {
String payload = generateGreenAlertPayload(alertResult.greenAlertHosts, alertType, metricsUrl);
if (payload != null) {
Expand Down

0 comments on commit f10b755

Please sign in to comment.