Skip to content

Commit 7aa4442

Browse files
authored
Merge pull request #250 from checkly/paula/docs-check-description-cli
docs(constructs): add description property to CLI construct tables [TREE-735][show]
2 parents a285980 + 4600474 commit 7aa4442

38 files changed

Lines changed: 141 additions & 26 deletions

constructs/api-check.mdx

Lines changed: 3 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: "User creation succeeds (201) with valid ID.",
4345
activated: true,
4446
frequency: Frequency.EVERY_5M,
4547
locations: ["us-east-1", "eu-west-1"],
@@ -90,6 +92,7 @@ The API Check configuration consists of specific API Check options and inherited
9092
| Property | Type | Required | Default | Description |
9193
|----------|------|----------|---------|-------------|
9294
| `name` | `string` || - | Friendly name for your check |
95+
| `description` | `string` || `null` | A description of the check. Supports markdown. Max 500 characters |
9396
| `activated` | `boolean` || `true` | Whether the check is enabled |
9497
| `alertChannels` | `AlertChannel[]` || `[]` | Array of AlertChannel objects for notifications |
9598
| `alertEscalationPolicy` | `AlertEscalationPolicy` || - | Advanced alert settings |

constructs/browser-check.mdx

Lines changed: 3 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"],
@@ -76,6 +78,7 @@ The Browser Check configuration consists of specific Browser Check options and i
7678
| Property | Type | Required | Default | Description |
7779
|----------|------|----------|---------|-------------|
7880
| `name` | `string` || - | Friendly name for your check |
81+
| `description` | `string` || `null` | A description of the check. Supports markdown. Max 500 characters |
7982
| `activated` | `boolean` || `true` | Whether the check is enabled |
8083
| `alertChannels` | `AlertChannel[]` || `[]` | Array of AlertChannel objects for notifications |
8184
| `alertEscalationPolicy` | `AlertEscalationPolicy` || - | Advanced alert settings |

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 `api.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: 3 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: "Weekly newsletter job completes every 7 days.",
4345
activated: true,
4446
muted: false,
4547
period: 7,
@@ -73,6 +75,7 @@ The Heartbeat Monitoring configuration consists of specific heartbeat monitoring
7375
| Property | Type | Required | Default | Description |
7476
|----------|------|----------|---------|-------------|
7577
| `name` | `string` || - | Friendly name for your monitor |
78+
| `description` | `string` || `null` | A description of the monitor. Supports markdown. Max 500 characters |
7679
| `activated` | `boolean` || `true` | Whether the monitor is enabled |
7780
| `muted` | `boolean` || `false` | Whether alert notifications are muted |
7881
| `alertChannels` | `AlertChannel[]` || `[]` | Array of AlertChannel objects for notifications |

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: "Cloudflare DNS reachability and latency check.",
4648
activated: true,
4749
frequency: Frequency.EVERY_1M,
4850
maxPacketLossThreshold: 20, // percentage

constructs/multistep-check.mdx

Lines changed: 3 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: "Validates user signup and login flow.",
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: "Validates user signup and login flow.",
4446
activated: true,
4547
runtimeId: "2025.04",
4648
frequency: Frequency.EVERY_15M,
@@ -74,6 +76,7 @@ new MultiStepCheck("complex-multistep-check", {
7476
| Property | Type | Required | Default | Description |
7577
|----------|------|----------|---------|-------------|
7678
| `name` | `string` || - | Friendly name for your check |
79+
| `description` | `string` || `null` | A description of the check. Supports markdown. Max 500 characters |
7780
| `activated` | `boolean` || `true` | Whether the check is enabled |
7881
| `alertChannels` | `AlertChannel[]` || `[]` | Array of AlertChannel objects for notifications |
7982
| `alertEscalationPolicy` | `AlertEscalationPolicy` || - | Advanced alert settings |

constructs/playwright-check.mdx

Lines changed: 3 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",
@@ -73,6 +75,7 @@ The Playwright Check Suite configuration consists of specific Playwright Check S
7375
| Property | Type | Required | Default | Description |
7476
|----------|------|----------|---------|-------------|
7577
| `name` | `string` || - | Friendly name for your check |
78+
| `description` | `string` || `null` | A description of the check. Supports markdown. Max 500 characters |
7679
| `activated` | `boolean` || `true` | Whether the check is enabled |
7780
| `alertChannels` | `AlertChannel[]` || `[]` | Array of AlertChannel objects for notifications |
7881
| `alertEscalationPolicy` | `AlertEscalationPolicy` || - | Advanced alert settings |

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 **Redis service** is reachable and responsive.",
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: "**API health check** returns 200.",
4951
activated: true,
5052
frequency: Frequency.EVERY_5M,
5153
locations: ["us-east-1", "eu-west-1"],

detect/synthetic-monitoring/api-checks/overview.mdx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,17 @@ sidebarTitle: 'Overview'
88
</Tip>
99

1010
<Frame>
11-
<img
12-
className="block dark:hidden"
13-
src="/images/api-check-light.png"
14-
alt="Light mode interface"
11+
<img
12+
className="block dark:hidden"
13+
src="/images/api-check-light.png"
14+
alt="API check overview"
15+
style={{width: "100%"}}
1516
/>
16-
<img
17-
className="hidden dark:block"
18-
src="/images/api-check-dark.png"
19-
alt="Dark mode interface"
17+
<img
18+
className="hidden dark:block"
19+
src="/images/api-check-dark.png"
20+
alt="API check overview"
21+
style={{width: "100%"}}
2022
/>
2123
</Frame>
2224

0 commit comments

Comments
 (0)