feat(ntfy): Add monitor metadata to notification messages for automation (#6762)
Co-authored-by: epifeny <epifeny@users.noreply.github.com>
This commit is contained in:
parent
a86789be6c
commit
52737a1299
@ -57,6 +57,13 @@ class Ntfy extends NotificationProvider {
|
|||||||
status = "Up";
|
status = "Up";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Include monitor's assigned tags
|
||||||
|
if (monitorJSON && monitorJSON.tags && Array.isArray(monitorJSON.tags)) {
|
||||||
|
const monitorTagNames = monitorJSON.tags.map((tag) => tag.name);
|
||||||
|
tags = tags.concat(monitorTagNames);
|
||||||
|
}
|
||||||
|
|
||||||
let data = {
|
let data = {
|
||||||
topic: notification.ntfytopic,
|
topic: notification.ntfytopic,
|
||||||
message: heartbeatJSON.msg,
|
message: heartbeatJSON.msg,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user