Check the signature
Read the body once as bytes. Pass an empty string to the verifier if the header is missing, and reject the request if verification fails. The signed bytes are the ASCII timestamp, a period and the exact body as received. Parsing and serializing JSON first can change the bytes. The example checks the lowercase HMAC-SHA256 digest in constant time and allows five minutes of clock difference.
Match the test requests by incident ID
On the Alerts page, choose Send test alert in the destination’s controls. The test can page a person. Check that both the trigger and recovery were accepted.
Check the receiver for two JSON bodies with test set to true. The first carries alert_firing and the second carries alert_resolved, a recovery timestamp and the same incident_id.
Accept retries without reopening an incident
Use the pair incident_id and event to recognize repeated requests. Save the event before returning a 2xx response. If an earlier trigger timed out, recovery can be the first event the receiver sees. Record it as resolved. An incident that ends before Litebackup even attempts the trigger stays in the server’s alert history.
Enable alerts
Check how many alerts are firing before choosing Enable delivery. Each server sends its open alerts immediately, then reports new alerts and recoveries for all enabled thresholds.
Install
Install Litebackup and back up a SQLite database to start monitoring it. Choose another paging service or chat channel in the alert integrations guide.