Prerequisites
Prerequisites
Before creating URL Monitors, ensure you have:
- An initialized Checkly CLI project
- URLs or HTTP endpoints you want to monitor
- Understanding of HTTP status codes and response behavior
- Network access to the URLs you want to monitor
Configuration
The URL Monitoring configuration consists of specific URL monitoring options and inherited general monitoring options.- URL Monitor
- General Monitor
UrlMonitor Options
object
required
HTTP request configuration that defines the URL to monitor and how to handle the request.Usage:Parameters:Use cases: Website availability, API health checks, service uptime monitoring.
Examples:
- Simple Website
- API Endpoint
- Development Environment
number
default:"3000"
Response time threshold in milliseconds for marking the monitor as degraded (warning state).Usage:Use cases: Early performance warnings, gradual degradation detection.
number
default:"5000"
Maximum response time in milliseconds before the monitor is marked as failed.Usage:Examples:Use cases: Performance monitoring, SLA compliance, user experience optimization.
UrlMonitor Assertions
To define assertions for the request of an UrlMonitor you should use the UrlAssertionBuilder. The following source is available for URL monitor assertions:
statusCode(): Assert the HTTP status code for the HTTP response, e.g. 200 or 201
- Assert the status code of a HTTP request
General Monitor Options
string
required
Friendly name for your URL monitor that will be displayed in the Checkly dashboard and used in notifications.Usage:
Frequency
How often the URL monitor should run. Use the Examples:Available frequencies:
Frequency enum to set the check interval.Usage:- High Frequency
- Standard Monitoring
- Low Frequency
EVERY_10S, EVERY_20S, EVERY_30S, EVERY_1M, EVERY_2M, EVERY_5M, EVERY_10M, EVERY_15M, EVERY_30M, EVERY_1H, EVERY_2H, EVERY_3H, EVERY_6H, EVERY_12H, EVERY_24Hstring[]
default:"[]"
Array of public location codes where the URL monitor should run from. Multiple locations provide geographic coverage.Usage:Examples:Use cases: Global performance monitoring, regional compliance, CDN performance validation.
- Global Coverage
- Regional Focus
boolean
default:"true"
Whether the URL monitor is enabled and will run according to its schedule.Usage:Examples:
CheckIntent
Describe what your check is intended to verify and the behavior that should be preserved. Checkly uses intent for root cause analysis across all check types. It is separate from The object accepts the following fields:
description and does not replace executable assertions.Intent is used for automatic repair only for Browser and Multistep Checks.
Each constraint has a required
type and statement:REQUIRED_OUTCOME: an outcome the check must verify.MUST_PRESERVE: behavior or an assertion that should be preserved when repairing the check.
statement must contain 1–1,000 characters after trimming. You can specify at most 20 constraints of each type. The CLI trims leading and trailing whitespace from the goal and statements and rejects unknown fields.For example, configure intent on a Browser Check:Examples
- Website Availability
- API Health Check
- CDN Performance
- Redirect Chain
- SSL Certificate Check
- Multiple Status Codes
URL monitors only support status code assertions. For more complex assertions on response bodies, headers, or response time, use API checks instead.