Skip to content

Evaluate Alert Trigger Decisions

Terminal window
php artisan uplinkr:project:alert:decision

Decides whether an alert should be triggered for a project based on probe results and alert configuration. This command analyzes probe failures and slow responses to determine if notification thresholds have been met.

OptionTypeRequiredDescription
--projectstringNoName of the project to check for alerts (if omitted, checks all projects)
Terminal window
php artisan uplinkr:project:alert:decision --project=my-project
Terminal window
php artisan uplinkr:project:alert:decision

The command displays alert decisions with details:

Found 2 alert decision(s) for project: my-project
my-project | https://example.com | Too many failures | Count: 5
my-project | https://api.example.com | Too many slow responses | Count: 3

Each line shows:

  • Project name (magenta)
  • Probe URL (cyan)
  • Reason for alert (yellow)
  • Failure/slow response count (red)
  • Analyzes probe results against configured alert thresholds
  • Checks for:
    • Consecutive failures exceeding trigger_after_failures
    • Slow responses exceeding trigger_after_slow
  • Considers cooldown periods to prevent alert spam
  • Logs results to the application log
  • Sends notifications grouped by project and alert configuration
  • 0 (SUCCESS): Command completed successfully (regardless of whether alerts were found)