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";
|
||||
}
|
||||
}
|
||||
|
||||
// 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 = {
|
||||
topic: notification.ntfytopic,
|
||||
message: heartbeatJSON.msg,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user