Accepts an alert payload, looks up the monitor config by id,
builds the notification message template, and dispatches it via WhatsApp and Email
to the contacts stored in the master record. Updates last_whatsapp_sent_time
and last_email_sent_time on success.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | integer |
Required | Master record ID — must exist in tbl_monitoring_master |
| alert | string |
Required |
Alert severity level:
Info
Low
Moderate
High
Critical
|
| info | string |
Optional | Dynamic info message included in the notification body |
| error_line | string |
Required | Dynamic error message included in the notification body |
Example Request
Success Response (200)
Validation Error (422)
*NPAV Server Monitor Alert*
*Alert Level:* {alert}
*Server: Title:* {title}
*Info:* {info}
*WebApp:* {web_app_name} | RTID: {web_rt_id} | Dev: {devloper} | Test: {Tester}
*ServerEXE:* {server_exe_name} | RTID: {server_rt_id} | Dev: {devloper} | Test: {Tester}
*ClientEXE:* {client_exe_name} | RTID: {client_rt_id} | Dev: {devloper} | Test: {Tester}
*Error Lines:* SRV8.computerkolkata.com port 0077 xxABC PRO
Team NPAV
cURL
PowerShell