mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-06-06 05:12:33 +02:00
refactor: loop when monitorInfo.tags exist
This commit is contained in:
parent
7557073619
commit
f8495a970b
1 changed files with 4 additions and 2 deletions
|
@ -63,8 +63,10 @@ class FlashDuty extends NotificationProvider {
|
||||||
resource: this.genMonitorUrl(monitorInfo),
|
resource: this.genMonitorUrl(monitorInfo),
|
||||||
check: monitorInfo.name,
|
check: monitorInfo.name,
|
||||||
};
|
};
|
||||||
for (let tag of monitorInfo.tags) {
|
if (monitorInfo.tags && monitorInfo.tags.length > 0) {
|
||||||
labels[tag.name] = tag.value;
|
for (let tag of monitorInfo.tags) {
|
||||||
|
labels[tag.name] = tag.value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
const options = {
|
const options = {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
|
|
Loading…
Add table
Reference in a new issue