Skip to content

Add Probes to a Monitoring Project

Terminal window
php artisan uplinkr:project:add:probe

Add a new probe command to the project. This allows you to configure monitoring for specific URLs with custom HTTP methods, headers, body data, and latency thresholds.

OptionTypeRequiredDefaultDescription
--urlstringYes-Target URL to monitor
--projectstringYes-Project name to add the probe to
--methodstringNoGETHTTP method (GET, POST, PUT, DELETE, PATCH, etc.)
--headerarrayNo-Additional headers (can be specified multiple times)
--bodystringNo-JSON body as string
--latencyintegerNo-Maximum time in milliseconds to wait for response
--forceflagNo-Force execution without confirmation
Terminal window
php artisan uplinkr:project:add:probe \
--url=https://example.com \
--project=my-project
Terminal window
php artisan uplinkr:project:add:probe \
--url=https://api.example.com/endpoint \
--project=my-api \
--method=POST \
--body='{"key":"value"}'
Terminal window
php artisan uplinkr:project:add:probe \
--url=https://api.example.com/protected \
--project=my-api \
--header="Authorization: Bearer token123" \
--header="Content-Type: application/json"
Terminal window
php artisan uplinkr:project:add:probe \
--url=https://example.com \
--project=my-project \
--latency=2000
Terminal window
php artisan uplinkr:project:add:probe \
--url=https://example.com \
--project=my-project \
--force
  • Validates URL and project name before execution
  • Prompts for confirmation unless --force is used
  • Adds the probe configuration to the project’s settings
  • Multiple probes can be added to the same project
  • 0 (SUCCESS): Probe added successfully
  • 1 (INVALID): Validation failed or process was aborted