|
|
@ -30,13 +30,14 @@ class Alerta extends NotificationProvider {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
if (heartbeatJSON == null) {
|
|
|
|
if (heartbeatJSON == null) {
|
|
|
|
let testdata = Object.assign( {
|
|
|
|
let postData = Object.assign({
|
|
|
|
event: "test",
|
|
|
|
event: "msg",
|
|
|
|
text: "Testing Successful.",
|
|
|
|
text: msg,
|
|
|
|
group: "uptimekuma-test",
|
|
|
|
group: "uptimekuma-msg",
|
|
|
|
resource: "Test",
|
|
|
|
resource: "Message",
|
|
|
|
}, data);
|
|
|
|
}, data);
|
|
|
|
await axios.post(alertaUrl, testdata, config);
|
|
|
|
|
|
|
|
|
|
|
|
await axios.post(alertaUrl, postData, config);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
let datadup = Object.assign( {
|
|
|
|
let datadup = Object.assign( {
|
|
|
|
correlate: ["service_up", "service_down"],
|
|
|
|
correlate: ["service_up", "service_down"],
|
|
|
|