Skip to content

Commit fd4cf6a

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

File tree

9 files changed

+18
-0
lines changed

9 files changed

+18
-0
lines changed

constructs/api-check.mdx

Lines changed: 2 additions & 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",
@@ -40,6 +41,7 @@ import { ApiCheck, AssertionBuilder, Frequency } from "checkly/constructs"
4041

4142
new ApiCheck("advanced-api-check", {
4243
name: "Advanced API Check",
44+
description: "Verifies the `/hello` endpoint returns a **successful** response.",
4345
activated: true,
4446
frequency: Frequency.EVERY_5M,
4547
locations: ["us-east-1", "eu-west-1"],

constructs/browser-check.mdx

Lines changed: 2 additions & 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: {
@@ -42,6 +43,7 @@ import * as path from "path"
4243

4344
new BrowserCheck("advanced-browser-check", {
4445
name: "Advanced Browser Check",
46+
description: "Loads the **home page** and asserts key elements are visible.",
4547
activated: true,
4648
frequency: Frequency.EVERY_5M,
4749
locations: ["us-east-1", "eu-west-1"],

constructs/dns-monitor.mdx

Lines changed: 2 additions & 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,
@@ -49,6 +50,7 @@ import { Frequency, DnsAssertionBuilder, DnsMonitor } from "checkly/constructs"
4950

5051
new DnsMonitor("advanced-dns-monitor", {
5152
name: "Advanced DNS Monitor",
53+
description: "Asserts `example.com` A record resolves to the **expected IP**.",
5254
activated: true,
5355
frequency: Frequency.EVERY_5M,
5456
locations: ["us-east-1", "eu-central-1"],

constructs/heartbeat-monitor.mdx

Lines changed: 2 additions & 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,
@@ -40,6 +41,7 @@ import { HeartbeatMonitor } from "checkly/constructs"
4041

4142
new HeartbeatMonitor("newsletter-heartbeat", {
4243
name: "Weekly Newsletter Job",
44+
description: "Expects a ping every **24h** from the nightly DB backup cron.",
4345
activated: true,
4446
muted: false,
4547
period: 7,

constructs/icmp-monitor.mdx

Lines changed: 2 additions & 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',
@@ -43,6 +44,7 @@ import { Frequency, IcmpAssertionBuilder, IcmpMonitor } from "checkly/constructs
4344

4445
new IcmpMonitor('cloudflare-dns-icmp', {
4546
name: 'Cloudflare DNS ICMP Monitor',
47+
description: "Pings `welcome.checklyhq.com` to verify **host reachability**.",
4648
activated: true,
4749
frequency: Frequency.EVERY_1M,
4850
maxPacketLossThreshold: 20, // percentage

constructs/multistep-check.mdx

Lines changed: 2 additions & 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"),
@@ -41,6 +42,7 @@ import * as path from "path"
4142

4243
new MultiStepCheck("complex-multistep-check", {
4344
name: "Complex User Journey",
45+
description: "Runs a **multi-step** API workflow end-to-end.",
4446
activated: true,
4547
runtimeId: "2025.04",
4648
frequency: Frequency.EVERY_15M,

constructs/playwright-check.mdx

Lines changed: 2 additions & 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
```
@@ -39,6 +40,7 @@ import { PlaywrightCheck } from "checkly/constructs"
3940

4041
new PlaywrightCheck("critical-e2e-monitor", {
4142
name: "Critical E2E Monitor",
43+
description: "Runs the **critical path** e2e suite against production.",
4244
include: ['.npmrc','test-files/**'],
4345
playwrightConfigPath: "./playwright.config.ts",
4446
installCommand: "npm ci",

constructs/tcp-monitor.mdx

Lines changed: 2 additions & 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,
@@ -47,6 +48,7 @@ import { Frequency, TcpAssertionBuilder, TcpMonitor } from "checkly/constructs"
4748

4849
new TcpMonitor("redis-tcp-1", {
4950
name: "Redis Service Check",
51+
description: "Verifies **PostgreSQL** on `db.example.com:5432` accepts connections.",
5052
activated: true,
5153
frequency: Frequency.EVERY_5M,
5254
locations: ["us-east-1", "eu-west-1"],

constructs/url-monitor.mdx

Lines changed: 2 additions & 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,
@@ -46,6 +47,7 @@ import { Frequency, UrlAssertionBuilder, UrlMonitor } from "checkly/constructs"
4647

4748
new UrlMonitor("advanced-url-monitor", {
4849
name: "Advanced URL Monitor",
50+
description: "[httpbin.org/get](https://httpbin.org/get) should return **200** status code.",
4951
activated: true,
5052
frequency: Frequency.EVERY_5M,
5153
locations: ["us-east-1", "eu-west-1"],

0 commit comments

Comments
 (0)