Skip to content

Run Probes for a Single Project

Terminal window
php artisan uplinkr:project:run-selected-probe

Run all probes for a selected project defined in settings.json. This allows you to monitor a single project without running probes for all projects.

OptionTypeRequiredDescription
--projectstringYesName of the project to run probes for
--forceflagNoForce execution without confirmation
Terminal window
php artisan uplinkr:project:run-selected-probe --project=my-project
Terminal window
php artisan uplinkr:project:run-selected-probe --project=my-project --force
// In app/Console/Kernel.php or routes/console.php
Schedule::command('uplinkr:project:run-selected-probe --project=critical-service --force')
->everyMinute();
  • Validates the project name
  • Checks if the project exists
  • Skips execution if project is disabled
  • Runs all configured probes for the specified project
  • Respects probes.execution_mode (direct execution or queued job dispatch)
  • Displays results for each probe execution
  • Stores probe results in the file system
  • Shows warnings if the project has no probes configured

The command provides detailed output:

  • Confirmation of the project to monitor
  • Number of probes to execute
  • Results for each probe (success/failure, response time, status code)
  • Final success or error message
  • Targeted Monitoring: Monitor specific critical services more frequently
  • Testing: Test probe configuration for a single project
  • Troubleshooting: Debug issues with specific project probes
  • Priority Services: Schedule high-priority projects separately from others
  • 0 (SUCCESS): Probes executed successfully (or project not found/disabled - check logs)
  • 1 (INVALID): Validation failed or process was aborted