Notification events

For arlanix/api-monitor 1.0.1

Notification events

For compatible Notification versions, see Packages.

Event codes

Events belong to API Monitor with default warning severity:

Code Rule label Value
api_monitor_requests API request volume Requests per IP and protocol per minute
api_monitor_auth API authentication failures Authentication/authorisation failures per IP and protocol per minute
api_monitor_errors API error rate Protocol error percentage per minute, rounded down
api_monitor_slow Slow API requests Slow requests per protocol per minute
api_monitor_volume API traffic spike Protocol total over two minutes

Event fields

Field Admin label Meaning
api.protocol Protocol rest, soap, graphql
api.ip Peer IP Personal; empty for protocol-wide alerts
api.value Observed value Integer count or percentage
api.threshold Threshold Integer; computed for spikes, configured otherwise
api.window Minute (UTC) Y-m-d H:i; ending minute for spikes
api.summary Summary Personal; detailed alert text
api.baseline Usual two-minute requests Number; spikes only

When the rule enables Add details, messages include Protocol and Observed value.

Spike summaries use REST volume: … in 2 minutes (usual …, threshold …) ending … UTC, with the affected protocol. The total can cover one minute when the previous minute is missing or flagged as anomalous.

Emit and deliver

After retaining an alert, cron emits arlanix_notification_emit through Magento with the event code and api fields when Notification is enabled. Failures are logged; events are not replayed.

The spike's default body uses api.summary; other defaults use protocol, value, threshold and window. Configure Notification rules for delivery.