AppNeta's API allows the configuration of targets to send its Intelleigent Alarm events, allowing administrators to route real-time alert notifications (ALARM_RAISED and ALARM_CLEARED) to third-party endpoints such as webhooks and custom API listeners.
Configuring a global notification endpoint requires submitting a correctly structured JSON object to the /v4/alarm/notification REST endpoint.
The instructions below provide a basic guideline to perform this.
Log in to the AppNeta Web UI.
Navigate to Gear Icon in the top right > Explore API to open the interactive Swagger UI.
Ensure you're looking in the /V4/ section. Locate and expand the Connectors resource section:
Select POST /v4/alarm/notification.
Click Try it out.
In the Request body field, paste the following JSON payload (update the url property to match the target endpoint).
Note - if you do not know your Organization ID, run a GET /4/organization to receive your 5 digit OrgID:
{
"name": "Global Webhook Notification",
"description": "Send all alarms to target webhook endpoint",
"enabled": true,
"notifyOn": [
"ALARM_RAISED",
"ALARM_CLEARED"
],
"connectors": [
{
"type": "WEBHOOK",
"url": "https://<insert your webhook url here>",
"method": "POST",
"headers": [
{
"key": "Content-Type",
"value": "application/json"
}
]
}
]
}
You can force a test alarm to verify the Webhook Delivery. To confirm that the target webhook endpoint successfully receives and processes events, create a temporary alarm by adjusting threshold limits:
In the AppNeta Web UI, navigate to Alarms > Alarm Rules.
Locate an active rule (or click Add Alarm Rule to create a dedicated test rule) and click Edit.
In the Threshold Rules section, set the threshold to a severity of Critical and adjust the criteria to force an immediate violation, as seen in screenshot below:
Set Data Loss to 0%
or
Set Round-Trip Latency to 1 ms
Adjust the occurance to 1 and window size 2 to increase the rate of the alarm and avoid waiting:
Click Save.
Wait 1 to 3 minutes for AppNeta to execute its next evaluation cycle.
Check the receiving webhook dashboard and confirm alarms are arriving.
Remove or adjust the custom alarm as needed.