Skip to content

Commit ada317e

Browse files
committed
docs(constructs): add description to basic examples for all check/monitor types
1 parent 5d1b79a commit ada317e

File tree

9 files changed

+9
-0
lines changed

9 files changed

+9
-0
lines changed

constructs/api-check.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import { ApiCheck } from "checkly/constructs"
2828

2929
new ApiCheck("hello-api-1", {
3030
name: "Hello API Check",
31+
description: "Verifies the `/hello` endpoint returns a **successful** response.",
3132
request: {
3233
method: "GET",
3334
url: "https://api.checklyhq.com/hello",

constructs/browser-check.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import * as path from "path"
2828

2929
new BrowserCheck("browser-check-1", {
3030
name: "Browser check #1",
31+
description: "Loads the **home page** and asserts key elements are visible.",
3132
frequency: Frequency.EVERY_10M,
3233
locations: ["us-east-1", "eu-west-1"],
3334
code: {

constructs/dns-monitor.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import { Frequency, DnsAssertionBuilder, DnsMonitor } from "checkly/constructs"
2929

3030
new DnsMonitor("dns-monitor", {
3131
name: "DNS A Record Monitor",
32+
description: "Asserts `example.com` A record resolves to the **expected IP**.",
3233
activated: true,
3334
maxResponseTime: 1000,
3435
degradedResponseTime: 500,

constructs/heartbeat-monitor.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import { HeartbeatMonitor } from "checkly/constructs"
2828

2929
new HeartbeatMonitor("daily-backup-heartbeat", {
3030
name: "Daily Backup Job",
31+
description: "Expects a ping every **24h** from the nightly DB backup cron.",
3132
period: 1,
3233
periodUnit: "days",
3334
grace: 2,

constructs/icmp-monitor.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import { Frequency, IcmpMonitor } from "checkly/constructs"
2929

3030
new IcmpMonitor('icmp-welcome', {
3131
name: 'Welcome Site Reachability',
32+
description: "Pings `welcome.checklyhq.com` to verify **host reachability**.",
3233
frequency: Frequency.EVERY_1M,
3334
request: {
3435
hostname: 'welcome.checklyhq.com',

constructs/multistep-check.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import * as path from "path"
2828

2929
new MultiStepCheck("multistep-check-1", {
3030
name: "Multistep Check #1",
31+
description: "Runs a **multi-step** API workflow end-to-end.",
3132
locations: ["us-east-1", "eu-west-1"],
3233
code: {
3334
entrypoint: path.join(__dirname, "multi-step.spec.ts"),

constructs/playwright-check.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import { PlaywrightCheck } from "checkly/constructs"
3030

3131
new PlaywrightCheck("critical-e2e-monitor", {
3232
name: "Critical E2E Monitor",
33+
description: "Runs the **critical path** e2e suite against production.",
3334
playwrightConfigPath: "./playwright.config.ts",
3435
})
3536
```

constructs/tcp-monitor.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import { TcpAssertionBuilder, TcpMonitor } from "checkly/constructs"
3030

3131
new TcpMonitor("database-tcp-1", {
3232
name: "Database Connection Check",
33+
description: "Verifies **PostgreSQL** on `db.example.com:5432` accepts connections.",
3334
activated: true,
3435
maxResponseTime: 5000,
3536
degradedResponseTime: 2000,

constructs/url-monitor.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import { Frequency, UrlAssertionBuilder, UrlMonitor } from "checkly/constructs"
3030

3131
new UrlMonitor("url-monitor", {
3232
name: "Url Monitor",
33+
description: "[httpbin.org/get](https://httpbin.org/get) should return **200** status code.",
3334
activated: true,
3435
maxResponseTime: 10000,
3536
degradedResponseTime: 5000,

0 commit comments

Comments
 (0)