feat: Adding monitor_id to HaloPSA (#6849)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Yasindu Dasanga De Mel
2026-02-04 16:22:19 +05:30
committed by GitHub
parent 574d42ca51
commit 85aafa73d4
3 changed files with 53 additions and 1 deletions
+1
View File
@@ -41,6 +41,7 @@ class HaloPSA extends NotificationProvider {
title: "Uptime Kuma Alert",
status: status,
monitor: monitorJSON?.name || "No Monitor",
monitor_id: monitorJSON?.id || null,
message: msg,
timestamp: new Date().toISOString(),
uptime_kuma_version: process.env.npm_package_version || "unknown",
+40
View File
@@ -50,6 +50,45 @@
{{ $t("halopsa_password_desc") }}
</div>
</div>
<div class="mb-3">
<div class="form-text">
<b>{{ $t("Webhook Payload Fields") }}:</b>
<p class="mb-2 mt-2">{{ $t("halopsa_payload_desc") }}</p>
<ul class="mb-2">
<li>
<b>title</b>
: {{ $t("halopsa_field_title") }}
</li>
<li>
<b>status</b>
: {{ $t("halopsa_field_status") }}
</li>
<li>
<b>monitor</b>
: {{ $t("halopsa_field_monitor") }}
</li>
<li>
<b>monitor_id</b>
: {{ $t("halopsa_field_monitor_id") }}
</li>
<li>
<b>message</b>
: {{ $t("halopsa_field_message") }}
</li>
<li>
<b>timestamp</b>
: {{ $t("halopsa_field_timestamp") }}
</li>
<li>
<b>uptime_kuma_version</b>
: {{ $t("halopsa_field_uptime_kuma_version") }}
</li>
</ul>
<p class="mb-0 text-muted">
<small>{{ $t("halopsa_id_usage_hint") }}</small>
</p>
</div>
</div>
<div class="mb-3">
<div class="form-text">
@@ -59,6 +98,7 @@
<li>{{ $t("halopsa_setup_step2") }}</li>
<li>{{ $t("halopsa_setup_step3") }}</li>
<li>{{ $t("halopsa_setup_step4") }}</li>
<li>{{ $t("halopsa_setup_step5") }}</li>
</ol>
</div>
</div>
+12 -1
View File
@@ -1442,5 +1442,16 @@
"TLS Alert Spec": "RFC 8446",
"mariadbSocketPathDetectedHelptext": "Connecting to the database as specified via the {0} environment variable.",
"Expand All Groups": "Expand All Groups",
"Collapse All Groups": "Collapse All Groups"
"Collapse All Groups": "Collapse All Groups",
"Webhook Payload Fields": "Webhook Payload Fields",
"halopsa_payload_desc": "The following fields are sent to your Halo PSA webhook:",
"halopsa_field_title": "Alert title (always 'Uptime Kuma Alert')",
"halopsa_field_status": "Monitor status: UP, DOWN, NOTIFICATION, or UNKNOWN",
"halopsa_field_monitor": "Name of the monitor",
"halopsa_field_monitor_id": "Unique monitor identifier (null for test notifications) - Use this to match alerts to tickets",
"halopsa_field_message": "Full alert message with status and details",
"halopsa_field_timestamp": "Event timestamp in ISO 8601 format",
"halopsa_field_uptime_kuma_version": "Uptime Kuma version number",
"halopsa_id_usage_hint": "💡 Tip: Use monitor_id to reliably match alerts to tickets, and heartbeat_id to track event history",
"halopsa_setup_step5": "Configure runbook to use monitor_id for matching alerts to existing tickets"
}