Skip to content

Configure Project Alert Rules

Terminal window
php artisan uplinkr:project:alerts

Updates alert settings for a project. This command allows you to configure when and how alerts are triggered based on probe failures and slow responses.

OptionTypeRequiredDefaultDescription
--projectstringYes-Name of the project to update alert settings
--enabledbooleanNotrueEnable or disable alerts (true/false)
--failuresintegerYes-Trigger alert after X consecutive failures
--cooldownintegerYes-Cooldown period in minutes before triggering another alert
--thresholdintegerYes-Latency threshold in milliseconds (responses slower than this are considered “slow”)
--slowintegerYes-Trigger alert after X consecutive slow responses
--channelsstringYes-Comma-separated list of notification channels
--forceflagNo-Force execution without confirmation
Terminal window
php artisan uplinkr:project:alerts \
--project=my-project \
--failures=3 \
--cooldown=30 \
--threshold=2000 \
--slow=5 \
--channels=mail,log
Terminal window
php artisan uplinkr:project:alerts \
--project=my-project \
--enabled=false \
--failures=3 \
--cooldown=30 \
--threshold=2000 \
--slow=5 \
--channels=mail
Terminal window
php artisan uplinkr:project:alerts \
--project=my-project \
--failures=3 \
--cooldown=30 \
--threshold=2000 \
--slow=5 \
--channels=mail \
--force
  • failures: Number of consecutive failed probes before triggering an alert
  • cooldown: Minimum time (in minutes) between alerts for the same issue
  • threshold: Response time (in ms) that defines a “slow” response
  • slow: Number of consecutive slow responses before triggering an alert
  • channels: Laravel notification channels to use (e.g., mail, slack, discord)
  • Validates all required parameters
  • Prompts for confirmation unless --force is used
  • Updates the project’s alert configuration in settings.json
  • All numeric values must be at least 1
  • 0 (SUCCESS): Alert settings updated successfully
  • 1 (INVALID): Validation failed or process was aborted
  • 2 (FAILURE): Failed to update alert settings