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:
Epifeny 2026-01-19 09:22:03 +02:00 committed by GitHub
parent a86789be6c
commit 52737a1299
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,