checkly 8.20.0 → 8.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-context/public-skills/checkly/SKILL.md +22 -2
- package/dist/constructs/agentic-check-codegen.js +1 -0
- package/dist/constructs/agentic-check-codegen.js.map +1 -1
- package/dist/constructs/agentic-check.d.ts +37 -0
- package/dist/constructs/api-check-bundle.d.ts +44 -0
- package/dist/constructs/api-check.d.ts +40 -0
- package/dist/constructs/browser-check-bundle.d.ts +41 -0
- package/dist/constructs/browser-check.d.ts +37 -0
- package/dist/constructs/check-codegen.d.ts +22 -0
- package/dist/constructs/check-codegen.js +20 -0
- package/dist/constructs/check-codegen.js.map +1 -1
- package/dist/constructs/check.d.ts +151 -1
- package/dist/constructs/check.js +112 -0
- package/dist/constructs/check.js.map +1 -1
- package/dist/constructs/dns-monitor.d.ts +40 -1
- package/dist/constructs/dns-monitor.js +7 -0
- package/dist/constructs/dns-monitor.js.map +1 -1
- package/dist/constructs/grpc-monitor.d.ts +40 -1
- package/dist/constructs/grpc-monitor.js +7 -0
- package/dist/constructs/grpc-monitor.js.map +1 -1
- package/dist/constructs/heartbeat-monitor-codegen.js +3 -1
- package/dist/constructs/heartbeat-monitor-codegen.js.map +1 -1
- package/dist/constructs/icmp-monitor.d.ts +40 -1
- package/dist/constructs/icmp-monitor.js +7 -0
- package/dist/constructs/icmp-monitor.js.map +1 -1
- package/dist/constructs/monitor.d.ts +32 -0
- package/dist/constructs/multi-step-check-bundle.d.ts +39 -0
- package/dist/constructs/multi-step-check.d.ts +36 -0
- package/dist/constructs/playwright-check-bundle.d.ts +44 -0
- package/dist/constructs/playwright-check.d.ts +37 -0
- package/dist/constructs/ssl-monitor-codegen.js +3 -1
- package/dist/constructs/ssl-monitor-codegen.js.map +1 -1
- package/dist/constructs/ssl-monitor.d.ts +50 -0
- package/dist/constructs/tcp-monitor.d.ts +40 -1
- package/dist/constructs/tcp-monitor.js +7 -0
- package/dist/constructs/tcp-monitor.js.map +1 -1
- package/dist/constructs/traceroute-monitor-codegen.js +3 -1
- package/dist/constructs/traceroute-monitor-codegen.js.map +1 -1
- package/dist/constructs/traceroute-monitor.d.ts +36 -0
- package/dist/constructs/url-monitor.d.ts +46 -1
- package/dist/constructs/url-monitor.js +4 -0
- package/dist/constructs/url-monitor.js.map +1 -1
- package/dist/helpers/result-assets.js +19 -6
- package/dist/helpers/result-assets.js.map +1 -1
- package/dist/rest/api.js +5 -0
- package/dist/rest/api.js.map +1 -1
- package/dist/rest/retry.d.ts +55 -0
- package/dist/rest/retry.js +169 -0
- package/dist/rest/retry.js.map +1 -0
- package/oclif.manifest.json +601 -601
- package/package.json +3 -2
|
@@ -1,14 +1,34 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: checkly
|
|
3
3
|
description: Set up, create, test and manage monitoring checks using the Checkly CLI. Use when working with API Checks, Browser Checks, URL Monitors, ICMP Monitors, Playwright Check Suites, Heartbeat Monitors, Alert Channels, Dashboards, or Status Pages. Access Checkly account plan, entitlements, feature limits, members, and pending invites. Includes generic API pass-through (`checkly api`) for endpoints without dedicated commands.
|
|
4
|
-
allowed-tools: Bash(npx
|
|
4
|
+
allowed-tools: Bash(npx checkly:*), Bash(npm install:*)
|
|
5
5
|
metadata:
|
|
6
6
|
author: checkly
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Checkly
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
## CLI or MCP? Establish your path first
|
|
12
|
+
|
|
13
|
+
This skill drives the `npx checkly` CLI in a shell. The Checkly MCP server covers a subset — live account work: check status and results, test sessions, root cause analyses (RCA), triggering existing checks, and incidents. Only the CLI can author, test, and deploy Monitoring as Code.
|
|
14
|
+
|
|
15
|
+
Before your first command that talks to the Checkly API, establish your path:
|
|
16
|
+
|
|
17
|
+
1. **No shell access** (chat-only session): stop following this skill and use the Checkly MCP tools if they're connected; if not, tell the user you need either a shell or the Checkly MCP server to work with Checkly.
|
|
18
|
+
2. **Shell access**: run `npx checkly whoami` once.
|
|
19
|
+
- **Succeeds** → use the CLI for everything and keep following this skill, even when Checkly MCP tools are also connected.
|
|
20
|
+
- **Fails with an auth error** → route by task:
|
|
21
|
+
- *Authoring, testing, or deploying checks*: MCP cannot do this. Ask the user to authenticate — `npx checkly login`, or `CHECKLY_API_KEY` + `CHECKLY_ACCOUNT_ID` in the environment or `.env` — then re-run `whoami`. Don't work around a missing login.
|
|
22
|
+
- *Live account work* (status, results, test sessions, RCA, triggering, incidents): fall back to the Checkly MCP tools if they're connected. Call the MCP `whoami` tool first and tell the user which account you're operating on. If MCP isn't connected either, ask the user to authenticate the CLI as above.
|
|
23
|
+
|
|
24
|
+
Two rules that survive any fallback:
|
|
25
|
+
|
|
26
|
+
- **Account parity.** CLI auth and the MCP session can point at different accounts — users often belong to several. Never mix CLI and MCP results in one task without confirming both use the same account ID, and always name the account after a fallback.
|
|
27
|
+
- **Writes still need confirmation.** The CLI's confirmation protocol (below) does not travel with you to MCP. If you fall back for a write action (e.g. creating an incident), present the intended change and get the user's approval before calling the tool.
|
|
28
|
+
|
|
29
|
+
## Always load the current action list first
|
|
30
|
+
|
|
31
|
+
**Required:** Before answering any Checkly question, run `npx checkly skills` to get the current and up-to-date action list. Do not rely on memory or prior context — the CLI is the source of truth and actions might change between releases. `npx checkly skills` runs locally — it needs no authentication or API access, so it works before you've established your path above.
|
|
12
32
|
|
|
13
33
|
Then run `npx checkly skills <action>` to load up-to-date details for the action you need.
|
|
14
34
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentic-check-codegen.js","sourceRoot":"","sources":["../../src/constructs/agentic-check-codegen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAW,MAAM,6BAA6B,CAAA;AAC9D,OAAO,EAAE,IAAI,EAAE,KAAK,EAAsB,MAAM,uBAAuB,CAAA;AACvE,OAAO,EAAE,eAAe,EAAiB,MAAM,oBAAoB,CAAA;AAmBnE,MAAM,S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AC,CAAA;oBAC5E,IAAI,iBAAiB,KAAK,SAAS,EAAE,CAAC;wBACpC,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,CAAA;oBACnD,CAAC;oBAED,eAAe,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE;wBAC9D,iBAAiB,EAAE,IAAI;wBACvB,UAAU,EAAE,IAAI;qBACjB,CAAC,CAAA;gBACJ,CAAC,CAAC,CAAA;YACJ,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAC,CAAA;IACL,CAAC;CACF;AAED;;;;GAIG;AACH,SAAS,uBAAuB,CAC9B,IAA+C;IAE/C,IAAI,CAAC,IAAI;QAAE,OAAO,SAAS,CAAA;IAE3B,MAAM,MAAM,GAAG,CAAC,IAAI,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;IAE5D,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxB,OAAO,SAAS,CAAA;IAClB,CAAC;IAED,OAAO,OAAO,CAAC,EAAE;QACf,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACtB,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,YAAY,CAAC,EAAE;gBACrC,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;oBAC3B,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;gBAC5B,CAAC;YACH,CAAC,CAAC,CAAA;QACJ,CAAC;IACH,CAAC,CAAA;AACH,CAAC"}
|
|
@@ -124,6 +124,43 @@ export declare class AgenticCheck extends Check {
|
|
|
124
124
|
description: string;
|
|
125
125
|
notifySubscribers: boolean;
|
|
126
126
|
} | undefined;
|
|
127
|
+
intent?: undefined;
|
|
128
|
+
description?: string | undefined;
|
|
129
|
+
name: string;
|
|
130
|
+
} | {
|
|
131
|
+
checkType: "AGENTIC";
|
|
132
|
+
prompt: string;
|
|
133
|
+
agentRuntime: {
|
|
134
|
+
skills: string[];
|
|
135
|
+
};
|
|
136
|
+
activated: boolean | undefined;
|
|
137
|
+
muted: boolean | undefined;
|
|
138
|
+
shouldFail: boolean | undefined;
|
|
139
|
+
locations: (keyof import("../index.js").Region)[] | undefined;
|
|
140
|
+
privateLocations: undefined;
|
|
141
|
+
tags: string[] | undefined;
|
|
142
|
+
frequency: number | undefined;
|
|
143
|
+
frequencyOffset: number | undefined;
|
|
144
|
+
groupId: import("./ref.js").Ref | null;
|
|
145
|
+
retryStrategy: import("./retry-strategy.js").LinearRetryStrategy | import("./retry-strategy.js").ExponentialRetryStrategy | import("./retry-strategy.js").FixedRetryStrategy | import("./retry-strategy.js").SingleRetryRetryStrategy | null | undefined;
|
|
146
|
+
doubleCheck: boolean | undefined;
|
|
147
|
+
alertSettings: import("./alert-escalation-policy.js").AlertEscalation | undefined;
|
|
148
|
+
useGlobalAlertSettings: boolean | undefined;
|
|
149
|
+
runParallel: boolean | undefined;
|
|
150
|
+
triggerIncident: {
|
|
151
|
+
serviceId: import("./ref.js").Ref;
|
|
152
|
+
severity: "MINOR" | "MEDIUM" | "MAJOR" | "CRITICAL";
|
|
153
|
+
name: string;
|
|
154
|
+
description: string;
|
|
155
|
+
notifySubscribers: boolean;
|
|
156
|
+
} | undefined;
|
|
157
|
+
intent: {
|
|
158
|
+
goal: string;
|
|
159
|
+
constraints: {
|
|
160
|
+
type: import("./check.js").CheckIntentConstraintType;
|
|
161
|
+
statement: string;
|
|
162
|
+
}[];
|
|
163
|
+
} | null;
|
|
127
164
|
description?: string | undefined;
|
|
128
165
|
name: string;
|
|
129
166
|
};
|
|
@@ -52,6 +52,50 @@ export declare class ApiCheckBundle implements Bundle {
|
|
|
52
52
|
description: string;
|
|
53
53
|
notifySubscribers: boolean;
|
|
54
54
|
} | undefined;
|
|
55
|
+
intent?: undefined;
|
|
56
|
+
description?: string | undefined;
|
|
57
|
+
name: string;
|
|
58
|
+
} | {
|
|
59
|
+
localSetupScript: string | undefined;
|
|
60
|
+
setupScriptPath: string | undefined;
|
|
61
|
+
setupScriptDependencies: number[] | undefined;
|
|
62
|
+
localTearDownScript: string | undefined;
|
|
63
|
+
tearDownScriptPath: string | undefined;
|
|
64
|
+
tearDownScriptDependencies: number[] | undefined;
|
|
65
|
+
checkType: string;
|
|
66
|
+
request: import("./api-request.js").Request;
|
|
67
|
+
degradedResponseTime: number | undefined;
|
|
68
|
+
maxResponseTime: number | undefined;
|
|
69
|
+
runtimeId: string | undefined;
|
|
70
|
+
environmentVariables: import("./key-value-pair.js").default[] | undefined;
|
|
71
|
+
activated: boolean | undefined;
|
|
72
|
+
muted: boolean | undefined;
|
|
73
|
+
shouldFail: boolean | undefined;
|
|
74
|
+
locations: (keyof import("../index.js").Region)[] | undefined;
|
|
75
|
+
privateLocations: undefined;
|
|
76
|
+
tags: string[] | undefined;
|
|
77
|
+
frequency: number | undefined;
|
|
78
|
+
frequencyOffset: number | undefined;
|
|
79
|
+
groupId: import("./ref.js").Ref | null;
|
|
80
|
+
retryStrategy: import("./retry-strategy.js").LinearRetryStrategy | import("./retry-strategy.js").ExponentialRetryStrategy | import("./retry-strategy.js").FixedRetryStrategy | import("./retry-strategy.js").SingleRetryRetryStrategy | null | undefined;
|
|
81
|
+
doubleCheck: boolean | undefined;
|
|
82
|
+
alertSettings: import("./alert-escalation-policy.js").AlertEscalation | undefined;
|
|
83
|
+
useGlobalAlertSettings: boolean | undefined;
|
|
84
|
+
runParallel: boolean | undefined;
|
|
85
|
+
triggerIncident: {
|
|
86
|
+
serviceId: import("./ref.js").Ref;
|
|
87
|
+
severity: "MINOR" | "MEDIUM" | "MAJOR" | "CRITICAL";
|
|
88
|
+
name: string;
|
|
89
|
+
description: string;
|
|
90
|
+
notifySubscribers: boolean;
|
|
91
|
+
} | undefined;
|
|
92
|
+
intent: {
|
|
93
|
+
goal: string;
|
|
94
|
+
constraints: {
|
|
95
|
+
type: import("./check.js").CheckIntentConstraintType;
|
|
96
|
+
statement: string;
|
|
97
|
+
}[];
|
|
98
|
+
} | null;
|
|
55
99
|
description?: string | undefined;
|
|
56
100
|
name: string;
|
|
57
101
|
};
|
|
@@ -187,6 +187,46 @@ export declare class ApiCheck extends RuntimeCheck {
|
|
|
187
187
|
description: string;
|
|
188
188
|
notifySubscribers: boolean;
|
|
189
189
|
} | undefined;
|
|
190
|
+
intent?: undefined;
|
|
191
|
+
description?: string | undefined;
|
|
192
|
+
name: string;
|
|
193
|
+
} | {
|
|
194
|
+
checkType: string;
|
|
195
|
+
request: Request;
|
|
196
|
+
localSetupScript: string | undefined;
|
|
197
|
+
localTearDownScript: string | undefined;
|
|
198
|
+
degradedResponseTime: number | undefined;
|
|
199
|
+
maxResponseTime: number | undefined;
|
|
200
|
+
runtimeId: string | undefined;
|
|
201
|
+
environmentVariables: import("./key-value-pair.js").default[] | undefined;
|
|
202
|
+
activated: boolean | undefined;
|
|
203
|
+
muted: boolean | undefined;
|
|
204
|
+
shouldFail: boolean | undefined;
|
|
205
|
+
locations: (keyof import("../index.js").Region)[] | undefined;
|
|
206
|
+
privateLocations: undefined;
|
|
207
|
+
tags: string[] | undefined;
|
|
208
|
+
frequency: number | undefined;
|
|
209
|
+
frequencyOffset: number | undefined;
|
|
210
|
+
groupId: import("./ref.js").Ref | null;
|
|
211
|
+
retryStrategy: import("./retry-strategy.js").LinearRetryStrategy | import("./retry-strategy.js").ExponentialRetryStrategy | import("./retry-strategy.js").FixedRetryStrategy | import("./retry-strategy.js").SingleRetryRetryStrategy | null | undefined;
|
|
212
|
+
doubleCheck: boolean | undefined;
|
|
213
|
+
alertSettings: import("./alert-escalation-policy.js").AlertEscalation | undefined;
|
|
214
|
+
useGlobalAlertSettings: boolean | undefined;
|
|
215
|
+
runParallel: boolean | undefined;
|
|
216
|
+
triggerIncident: {
|
|
217
|
+
serviceId: import("./ref.js").Ref;
|
|
218
|
+
severity: "MINOR" | "MEDIUM" | "MAJOR" | "CRITICAL";
|
|
219
|
+
name: string;
|
|
220
|
+
description: string;
|
|
221
|
+
notifySubscribers: boolean;
|
|
222
|
+
} | undefined;
|
|
223
|
+
intent: {
|
|
224
|
+
goal: string;
|
|
225
|
+
constraints: {
|
|
226
|
+
type: import("./check.js").CheckIntentConstraintType;
|
|
227
|
+
statement: string;
|
|
228
|
+
}[];
|
|
229
|
+
} | null;
|
|
190
230
|
description?: string | undefined;
|
|
191
231
|
name: string;
|
|
192
232
|
};
|
|
@@ -53,6 +53,47 @@ export declare class BrowserCheckBundle implements Bundle {
|
|
|
53
53
|
description: string;
|
|
54
54
|
notifySubscribers: boolean;
|
|
55
55
|
} | undefined;
|
|
56
|
+
intent?: undefined;
|
|
57
|
+
description?: string | undefined;
|
|
58
|
+
name: string;
|
|
59
|
+
} | {
|
|
60
|
+
script: string;
|
|
61
|
+
scriptPath: string | undefined;
|
|
62
|
+
dependencies: number[] | undefined;
|
|
63
|
+
snapshots: Snapshot[] | undefined;
|
|
64
|
+
checkType: string;
|
|
65
|
+
sslCheckDomain: string | null;
|
|
66
|
+
playwrightConfig: import("./playwright-config.js").PlaywrightConfig | undefined;
|
|
67
|
+
runtimeId: string | undefined;
|
|
68
|
+
environmentVariables: import("./key-value-pair.js").default[] | undefined;
|
|
69
|
+
activated: boolean | undefined;
|
|
70
|
+
muted: boolean | undefined;
|
|
71
|
+
shouldFail: boolean | undefined;
|
|
72
|
+
locations: (keyof import("../index.js").Region)[] | undefined;
|
|
73
|
+
privateLocations: undefined;
|
|
74
|
+
tags: string[] | undefined;
|
|
75
|
+
frequency: number | undefined;
|
|
76
|
+
frequencyOffset: number | undefined;
|
|
77
|
+
groupId: import("./ref.js").Ref | null;
|
|
78
|
+
retryStrategy: import("./retry-strategy.js").LinearRetryStrategy | import("./retry-strategy.js").ExponentialRetryStrategy | import("./retry-strategy.js").FixedRetryStrategy | import("./retry-strategy.js").SingleRetryRetryStrategy | null | undefined;
|
|
79
|
+
doubleCheck: boolean | undefined;
|
|
80
|
+
alertSettings: import("./alert-escalation-policy.js").AlertEscalation | undefined;
|
|
81
|
+
useGlobalAlertSettings: boolean | undefined;
|
|
82
|
+
runParallel: boolean | undefined;
|
|
83
|
+
triggerIncident: {
|
|
84
|
+
serviceId: import("./ref.js").Ref;
|
|
85
|
+
severity: "MINOR" | "MEDIUM" | "MAJOR" | "CRITICAL";
|
|
86
|
+
name: string;
|
|
87
|
+
description: string;
|
|
88
|
+
notifySubscribers: boolean;
|
|
89
|
+
} | undefined;
|
|
90
|
+
intent: {
|
|
91
|
+
goal: string;
|
|
92
|
+
constraints: {
|
|
93
|
+
type: import("./check.js").CheckIntentConstraintType;
|
|
94
|
+
statement: string;
|
|
95
|
+
}[];
|
|
96
|
+
} | null;
|
|
56
97
|
description?: string | undefined;
|
|
57
98
|
name: string;
|
|
58
99
|
};
|
|
@@ -123,6 +123,43 @@ export declare class BrowserCheck extends RuntimeCheck {
|
|
|
123
123
|
description: string;
|
|
124
124
|
notifySubscribers: boolean;
|
|
125
125
|
} | undefined;
|
|
126
|
+
intent?: undefined;
|
|
127
|
+
description?: string | undefined;
|
|
128
|
+
name: string;
|
|
129
|
+
} | {
|
|
130
|
+
checkType: string;
|
|
131
|
+
sslCheckDomain: string | null;
|
|
132
|
+
playwrightConfig: PlaywrightConfig | undefined;
|
|
133
|
+
runtimeId: string | undefined;
|
|
134
|
+
environmentVariables: import("./key-value-pair.js").default[] | undefined;
|
|
135
|
+
activated: boolean | undefined;
|
|
136
|
+
muted: boolean | undefined;
|
|
137
|
+
shouldFail: boolean | undefined;
|
|
138
|
+
locations: (keyof import("../index.js").Region)[] | undefined;
|
|
139
|
+
privateLocations: undefined;
|
|
140
|
+
tags: string[] | undefined;
|
|
141
|
+
frequency: number | undefined;
|
|
142
|
+
frequencyOffset: number | undefined;
|
|
143
|
+
groupId: import("./ref.js").Ref | null;
|
|
144
|
+
retryStrategy: import("./retry-strategy.js").LinearRetryStrategy | import("./retry-strategy.js").ExponentialRetryStrategy | import("./retry-strategy.js").FixedRetryStrategy | import("./retry-strategy.js").SingleRetryRetryStrategy | null | undefined;
|
|
145
|
+
doubleCheck: boolean | undefined;
|
|
146
|
+
alertSettings: import("./alert-escalation-policy.js").AlertEscalation | undefined;
|
|
147
|
+
useGlobalAlertSettings: boolean | undefined;
|
|
148
|
+
runParallel: boolean | undefined;
|
|
149
|
+
triggerIncident: {
|
|
150
|
+
serviceId: import("./ref.js").Ref;
|
|
151
|
+
severity: "MINOR" | "MEDIUM" | "MAJOR" | "CRITICAL";
|
|
152
|
+
name: string;
|
|
153
|
+
description: string;
|
|
154
|
+
notifySubscribers: boolean;
|
|
155
|
+
} | undefined;
|
|
156
|
+
intent: {
|
|
157
|
+
goal: string;
|
|
158
|
+
constraints: {
|
|
159
|
+
type: import("./check.js").CheckIntentConstraintType;
|
|
160
|
+
statement: string;
|
|
161
|
+
}[];
|
|
162
|
+
} | null;
|
|
126
163
|
description?: string | undefined;
|
|
127
164
|
name: string;
|
|
128
165
|
};
|
|
@@ -17,11 +17,29 @@ import { IcmpMonitorCodegen } from './icmp-monitor-codegen.js';
|
|
|
17
17
|
import { GrpcMonitorCodegen } from './grpc-monitor-codegen.js';
|
|
18
18
|
import { SslMonitorCodegen } from './ssl-monitor-codegen.js';
|
|
19
19
|
import { TracerouteMonitorCodegen } from './traceroute-monitor-codegen.js';
|
|
20
|
+
/**
|
|
21
|
+
* Intent shape returned by the checks resource API.
|
|
22
|
+
*
|
|
23
|
+
* Construct code generation adapts this wire representation to typed intent
|
|
24
|
+
* constraints so exported resources round-trip through Monitoring as Code.
|
|
25
|
+
*/
|
|
26
|
+
export interface CheckIntentResource {
|
|
27
|
+
goal: string;
|
|
28
|
+
constraints?: Array<{
|
|
29
|
+
type: 'REQUIRED_OUTCOME' | 'MUST_PRESERVE';
|
|
30
|
+
statement: string;
|
|
31
|
+
}>;
|
|
32
|
+
/** Compatibility with import plans created before construct-shaped intent was deployed. */
|
|
33
|
+
requiredOutcomes?: string[];
|
|
34
|
+
/** Compatibility with import plans created before construct-shaped intent was deployed. */
|
|
35
|
+
mustPreserve?: string[];
|
|
36
|
+
}
|
|
20
37
|
export interface CheckResource {
|
|
21
38
|
id: string;
|
|
22
39
|
checkType: string;
|
|
23
40
|
name: string;
|
|
24
41
|
description?: string | null;
|
|
42
|
+
intent?: CheckIntentResource | null;
|
|
25
43
|
activated?: boolean;
|
|
26
44
|
muted?: boolean;
|
|
27
45
|
shouldFail?: boolean;
|
|
@@ -53,6 +71,10 @@ export interface BuildCheckPropsOptions {
|
|
|
53
71
|
* an explicit flag.
|
|
54
72
|
*/
|
|
55
73
|
skipRetryStrategy?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Skip emitting the `intent` property for constructs that do not support it.
|
|
76
|
+
*/
|
|
77
|
+
skipIntent?: boolean;
|
|
56
78
|
}
|
|
57
79
|
export declare function buildCheckProps(program: Program, genfile: GeneratedFile, builder: ObjectValueBuilder, resource: CheckResource, context: Context, options?: BuildCheckPropsOptions): void;
|
|
58
80
|
export interface RuntimeCheckResource extends CheckResource {
|
|
@@ -23,6 +23,26 @@ export function buildCheckProps(program, genfile, builder, resource, context, op
|
|
|
23
23
|
if (resource.description != null) {
|
|
24
24
|
builder.string('description', resource.description);
|
|
25
25
|
}
|
|
26
|
+
if (!options.skipIntent && resource.intent != null) {
|
|
27
|
+
const intent = resource.intent;
|
|
28
|
+
builder.object('intent', builder => {
|
|
29
|
+
builder.string('goal', intent.goal);
|
|
30
|
+
const constraints = intent.constraints ?? [
|
|
31
|
+
...(intent.requiredOutcomes ?? []).map(statement => ({ type: 'REQUIRED_OUTCOME', statement })),
|
|
32
|
+
...(intent.mustPreserve ?? []).map(statement => ({ type: 'MUST_PRESERVE', statement })),
|
|
33
|
+
];
|
|
34
|
+
if (constraints.length > 0) {
|
|
35
|
+
builder.array('constraints', builder => {
|
|
36
|
+
for (const constraint of constraints) {
|
|
37
|
+
builder.object(builder => {
|
|
38
|
+
builder.string('type', constraint.type);
|
|
39
|
+
builder.string('statement', constraint.statement);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
}
|
|
26
46
|
if (resource.activated !== undefined) {
|
|
27
47
|
builder.boolean('activated', resource.activated);
|
|
28
48
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-codegen.js","sourceRoot":"","sources":["../../src/constructs/check-codegen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAW,MAAM,6BAA6B,CAAA;AAE9D,OAAO,EAAE,mBAAmB,EAAwB,MAAM,4BAA4B,CAAA;AACtF,OAAO,EAA2B,uBAAuB,EAAE,MAAM,sCAAsC,CAAA;AACvG,OAAO,EAAE,eAAe,EAAoB,MAAM,wBAAwB,CAAA;AAC1E,OAAO,EAAE,mBAAmB,EAAwB,MAAM,4BAA4B,CAAA;AACtF,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAA;AAEtF,OAAO,EAAqB,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC7E,OAAO,EAAE,uBAAuB,EAA4B,MAAM,gCAAgC,CAAA;AAClG,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AAClE,OAAO,EAAE,qBAAqB,EAA0B,MAAM,+BAA+B,CAAA;AAC7F,OAAO,EAAyB,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAC1F,OAAO,EAAE,iBAAiB,EAAsB,MAAM,0BAA0B,CAAA;AAChF,OAAO,EAAE,iBAAiB,EAAsB,MAAM,0BAA0B,CAAA;AAChF,OAAO,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAA;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAA;AACvE,OAAO,EAAE,iBAAiB,EAAsB,MAAM,0BAA0B,CAAA;AAChF,OAAO,EAAE,kBAAkB,EAA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,CAAA;gBAChG,OAAM;YACR;gBACE,MAAM,IAAI,KAAK,CAAC,uDAAuD,SAAS,IAAI,CAAC,CAAA;QACzF,CAAC;IACH,CAAC;CACF"}
|
|
@@ -16,6 +16,82 @@ import { CheckConfigDefaults } from '../services/checkly-config-loader.js';
|
|
|
16
16
|
* Retry strategies supported by checks.
|
|
17
17
|
*/
|
|
18
18
|
export type CheckRetryStrategy = LinearRetryStrategy | ExponentialRetryStrategy | FixedRetryStrategy | SingleRetryRetryStrategy | NoRetriesRetryStrategy;
|
|
19
|
+
/**
|
|
20
|
+
* The kind of durable guidance expressed by a check intent constraint.
|
|
21
|
+
*/
|
|
22
|
+
export type CheckIntentConstraintType = 'REQUIRED_OUTCOME' | 'MUST_PRESERVE';
|
|
23
|
+
/**
|
|
24
|
+
* A typed statement that refines a check's goal.
|
|
25
|
+
*
|
|
26
|
+
* New constraint types can be added without changing the overall intent shape.
|
|
27
|
+
*/
|
|
28
|
+
export interface CheckIntentConstraint {
|
|
29
|
+
/**
|
|
30
|
+
* How root cause analysis and check repair should interpret the statement.
|
|
31
|
+
*/
|
|
32
|
+
type: CheckIntentConstraintType;
|
|
33
|
+
/**
|
|
34
|
+
* The durable guidance for this constraint.
|
|
35
|
+
* Leading and trailing whitespace is removed during synthesis.
|
|
36
|
+
*
|
|
37
|
+
* @minLength 1
|
|
38
|
+
* @maxLength 1000
|
|
39
|
+
*/
|
|
40
|
+
statement: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Durable guidance describing what a check is intended to verify.
|
|
44
|
+
*
|
|
45
|
+
* Intent is used by Checkly's root cause analysis and check repair features.
|
|
46
|
+
* It is separate from the check description and from executable assertions.
|
|
47
|
+
*/
|
|
48
|
+
export interface CheckIntent {
|
|
49
|
+
/**
|
|
50
|
+
* The user-visible outcome the check should verify.
|
|
51
|
+
* Leading and trailing whitespace is removed during synthesis.
|
|
52
|
+
*
|
|
53
|
+
* @minLength 1
|
|
54
|
+
* @maxLength 2000
|
|
55
|
+
*/
|
|
56
|
+
goal: string;
|
|
57
|
+
/**
|
|
58
|
+
* Typed outcomes and guardrails that refine the goal.
|
|
59
|
+
* Omitted values are synthesized as empty backend constraint sections.
|
|
60
|
+
* At most 20 constraints of each supported type may be provided.
|
|
61
|
+
*/
|
|
62
|
+
constraints?: CheckIntentConstraint[];
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Intent authoring properties shared by checks and monitors that support RCA
|
|
66
|
+
* and check repair.
|
|
67
|
+
*/
|
|
68
|
+
export interface CheckIntentProps {
|
|
69
|
+
/**
|
|
70
|
+
* Durable guidance for root cause analysis and check repair.
|
|
71
|
+
*
|
|
72
|
+
* - Omit this property to leave an existing backend-authored intent unchanged.
|
|
73
|
+
* - Provide an object to set or update intent.
|
|
74
|
+
* - Set it to `null` to explicitly clear intent.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```typescript
|
|
78
|
+
* intent: {
|
|
79
|
+
* goal: 'Verify that authenticated users can open the dashboard.',
|
|
80
|
+
* constraints: [
|
|
81
|
+
* {
|
|
82
|
+
* type: 'REQUIRED_OUTCOME',
|
|
83
|
+
* statement: 'Authentication succeeds for a valid user.',
|
|
84
|
+
* },
|
|
85
|
+
* {
|
|
86
|
+
* type: 'MUST_PRESERVE',
|
|
87
|
+
* statement: 'Do not remove or weaken the authentication assertion.',
|
|
88
|
+
* },
|
|
89
|
+
* ],
|
|
90
|
+
* }
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
intent?: CheckIntent | null;
|
|
94
|
+
}
|
|
19
95
|
/**
|
|
20
96
|
* Base configuration properties for all check types.
|
|
21
97
|
* These properties are inherited by ApiCheck, BrowserCheck, and other check types.
|
|
@@ -205,6 +281,7 @@ export interface CheckProps {
|
|
|
205
281
|
triggerIncident?: IncidentTrigger;
|
|
206
282
|
}
|
|
207
283
|
export declare abstract class Check extends Construct {
|
|
284
|
+
#private;
|
|
208
285
|
name: string;
|
|
209
286
|
description?: string | null;
|
|
210
287
|
activated?: boolean;
|
|
@@ -230,6 +307,11 @@ export declare abstract class Check extends Construct {
|
|
|
230
307
|
protected validateDoubleCheck(diagnostics: Diagnostics): Promise<void>;
|
|
231
308
|
protected validateRetryStrategyOnlyOn(diagnostics: Diagnostics): Promise<void>;
|
|
232
309
|
protected supportsOnlyOnNetworkErrorRetryStrategy(): boolean;
|
|
310
|
+
protected get checkIntent(): CheckIntent | null | undefined;
|
|
311
|
+
protected set checkIntent(intent: CheckIntent | null | undefined);
|
|
312
|
+
protected validateIntent(diagnostics: Diagnostics): void;
|
|
313
|
+
private validateIntentConstraints;
|
|
314
|
+
private validateIntentStatement;
|
|
233
315
|
validate(diagnostics: Diagnostics): Promise<void>;
|
|
234
316
|
protected configDefaultsGetter(props: CheckProps): ConfigDefaultsGetter<CheckConfigDefaults>;
|
|
235
317
|
protected applyConfigDefaults<T extends CheckProps>(props: T): T;
|
|
@@ -274,11 +356,43 @@ export declare abstract class Check extends Construct {
|
|
|
274
356
|
description: string;
|
|
275
357
|
notifySubscribers: boolean;
|
|
276
358
|
} | undefined;
|
|
359
|
+
intent?: undefined;
|
|
360
|
+
description?: string | undefined;
|
|
361
|
+
name: string;
|
|
362
|
+
} | {
|
|
363
|
+
activated: boolean | undefined;
|
|
364
|
+
muted: boolean | undefined;
|
|
365
|
+
shouldFail: boolean | undefined;
|
|
366
|
+
locations: (keyof Region)[] | undefined;
|
|
367
|
+
privateLocations: undefined;
|
|
368
|
+
tags: string[] | undefined;
|
|
369
|
+
frequency: number | undefined;
|
|
370
|
+
frequencyOffset: number | undefined;
|
|
371
|
+
groupId: Ref | null;
|
|
372
|
+
retryStrategy: LinearRetryStrategy | ExponentialRetryStrategy | FixedRetryStrategy | SingleRetryRetryStrategy | null | undefined;
|
|
373
|
+
doubleCheck: boolean | undefined;
|
|
374
|
+
alertSettings: AlertEscalation | undefined;
|
|
375
|
+
useGlobalAlertSettings: boolean | undefined;
|
|
376
|
+
runParallel: boolean | undefined;
|
|
377
|
+
triggerIncident: {
|
|
378
|
+
serviceId: Ref;
|
|
379
|
+
severity: "MINOR" | "MEDIUM" | "MAJOR" | "CRITICAL";
|
|
380
|
+
name: string;
|
|
381
|
+
description: string;
|
|
382
|
+
notifySubscribers: boolean;
|
|
383
|
+
} | undefined;
|
|
384
|
+
intent: {
|
|
385
|
+
goal: string;
|
|
386
|
+
constraints: {
|
|
387
|
+
type: CheckIntentConstraintType;
|
|
388
|
+
statement: string;
|
|
389
|
+
}[];
|
|
390
|
+
} | null;
|
|
277
391
|
description?: string | undefined;
|
|
278
392
|
name: string;
|
|
279
393
|
};
|
|
280
394
|
}
|
|
281
|
-
export interface RuntimeCheckProps extends CheckProps {
|
|
395
|
+
export interface RuntimeCheckProps extends CheckProps, CheckIntentProps {
|
|
282
396
|
/**
|
|
283
397
|
* The runtime version, i.e. fixed set of runtime dependencies, used to execute this check.
|
|
284
398
|
*
|
|
@@ -304,6 +418,8 @@ export interface RuntimeCheckProps extends CheckProps {
|
|
|
304
418
|
export declare abstract class RuntimeCheck extends Check {
|
|
305
419
|
runtimeId?: string;
|
|
306
420
|
environmentVariables?: EnvironmentVariable[];
|
|
421
|
+
get intent(): CheckIntent | null | undefined;
|
|
422
|
+
set intent(intent: CheckIntent | null | undefined);
|
|
307
423
|
protected constructor(logicalId: string, props: RuntimeCheckProps);
|
|
308
424
|
protected applyConfigDefaults<T extends RuntimeCheckProps>(props: T): T;
|
|
309
425
|
synthesize(): {
|
|
@@ -330,6 +446,40 @@ export declare abstract class RuntimeCheck extends Check {
|
|
|
330
446
|
description: string;
|
|
331
447
|
notifySubscribers: boolean;
|
|
332
448
|
} | undefined;
|
|
449
|
+
intent?: undefined;
|
|
450
|
+
description?: string | undefined;
|
|
451
|
+
name: string;
|
|
452
|
+
} | {
|
|
453
|
+
runtimeId: string | undefined;
|
|
454
|
+
environmentVariables: import("./key-value-pair.js").default[] | undefined;
|
|
455
|
+
activated: boolean | undefined;
|
|
456
|
+
muted: boolean | undefined;
|
|
457
|
+
shouldFail: boolean | undefined;
|
|
458
|
+
locations: (keyof Region)[] | undefined;
|
|
459
|
+
privateLocations: undefined;
|
|
460
|
+
tags: string[] | undefined;
|
|
461
|
+
frequency: number | undefined;
|
|
462
|
+
frequencyOffset: number | undefined;
|
|
463
|
+
groupId: Ref | null;
|
|
464
|
+
retryStrategy: LinearRetryStrategy | ExponentialRetryStrategy | FixedRetryStrategy | SingleRetryRetryStrategy | null | undefined;
|
|
465
|
+
doubleCheck: boolean | undefined;
|
|
466
|
+
alertSettings: AlertEscalation | undefined;
|
|
467
|
+
useGlobalAlertSettings: boolean | undefined;
|
|
468
|
+
runParallel: boolean | undefined;
|
|
469
|
+
triggerIncident: {
|
|
470
|
+
serviceId: Ref;
|
|
471
|
+
severity: "MINOR" | "MEDIUM" | "MAJOR" | "CRITICAL";
|
|
472
|
+
name: string;
|
|
473
|
+
description: string;
|
|
474
|
+
notifySubscribers: boolean;
|
|
475
|
+
} | undefined;
|
|
476
|
+
intent: {
|
|
477
|
+
goal: string;
|
|
478
|
+
constraints: {
|
|
479
|
+
type: CheckIntentConstraintType;
|
|
480
|
+
statement: string;
|
|
481
|
+
}[];
|
|
482
|
+
} | null;
|
|
333
483
|
description?: string | undefined;
|
|
334
484
|
name: string;
|
|
335
485
|
};
|