Module alert

Source

Functionsยง

acknowledge_alert
Acknowledges an alert by a specific user.
add_alert_history
Adds a custom history entry for an alert.
auto_resolve_old_alerts
Auto-resolves alerts that have been active for longer than a specified period.
bulk_update_alert_status
Bulk updates the status of multiple alerts.
count_alerts
Counts the total number of alerts in the database with optional filtering.
count_search_alerts
Gets the count of matching alerts for a search query.
create_alert
Creates a new alert in the database.
create_alert_escalation
Creates an escalation record for an alert.
get_alert_stats
Gets statistics about alerts for an organization grouped by severity and status.
get_alert_with_related_data
Retrieves a specific alert by its ID, along with related acknowledgments and escalations.
get_alerts_needing_escalation
Retrieves alerts that need escalation based on age and status.
get_org_active_alerts
Retrieves a list of active alerts for a specific organization.
get_recent_app_alerts
Retrieves a list of recent alerts for a specific application.
list_alerts
Retrieves a paginated list of alerts from the database.
resolve_alert
Resolves an alert by a specific user.
search_alerts
Retrieves alerts that match a specific search query.
update_alert_status
Updates the status of an alert.