Add Probes to a Monitoring Project
Command
Section titled “Command”php artisan uplinkr:project:add:probeDescription
Section titled “Description”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.
Options
Section titled “Options”| Option | Type | Required | Default | Description |
|---|---|---|---|---|
--url | string | Yes | - | Target URL to monitor |
--project | string | Yes | - | Project name to add the probe to |
--method | string | No | GET | HTTP method (GET, POST, PUT, DELETE, PATCH, etc.) |
--header | array | No | - | Additional headers (can be specified multiple times) |
--body | string | No | - | JSON body as string |
--latency | integer | No | - | Maximum time in milliseconds to wait for response |
--force | flag | No | - | Force execution without confirmation |
Usage Examples
Section titled “Usage Examples”Add a simple GET probe
Section titled “Add a simple GET probe”php artisan uplinkr:project:add:probe \ --url=https://example.com \ --project=my-projectAdd a POST probe with body
Section titled “Add a POST probe with body”php artisan uplinkr:project:add:probe \ --url=https://api.example.com/endpoint \ --project=my-api \ --method=POST \ --body='{"key":"value"}'Add probe with custom headers
Section titled “Add probe with custom headers”php artisan uplinkr:project:add:probe \ --url=https://api.example.com/protected \ --project=my-api \ --header="Authorization: Bearer token123" \ --header="Content-Type: application/json"Add probe with latency threshold
Section titled “Add probe with latency threshold”php artisan uplinkr:project:add:probe \ --url=https://example.com \ --project=my-project \ --latency=2000Force mode (skip confirmation)
Section titled “Force mode (skip confirmation)”php artisan uplinkr:project:add:probe \ --url=https://example.com \ --project=my-project \ --forceBehavior
Section titled “Behavior”- Validates URL and project name before execution
- Prompts for confirmation unless
--forceis used - Adds the probe configuration to the project’s settings
- Multiple probes can be added to the same project
Return Codes
Section titled “Return Codes”0(SUCCESS): Probe added successfully1(INVALID): Validation failed or process was aborted