Run Probes for a Single Project
Command
Section titled “Command”php artisan uplinkr:project:run-selected-probeDescription
Section titled “Description”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.
Options
Section titled “Options”| Option | Type | Required | Description |
|---|---|---|---|
--project | string | Yes | Name of the project to run probes for |
--force | flag | No | Force execution without confirmation |
Usage Examples
Section titled “Usage Examples”Run probes for a specific project
Section titled “Run probes for a specific project”php artisan uplinkr:project:run-selected-probe --project=my-projectForce mode (skip confirmation)
Section titled “Force mode (skip confirmation)”php artisan uplinkr:project:run-selected-probe --project=my-project --forceSchedule specific project monitoring
Section titled “Schedule specific project monitoring”// In app/Console/Kernel.php or routes/console.phpSchedule::command('uplinkr:project:run-selected-probe --project=critical-service --force') ->everyMinute();Behavior
Section titled “Behavior”- 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(directexecution or queuedjobdispatch) - Displays results for each probe execution
- Stores probe results in the file system
- Shows warnings if the project has no probes configured
Output
Section titled “Output”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
Use Cases
Section titled “Use Cases”- 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
Return Codes
Section titled “Return Codes”0(SUCCESS): Probes executed successfully (or project not found/disabled - check logs)1(INVALID): Validation failed or process was aborted