Skip to main content
The notification command group (alias: notif) manages the notification channels InfraAudit uses to deliver alerts and scan results. You can enable or disable channels, check delivery history, and send test notifications.

notification list

List all configured notification channels and their current state:
infraudit notification list
infraudit notif preferences
Example output:
CHANNEL   ENABLED   LAST DELIVERY
-------   -------   -------------
email     true      10 minutes ago
slack     true      10 minutes ago
webhook   false     —

notification create

Add a new notification channel. Synopsis:
infraudit notification create --type <channel-type> --config <json>
FlagValuesDescription
--typeslack, emailNotification channel type
--configJSON stringChannel-specific configuration
Examples:
# Add a Slack channel
infraudit notification create --type slack --config '{"webhook_url": "https://hooks.slack.com/services/..."}'

# Add an email channel
infraudit notification create --type email --config '{"address": "ops@example.com"}'

notification update

Enable or disable an existing notification channel:
# Enable email notifications
infraudit notif update email --enabled true

# Disable Slack notifications
infraudit notif update slack --enabled false
Available channels: email, slack, webhook

notification delete

Remove a notification channel: Synopsis:
infraudit notification delete <channel-id>
Example:
infraudit notification delete 3

notification history

Show the delivery history for all notification channels:
infraudit notif history

notification send

Send a test notification to verify that a channel is working:
infraudit notif send --channel email --message "Test notification from InfraAudit"
infraudit notif send --channel slack --message "Test notification from InfraAudit"
For event-driven HTTP callbacks to external systems, use the webhook command group instead.