Public Holidays & Notifications API
This section documents the Public Holidays configuration API, which is used to define days where alerting rules might behave differently (e.g., suppressing alerts or changing thresholds during holidays). It also documents the mock Webhook Receiver used for notification testing.
Public Holidays
List Holidays
GET /api/public-holidays
Returns a list of all configured public holidays.
Create Holiday
POST /api/public-holidays
Adds a new public holiday.
Body Parameters:
date(Date): The date of the holiday (e.g.,"2024-01-01").name(String): The name of the holiday.
Delete Holiday
DELETE /api/public-holidays/{id}
Removes an existing public holiday.
Notifications Receiver (Mock)
A built-in mock webhook receiver for testing notification channels.
Receive Webhook
POST /api/notifications/receiver
Accepts any JSON payload and logs it. Used as a target for testing outbound webhooks.
Get Received Notifications
GET /api/notifications/receiver
Returns a list of the last 50 webhook payloads received by the mock endpoint.
Clear Notifications
DELETE /api/notifications/receiver
Clears the queue of received mock notifications.