Skip to content

Commit

Permalink
Remove test message
Browse files Browse the repository at this point in the history
Co-authored-by: Frank Elsinga <frank@elsinga.de>
  • Loading branch information
2 people authored and Emmanuel Cohen committed Jul 4, 2023
1 parent 76a533a commit 503ad64
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions server/notification-providers/grafana-oncall.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,6 @@ class GrafanaOncall extends NotificationProvider {
async send(notification, msg, monitorJSON = null, heartbeatJSON = null) {
let okMsg = "Sent Successfully.";
try {

// If heartbeatJSON is null, assume we're testing.
if (heartbeatJSON == null) {
let GrafanaOncallTestData = {
title: "This is a test",
message: msg,
};
await axios.post(notification.grafanaoncallURL, GrafanaOncallTestData);
return okMsg;
}

if (heartbeatJSON["status"] === DOWN) {
let grafanadowndata = {
title: monitorJSON["name"] + " is down",
Expand Down

0 comments on commit 503ad64

Please sign in to comment.