checkly 6.0.1 → 6.1.0-prerelease-d4c1886
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/commands/import/plan.d.ts +1 -0
- package/dist/commands/import/plan.js +92 -43
- package/dist/commands/import/plan.js.map +1 -1
- package/dist/commands/pw-test.d.ts +27 -0
- package/dist/commands/pw-test.js +316 -0
- package/dist/commands/pw-test.js.map +1 -0
- package/dist/commands/rules.d.ts +9 -0
- package/dist/commands/rules.js +126 -0
- package/dist/commands/rules.js.map +1 -0
- package/dist/commands/sync-playwright.d.ts +0 -3
- package/dist/commands/sync-playwright.js +5 -29
- package/dist/commands/sync-playwright.js.map +1 -1
- package/dist/commands/test.d.ts +0 -12
- package/dist/commands/test.js +15 -62
- package/dist/commands/test.js.map +1 -1
- package/dist/commands/trigger.js +2 -2
- package/dist/commands/trigger.js.map +1 -1
- package/dist/constructs/alert-channel.d.ts +67 -12
- package/dist/constructs/alert-channel.js +30 -3
- package/dist/constructs/alert-channel.js.map +1 -1
- package/dist/constructs/alert-escalation-policy.d.ts +80 -0
- package/dist/constructs/alert-escalation-policy.js +20 -0
- package/dist/constructs/alert-escalation-policy.js.map +1 -1
- package/dist/constructs/api-assertion-codegen.d.ts +3 -0
- package/dist/constructs/api-assertion-codegen.js +23 -0
- package/dist/constructs/api-assertion-codegen.js.map +1 -0
- package/dist/constructs/api-assertion.d.ts +74 -0
- package/dist/constructs/api-assertion.js +85 -0
- package/dist/constructs/api-assertion.js.map +1 -0
- package/dist/constructs/api-check-bundle.d.ts +4 -4
- package/dist/constructs/api-check-codegen.d.ts +3 -5
- package/dist/constructs/api-check-codegen.js +4 -80
- package/dist/constructs/api-check-codegen.js.map +1 -1
- package/dist/constructs/api-check.d.ts +147 -46
- package/dist/constructs/api-check.js +114 -28
- package/dist/constructs/api-check.js.map +1 -1
- package/dist/constructs/api-request-codegen.d.ts +4 -0
- package/dist/constructs/api-request-codegen.js +68 -0
- package/dist/constructs/api-request-codegen.js.map +1 -0
- package/dist/constructs/api-request.d.ts +67 -0
- package/dist/constructs/api-request.js +3 -0
- package/dist/constructs/api-request.js.map +1 -0
- package/dist/constructs/browser-check-bundle.d.ts +3 -3
- package/dist/constructs/browser-check-codegen.d.ts +2 -2
- package/dist/constructs/browser-check-codegen.js +1 -1
- package/dist/constructs/browser-check-codegen.js.map +1 -1
- package/dist/constructs/browser-check.d.ts +50 -11
- package/dist/constructs/browser-check.js +47 -25
- package/dist/constructs/browser-check.js.map +1 -1
- package/dist/constructs/check-codegen.d.ts +11 -6
- package/dist/constructs/check-codegen.js +36 -24
- package/dist/constructs/check-codegen.js.map +1 -1
- package/dist/constructs/check-config.d.ts +3 -0
- package/dist/constructs/check-config.js +21 -0
- package/dist/constructs/check-config.js.map +1 -0
- package/dist/constructs/check-group-codegen.js +2 -2
- package/dist/constructs/check-group-codegen.js.map +1 -1
- package/dist/constructs/check-group-v1.js +2 -22
- package/dist/constructs/check-group-v1.js.map +1 -1
- package/dist/constructs/check-group-v2.js +2 -20
- package/dist/constructs/check-group-v2.js.map +1 -1
- package/dist/constructs/check.d.ts +190 -30
- package/dist/constructs/check.js +94 -48
- package/dist/constructs/check.js.map +1 -1
- package/dist/constructs/construct.d.ts +86 -0
- package/dist/constructs/construct.js +51 -0
- package/dist/constructs/construct.js.map +1 -1
- package/dist/constructs/dashboard.d.ts +98 -16
- package/dist/constructs/dashboard.js.map +1 -1
- package/dist/constructs/diagnostics.d.ts +23 -0
- package/dist/constructs/diagnostics.js +10 -0
- package/dist/constructs/diagnostics.js.map +1 -1
- package/dist/constructs/environment-variable.d.ts +19 -0
- package/dist/constructs/frequency.d.ts +42 -0
- package/dist/constructs/frequency.js +42 -0
- package/dist/constructs/frequency.js.map +1 -1
- package/dist/constructs/heartbeat-monitor-codegen.d.ts +11 -0
- package/dist/constructs/{heartbeat-check-codegen.js → heartbeat-monitor-codegen.js} +10 -10
- package/dist/constructs/heartbeat-monitor-codegen.js.map +1 -0
- package/dist/constructs/{heartbeat-check.d.ts → heartbeat-monitor.d.ts} +9 -13
- package/dist/constructs/{heartbeat-check.js → heartbeat-monitor.js} +10 -13
- package/dist/constructs/heartbeat-monitor.js.map +1 -0
- package/dist/constructs/http-header.d.ts +16 -0
- package/dist/constructs/http-request.d.ts +2 -0
- package/dist/constructs/http-request.js +3 -0
- package/dist/constructs/http-request.js.map +1 -0
- package/dist/constructs/index.d.ts +10 -2
- package/dist/constructs/index.js +10 -2
- package/dist/constructs/index.js.map +1 -1
- package/dist/constructs/internal/common-diagnostics.d.ts +9 -0
- package/dist/constructs/internal/common-diagnostics.js +39 -0
- package/dist/constructs/internal/common-diagnostics.js.map +1 -0
- package/dist/constructs/ip.d.ts +2 -0
- package/dist/constructs/ip.js +3 -0
- package/dist/constructs/ip.js.map +1 -0
- package/dist/constructs/key-value-pair.d.ts +35 -0
- package/dist/constructs/monitor-codegen.d.ts +1 -0
- package/dist/constructs/monitor-codegen.js +6 -0
- package/dist/constructs/monitor-codegen.js.map +1 -0
- package/dist/constructs/monitor.d.ts +113 -0
- package/dist/constructs/monitor.js +21 -0
- package/dist/constructs/monitor.js.map +1 -0
- package/dist/constructs/multi-step-check-bundle.d.ts +3 -3
- package/dist/constructs/multi-step-check-codegen.d.ts +2 -2
- package/dist/constructs/multi-step-check-codegen.js +1 -1
- package/dist/constructs/multi-step-check-codegen.js.map +1 -1
- package/dist/constructs/multi-step-check.d.ts +8 -8
- package/dist/constructs/multi-step-check.js +4 -21
- package/dist/constructs/multi-step-check.js.map +1 -1
- package/dist/constructs/playwright-check-bundle.d.ts +2 -2
- package/dist/constructs/playwright-check.d.ts +6 -6
- package/dist/constructs/playwright-check.js +1 -1
- package/dist/constructs/playwright-check.js.map +1 -1
- package/dist/constructs/project.js +1 -1
- package/dist/constructs/project.js.map +1 -1
- package/dist/constructs/query-param.d.ts +16 -0
- package/dist/constructs/ref.d.ts +44 -0
- package/dist/constructs/ref.js +44 -0
- package/dist/constructs/ref.js.map +1 -1
- package/dist/constructs/retry-strategy.d.ts +78 -8
- package/dist/constructs/retry-strategy.js +33 -0
- package/dist/constructs/retry-strategy.js.map +1 -1
- package/dist/constructs/tcp-monitor-codegen.d.ts +15 -0
- package/dist/constructs/{tcp-check-codegen.js → tcp-monitor-codegen.js} +9 -9
- package/dist/constructs/tcp-monitor-codegen.js.map +1 -0
- package/dist/constructs/{tcp-check.d.ts → tcp-monitor.d.ts} +70 -21
- package/dist/constructs/{tcp-check.js → tcp-monitor.js} +34 -13
- package/dist/constructs/tcp-monitor.js.map +1 -0
- package/dist/constructs/url-assertion-codegen.d.ts +3 -0
- package/dist/constructs/url-assertion-codegen.js +15 -0
- package/dist/constructs/url-assertion-codegen.js.map +1 -0
- package/dist/constructs/url-assertion.d.ts +60 -0
- package/dist/constructs/url-assertion.js +56 -0
- package/dist/constructs/url-assertion.js.map +1 -0
- package/dist/constructs/url-monitor-codegen.d.ts +13 -0
- package/dist/constructs/url-monitor-codegen.js +38 -0
- package/dist/constructs/url-monitor-codegen.js.map +1 -0
- package/dist/constructs/url-monitor.d.ts +146 -0
- package/dist/constructs/url-monitor.js +99 -0
- package/dist/constructs/url-monitor.js.map +1 -0
- package/dist/constructs/url-request-codegen.d.ts +4 -0
- package/dist/constructs/url-request-codegen.js +31 -0
- package/dist/constructs/url-request-codegen.js.map +1 -0
- package/dist/constructs/url-request.d.ts +65 -0
- package/dist/constructs/url-request.js +3 -0
- package/dist/constructs/url-request.js.map +1 -0
- package/dist/constructs/webhook-alert-channel.d.ts +1 -1
- package/dist/helpers/constants.d.ts +1 -0
- package/dist/helpers/constants.js +5 -0
- package/dist/helpers/constants.js.map +1 -0
- package/dist/helpers/test-helper.d.ts +16 -0
- package/dist/helpers/test-helper.js +72 -0
- package/dist/helpers/test-helper.js.map +1 -0
- package/dist/helpers/write-config-helpers.d.ts +5 -0
- package/dist/helpers/write-config-helpers.js +88 -0
- package/dist/helpers/write-config-helpers.js.map +1 -0
- package/dist/reporters/util.js +2 -2
- package/dist/reporters/util.js.map +1 -1
- package/dist/rest/api.js +6 -0
- package/dist/rest/api.js.map +1 -1
- package/dist/rules/checkly.rules.md +491 -0
- package/dist/services/checkly-config-loader.d.ts +3 -3
- package/dist/services/checkly-config-loader.js +6 -4
- package/dist/services/checkly-config-loader.js.map +1 -1
- package/dist/services/util.d.ts +2 -2
- package/dist/services/util.js +14 -14
- package/dist/services/util.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/oclif.manifest.json +150 -1
- package/package.json +7 -3
- package/dist/constructs/heartbeat-check-codegen.d.ts +0 -11
- package/dist/constructs/heartbeat-check-codegen.js.map +0 -1
- package/dist/constructs/heartbeat-check.js.map +0 -1
- package/dist/constructs/tcp-check-codegen.d.ts +0 -15
- package/dist/constructs/tcp-check-codegen.js.map +0 -1
- package/dist/constructs/tcp-check.js.map +0 -1
|
@@ -9,40 +9,63 @@ import { PrivateLocation, PrivateLocationRef } from './private-location';
|
|
|
9
9
|
import { RetryStrategy } from './retry-strategy';
|
|
10
10
|
import { AlertEscalation } from './alert-escalation-policy';
|
|
11
11
|
import { IncidentTrigger } from './incident';
|
|
12
|
+
import { ConfigDefaultsGetter } from './check-config';
|
|
13
|
+
import { Diagnostics } from './diagnostics';
|
|
14
|
+
/**
|
|
15
|
+
* Base configuration properties for all check types.
|
|
16
|
+
* These properties are inherited by ApiCheck, BrowserCheck, and other check types.
|
|
17
|
+
*/
|
|
12
18
|
export interface CheckProps {
|
|
13
19
|
/**
|
|
14
|
-
*
|
|
20
|
+
* The display name of the check. This will be shown in the Checkly dashboard.
|
|
21
|
+
*
|
|
22
|
+
* @example "User API Health Check"
|
|
15
23
|
*/
|
|
16
24
|
name: string;
|
|
17
25
|
/**
|
|
18
|
-
*
|
|
26
|
+
* Determines whether the check will run periodically after being deployed.
|
|
27
|
+
* Set to `false` to pause a check without deleting it.
|
|
28
|
+
*
|
|
29
|
+
* @defaultValue true
|
|
19
30
|
*/
|
|
20
31
|
activated?: boolean;
|
|
21
32
|
/**
|
|
22
33
|
* Determines if any notifications will be sent out when a check fails and/or recovers.
|
|
34
|
+
* Useful for temporarily silencing alerts during maintenance.
|
|
35
|
+
*
|
|
36
|
+
* @defaultValue false
|
|
23
37
|
*/
|
|
24
38
|
muted?: boolean;
|
|
25
39
|
/**
|
|
26
40
|
* Setting this to "true" will trigger a retry when a check fails from the failing region and another,
|
|
27
41
|
* randomly selected region before marking the check as failed.
|
|
28
|
-
* @deprecated Use {@link
|
|
42
|
+
* @deprecated Use {@link retryStrategy} instead.
|
|
29
43
|
*/
|
|
30
44
|
doubleCheck?: boolean;
|
|
31
45
|
/**
|
|
32
|
-
* Allows to invert the behaviour of when a check is considered to fail.
|
|
33
|
-
*
|
|
46
|
+
* Allows to invert the behaviour of when a check is considered to fail.
|
|
47
|
+
* Useful for validating error status codes like 404 or 500.
|
|
48
|
+
* This only applies to API Checks. When set to true, the check passes when
|
|
49
|
+
* it would normally fail, and fails when it would normally pass.
|
|
50
|
+
*
|
|
51
|
+
* @defaultValue false
|
|
52
|
+
* @example
|
|
53
|
+
* ```typescript
|
|
54
|
+
* // Check that expects a 404 status - must set shouldFail: true
|
|
55
|
+
* shouldFail: true,
|
|
56
|
+
* request: {
|
|
57
|
+
* method: 'GET',
|
|
58
|
+
* url: 'https://api.example.com/nonexistent',
|
|
59
|
+
* assertions: [AssertionBuilder.statusCode().equals(404)]
|
|
60
|
+
* }
|
|
61
|
+
* ```
|
|
34
62
|
*/
|
|
35
63
|
shouldFail?: boolean;
|
|
36
64
|
/**
|
|
37
|
-
*
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
* An array of one or more data center locations where to run this check. The supported regions are:
|
|
42
|
-
* us-east-1, us-east-2, us-west-1, us-west-2, ca-central-1, sa-east-1,
|
|
43
|
-
* eu-west-1, eu-central-1, eu-west-2, eu-west-3, eu-north-1, eu-south-1, me-south-1,
|
|
44
|
-
* ap-southeast-1, ap-northeast-1, ap-east-1, ap-southeast-2, ap-southeast-3, ap-northeast-2, ap-northeast-3,
|
|
45
|
-
* ap-south-1, af-south-1
|
|
65
|
+
* An array of one or more data center locations where to run this check.
|
|
66
|
+
*
|
|
67
|
+
* @example ['us-east-1', 'eu-west-1', 'ap-southeast-1']
|
|
68
|
+
* @see {@link https://www.checklyhq.com/docs/monitoring/global-locations/ | Global Locations}
|
|
46
69
|
*/
|
|
47
70
|
locations?: Array<keyof Region>;
|
|
48
71
|
/**
|
|
@@ -51,53 +74,121 @@ export interface CheckProps {
|
|
|
51
74
|
*
|
|
52
75
|
* `string` slug names are **only** allowed for private locations that **not** belong to the project. Use
|
|
53
76
|
* PrivateLocation instances references for private locations created within the project.
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```typescript
|
|
80
|
+
* // Using private location instances
|
|
81
|
+
* privateLocations: [myPrivateLocation, anotherPrivateLocation]
|
|
82
|
+
*
|
|
83
|
+
* // Using existing private location slugs
|
|
84
|
+
* privateLocations: ['my-datacenter-1', 'office-location']
|
|
85
|
+
* ```
|
|
54
86
|
*/
|
|
55
87
|
privateLocations?: Array<string | PrivateLocation | PrivateLocationRef>;
|
|
56
88
|
/**
|
|
57
|
-
* Tags for organizing and filtering checks.
|
|
89
|
+
* Tags for organizing and filtering checks in the dashboard.
|
|
90
|
+
*
|
|
91
|
+
* @example ['production', 'api', 'critical']
|
|
58
92
|
*/
|
|
59
93
|
tags?: Array<string>;
|
|
60
94
|
/**
|
|
61
|
-
* How often the check should run in minutes.
|
|
95
|
+
* How often the check should run. Can be specified in minutes or using Frequency constants.
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* ```typescript
|
|
99
|
+
* frequency: Frequency.EVERY_5M // Every 5 minutes
|
|
100
|
+
* ```
|
|
62
101
|
*/
|
|
63
102
|
frequency?: number | Frequency;
|
|
64
|
-
environmentVariables?: Array<EnvironmentVariable>;
|
|
65
103
|
/**
|
|
66
104
|
* The id of the check group this check is part of. Set this by calling `someGroup.ref()`
|
|
67
|
-
* @deprecated Use {@link
|
|
105
|
+
* @deprecated Use {@link group} instead.
|
|
68
106
|
*/
|
|
69
107
|
groupId?: Ref;
|
|
70
108
|
/**
|
|
71
109
|
* The CheckGroup that this check is part of.
|
|
110
|
+
* Groups allow you to organize related checks and apply common settings.
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* ```typescript
|
|
114
|
+
* // Create a new check group
|
|
115
|
+
* const apiGroup = new CheckGroupV2('api-group', {
|
|
116
|
+
* name: 'API Checks'
|
|
117
|
+
* })
|
|
118
|
+
*
|
|
119
|
+
* // Reference an existing check group by ID
|
|
120
|
+
* const existingGroup = CheckGroupV2.fromId(123)
|
|
121
|
+
*
|
|
122
|
+
* // Use in check configuration
|
|
123
|
+
* group: apiGroup // or existingGroup
|
|
124
|
+
* ```
|
|
72
125
|
*/
|
|
73
126
|
group?: CheckGroupV1 | CheckGroupV2 | CheckGroupRef;
|
|
74
127
|
/**
|
|
75
128
|
* List of alert channels to notify when the check fails or recovers.
|
|
76
129
|
* If you don't set at least one, we won't be able to alert you in case something goes wrong with your check.
|
|
77
|
-
*
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* ```typescript
|
|
133
|
+
* // Create alert channels once at the project level
|
|
134
|
+
* const emailChannel = new EmailAlertChannel('team-email', {
|
|
135
|
+
* address: 'team@example.com'
|
|
136
|
+
* })
|
|
137
|
+
* const slackChannel = new SlackAlertChannel('team-slack', {
|
|
138
|
+
* url: 'https://hooks.slack.com/...'
|
|
139
|
+
* })
|
|
140
|
+
*
|
|
141
|
+
* // Reference the channels in your check
|
|
142
|
+
* alertChannels: [emailChannel, slackChannel]
|
|
143
|
+
* ```
|
|
144
|
+
* @see {@link https://www.checklyhq.com/docs/alerting-and-retries/alert-channels/ | Alert Channels}
|
|
78
145
|
*/
|
|
79
146
|
alertChannels?: Array<AlertChannel | AlertChannelRef>;
|
|
80
147
|
/**
|
|
81
|
-
* Determines the alert escalation policy for that particular check
|
|
148
|
+
* Determines the alert escalation policy for that particular check.
|
|
149
|
+
* Controls when and how alerts are escalated based on failure patterns.
|
|
150
|
+
*
|
|
151
|
+
* @example
|
|
152
|
+
* ```typescript
|
|
153
|
+
* alertEscalationPolicy: AlertEscalationBuilder.runBasedEscalation(3, {
|
|
154
|
+
* amount: 2,
|
|
155
|
+
* interval: 10
|
|
156
|
+
* })
|
|
157
|
+
* ```
|
|
82
158
|
*/
|
|
83
159
|
alertEscalationPolicy?: AlertEscalation;
|
|
84
160
|
/**
|
|
85
161
|
* Determines if the check is available only when 'test' runs (not included when 'deploy' is executed).
|
|
162
|
+
* Useful for development and testing scenarios.
|
|
163
|
+
*
|
|
164
|
+
* @defaultValue false
|
|
86
165
|
*/
|
|
87
166
|
testOnly?: boolean;
|
|
88
167
|
/**
|
|
89
168
|
* Sets a retry policy for the check. Use RetryStrategyBuilder to create a retry policy.
|
|
169
|
+
*
|
|
170
|
+
* @example
|
|
171
|
+
* ```typescript
|
|
172
|
+
* retryStrategy: RetryStrategyBuilder.fixedStrategy({
|
|
173
|
+
* maxRetries: 3,
|
|
174
|
+
* baseBackoffSeconds: 30,
|
|
175
|
+
* sameRegion: false
|
|
176
|
+
* })
|
|
177
|
+
* ```
|
|
90
178
|
*/
|
|
91
179
|
retryStrategy?: RetryStrategy;
|
|
92
180
|
/**
|
|
93
181
|
* Determines whether the check should run on all selected locations in parallel or round-robin.
|
|
94
|
-
*
|
|
182
|
+
*
|
|
183
|
+
* @defaultValue false (round-robin)
|
|
184
|
+
* @see {@link https://www.checklyhq.com/docs/monitoring/global-locations/ | Scheduling Strategies}
|
|
95
185
|
*/
|
|
96
186
|
runParallel?: boolean;
|
|
97
187
|
/**
|
|
98
188
|
* Determines whether the check should create and resolve an incident based on its alert configuration.
|
|
99
|
-
*
|
|
100
|
-
*
|
|
189
|
+
* Useful for status page automation.
|
|
190
|
+
*
|
|
191
|
+
* @see {@link https://www.checklyhq.com/docs/status-pages/incidents/#incident-automation | Incident Automation}
|
|
101
192
|
*/
|
|
102
193
|
triggerIncident?: IncidentTrigger;
|
|
103
194
|
}
|
|
@@ -107,13 +198,11 @@ export declare abstract class Check extends Construct {
|
|
|
107
198
|
muted?: boolean;
|
|
108
199
|
doubleCheck?: boolean;
|
|
109
200
|
shouldFail?: boolean;
|
|
110
|
-
runtimeId?: string;
|
|
111
201
|
locations?: Array<keyof Region>;
|
|
112
202
|
privateLocations?: Array<string | PrivateLocation | PrivateLocationRef>;
|
|
113
203
|
tags?: Array<string>;
|
|
114
204
|
frequency?: number;
|
|
115
205
|
frequencyOffset?: number;
|
|
116
|
-
environmentVariables?: Array<EnvironmentVariable>;
|
|
117
206
|
groupId?: Ref;
|
|
118
207
|
alertChannels?: Array<AlertChannel | AlertChannelRef>;
|
|
119
208
|
testOnly?: boolean;
|
|
@@ -124,25 +213,96 @@ export declare abstract class Check extends Construct {
|
|
|
124
213
|
triggerIncident?: IncidentTrigger;
|
|
125
214
|
__checkFilePath?: string;
|
|
126
215
|
static readonly __checklyType = "check";
|
|
127
|
-
constructor(logicalId: string, props: CheckProps);
|
|
128
|
-
|
|
129
|
-
|
|
216
|
+
protected constructor(logicalId: string, props: CheckProps);
|
|
217
|
+
protected validateDoubleCheck(diagnostics: Diagnostics): Promise<void>;
|
|
218
|
+
validate(diagnostics: Diagnostics): Promise<void>;
|
|
219
|
+
protected configDefaultsGetter(props: CheckProps): ConfigDefaultsGetter;
|
|
220
|
+
protected applyConfigDefaults<T extends CheckProps>(props: T): T;
|
|
221
|
+
/**
|
|
222
|
+
* Creates alert channel subscriptions for this check.
|
|
223
|
+
* Links the check to its configured alert channels to send notifications.
|
|
224
|
+
* Only creates subscriptions if alert channels are configured and check is not test-only.
|
|
225
|
+
*/
|
|
130
226
|
addSubscriptions(): void;
|
|
227
|
+
/**
|
|
228
|
+
* Creates private location assignments for this check.
|
|
229
|
+
* Links the check to its configured private locations so it can run on them.
|
|
230
|
+
* Only processes PrivateLocation instances, not string slugs.
|
|
231
|
+
*/
|
|
131
232
|
addPrivateLocationCheckAssignments(): void;
|
|
233
|
+
/**
|
|
234
|
+
* Gets the source file path where this check was defined.
|
|
235
|
+
* Used for filtering and debugging purposes.
|
|
236
|
+
*
|
|
237
|
+
* @returns The absolute path to the check file, or undefined if not set
|
|
238
|
+
*/
|
|
132
239
|
getSourceFile(): string | undefined;
|
|
133
240
|
synthesize(): {
|
|
134
241
|
name: string;
|
|
135
242
|
activated: boolean | undefined;
|
|
136
243
|
muted: boolean | undefined;
|
|
137
244
|
shouldFail: boolean | undefined;
|
|
138
|
-
runtimeId: string | undefined;
|
|
139
245
|
locations: (keyof Region)[] | undefined;
|
|
140
246
|
privateLocations: undefined;
|
|
141
247
|
tags: string[] | undefined;
|
|
142
248
|
frequency: number | undefined;
|
|
143
249
|
frequencyOffset: number | undefined;
|
|
144
|
-
groupId: Ref |
|
|
250
|
+
groupId: Ref | null;
|
|
251
|
+
retryStrategy: RetryStrategy | null | undefined;
|
|
252
|
+
doubleCheck: boolean | undefined;
|
|
253
|
+
alertSettings: AlertEscalation | undefined;
|
|
254
|
+
useGlobalAlertSettings: boolean | undefined;
|
|
255
|
+
runParallel: boolean | undefined;
|
|
256
|
+
triggerIncident: {
|
|
257
|
+
serviceId: Ref;
|
|
258
|
+
severity: "MINOR" | "MEDIUM" | "MAJOR" | "CRITICAL";
|
|
259
|
+
name: string;
|
|
260
|
+
description: string;
|
|
261
|
+
notifySubscribers: boolean;
|
|
262
|
+
} | undefined;
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
export interface RuntimeCheckProps extends CheckProps {
|
|
266
|
+
/**
|
|
267
|
+
* The runtime version, i.e. fixed set of runtime dependencies, used to execute this check.
|
|
268
|
+
*
|
|
269
|
+
* @example "2024.09"
|
|
270
|
+
* @see {@link https://www.checklyhq.com/docs/runtimes/ | Runtime Documentation}
|
|
271
|
+
*/
|
|
272
|
+
runtimeId?: string;
|
|
273
|
+
/**
|
|
274
|
+
* Environment variables available to the check script.
|
|
275
|
+
* Maximum of 50 environment variables per check.
|
|
276
|
+
*
|
|
277
|
+
* @maxItems 50
|
|
278
|
+
* @example
|
|
279
|
+
* ```typescript
|
|
280
|
+
* environmentVariables: [
|
|
281
|
+
* { key: 'API_TOKEN', value: '{{API_TOKEN}}', secret: true },
|
|
282
|
+
* { key: 'BASE_URL', value: 'https://api.example.com' }
|
|
283
|
+
* ]
|
|
284
|
+
* ```
|
|
285
|
+
*/
|
|
286
|
+
environmentVariables?: EnvironmentVariable[];
|
|
287
|
+
}
|
|
288
|
+
export declare abstract class RuntimeCheck extends Check {
|
|
289
|
+
runtimeId?: string;
|
|
290
|
+
environmentVariables?: EnvironmentVariable[];
|
|
291
|
+
protected constructor(logicalId: string, props: RuntimeCheckProps);
|
|
292
|
+
protected applyConfigDefaults<T extends RuntimeCheckProps>(props: T): T;
|
|
293
|
+
synthesize(): {
|
|
294
|
+
runtimeId: string | undefined;
|
|
145
295
|
environmentVariables: import("./key-value-pair").default[] | undefined;
|
|
296
|
+
name: string;
|
|
297
|
+
activated: boolean | undefined;
|
|
298
|
+
muted: boolean | undefined;
|
|
299
|
+
shouldFail: boolean | undefined;
|
|
300
|
+
locations: (keyof Region)[] | undefined;
|
|
301
|
+
privateLocations: undefined;
|
|
302
|
+
tags: string[] | undefined;
|
|
303
|
+
frequency: number | undefined;
|
|
304
|
+
frequencyOffset: number | undefined;
|
|
305
|
+
groupId: Ref | null;
|
|
146
306
|
retryStrategy: RetryStrategy | null | undefined;
|
|
147
307
|
doubleCheck: boolean | undefined;
|
|
148
308
|
alertSettings: AlertEscalation | undefined;
|
package/dist/constructs/check.js
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Check = void 0;
|
|
3
|
+
exports.RuntimeCheck = exports.Check = void 0;
|
|
4
4
|
const ref_1 = require("./ref");
|
|
5
5
|
const frequency_1 = require("./frequency");
|
|
6
6
|
const construct_1 = require("./construct");
|
|
7
7
|
const alert_channel_subscription_1 = require("./alert-channel-subscription");
|
|
8
8
|
const project_1 = require("./project");
|
|
9
9
|
const private_location_check_assignment_1 = require("./private-location-check-assignment");
|
|
10
|
-
|
|
10
|
+
const check_config_1 = require("./check-config");
|
|
11
|
+
const common_diagnostics_1 = require("./internal/common-diagnostics");
|
|
11
12
|
class Check extends construct_1.Construct {
|
|
12
13
|
name;
|
|
13
14
|
activated;
|
|
14
15
|
muted;
|
|
15
16
|
doubleCheck;
|
|
16
17
|
shouldFail;
|
|
17
|
-
runtimeId;
|
|
18
18
|
locations;
|
|
19
19
|
privateLocations;
|
|
20
20
|
tags;
|
|
21
21
|
frequency;
|
|
22
22
|
frequencyOffset;
|
|
23
|
-
environmentVariables;
|
|
24
23
|
groupId;
|
|
25
24
|
alertChannels;
|
|
26
25
|
testOnly;
|
|
@@ -33,64 +32,74 @@ class Check extends construct_1.Construct {
|
|
|
33
32
|
static __checklyType = 'check';
|
|
34
33
|
constructor(logicalId, props) {
|
|
35
34
|
super(Check.__checklyType, logicalId);
|
|
36
|
-
|
|
37
|
-
Check.applyDefaultCheckGroupConfig(props, props.group.getCheckDefaults());
|
|
38
|
-
}
|
|
39
|
-
Check.applyDefaultCheckConfig(props);
|
|
35
|
+
const config = this.applyConfigDefaults(props);
|
|
40
36
|
// TODO: Throw an error if required properties are still missing after applying the defaults.
|
|
41
|
-
this.name =
|
|
42
|
-
this.activated =
|
|
43
|
-
this.muted =
|
|
44
|
-
this.doubleCheck =
|
|
45
|
-
this.shouldFail =
|
|
46
|
-
this.locations =
|
|
47
|
-
this.privateLocations =
|
|
48
|
-
this.tags =
|
|
49
|
-
if (
|
|
50
|
-
this.frequency =
|
|
51
|
-
this.frequencyOffset =
|
|
37
|
+
this.name = config.name;
|
|
38
|
+
this.activated = config.activated;
|
|
39
|
+
this.muted = config.muted;
|
|
40
|
+
this.doubleCheck = config.doubleCheck;
|
|
41
|
+
this.shouldFail = config.shouldFail;
|
|
42
|
+
this.locations = config.locations;
|
|
43
|
+
this.privateLocations = config.privateLocations;
|
|
44
|
+
this.tags = config.tags;
|
|
45
|
+
if (config.frequency instanceof frequency_1.Frequency) {
|
|
46
|
+
this.frequency = config.frequency.frequency;
|
|
47
|
+
this.frequencyOffset = config.frequency.frequencyOffset;
|
|
52
48
|
}
|
|
53
49
|
else {
|
|
54
|
-
this.frequency =
|
|
50
|
+
this.frequency = config.frequency;
|
|
55
51
|
}
|
|
56
|
-
this.runtimeId = props.runtimeId;
|
|
57
|
-
this.environmentVariables = props.environmentVariables ?? [];
|
|
58
52
|
// Alert channel subscriptions will be synthesized separately in the Project construct.
|
|
59
53
|
// This is due to the way things are organized on the BE.
|
|
60
|
-
this.alertChannels =
|
|
54
|
+
this.alertChannels = config.alertChannels ?? [];
|
|
61
55
|
// Prefer the `group` parameter, but support groupId for backwards compatibility.
|
|
62
|
-
this.groupId =
|
|
56
|
+
this.groupId = config.group?.ref() ?? config.groupId;
|
|
63
57
|
// alertSettings, useGlobalAlertSettings, groupId, groupOrder
|
|
64
|
-
this.testOnly =
|
|
65
|
-
this.retryStrategy =
|
|
66
|
-
this.alertSettings =
|
|
58
|
+
this.testOnly = config.testOnly ?? false;
|
|
59
|
+
this.retryStrategy = config.retryStrategy;
|
|
60
|
+
this.alertSettings = config.alertEscalationPolicy;
|
|
67
61
|
this.useGlobalAlertSettings = !this.alertSettings;
|
|
68
|
-
this.runParallel =
|
|
69
|
-
this.triggerIncident =
|
|
62
|
+
this.runParallel = config.runParallel ?? false;
|
|
63
|
+
this.triggerIncident = config.triggerIncident;
|
|
70
64
|
this.__checkFilePath = project_1.Session.checkFilePath;
|
|
71
65
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
for (configKey in groupProps) {
|
|
75
|
-
const newVal = props[configKey] ?? groupProps[configKey];
|
|
76
|
-
props[configKey] = newVal;
|
|
77
|
-
}
|
|
66
|
+
async validateDoubleCheck(diagnostics) {
|
|
67
|
+
await (0, common_diagnostics_1.validateDeprecatedDoubleCheck)(diagnostics, this);
|
|
78
68
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
69
|
+
async validate(diagnostics) {
|
|
70
|
+
await super.validate(diagnostics);
|
|
71
|
+
await this.validateDoubleCheck(diagnostics);
|
|
72
|
+
}
|
|
73
|
+
configDefaultsGetter(props) {
|
|
74
|
+
return (0, check_config_1.makeConfigDefaultsGetter)(props.group?.getCheckDefaults(), project_1.Session.checkDefaults);
|
|
75
|
+
}
|
|
76
|
+
applyConfigDefaults(props) {
|
|
77
|
+
const config = Object.assign({}, props);
|
|
78
|
+
const defaults = this.configDefaultsGetter(props);
|
|
79
|
+
config.activated ??= defaults('activated');
|
|
80
|
+
config.alertChannels ??= defaults('alertChannels');
|
|
81
|
+
config.alertEscalationPolicy ??= defaults('alertEscalationPolicy');
|
|
82
|
+
config.doubleCheck ??= defaults('doubleCheck');
|
|
83
|
+
config.frequency ??= defaults('frequency');
|
|
84
|
+
config.locations ??= defaults('locations');
|
|
85
|
+
config.muted ??= defaults('muted');
|
|
86
|
+
config.privateLocations ??= defaults('privateLocations');
|
|
87
|
+
config.retryStrategy ??= defaults('retryStrategy');
|
|
88
|
+
config.shouldFail ??= defaults('shouldFail');
|
|
89
|
+
config.tags ??= defaults('tags');
|
|
90
|
+
return config;
|
|
88
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* Creates alert channel subscriptions for this check.
|
|
94
|
+
* Links the check to its configured alert channels to send notifications.
|
|
95
|
+
* Only creates subscriptions if alert channels are configured and check is not test-only.
|
|
96
|
+
*/
|
|
89
97
|
addSubscriptions() {
|
|
90
98
|
if (!this.alertChannels || this.testOnly) {
|
|
91
99
|
return;
|
|
92
100
|
}
|
|
93
101
|
for (const alertChannel of this.alertChannels) {
|
|
102
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
94
103
|
const subscription = new alert_channel_subscription_1.AlertChannelSubscription(`check-alert-channel-subscription#${this.logicalId}#${alertChannel.logicalId}`, {
|
|
95
104
|
alertChannelId: ref_1.Ref.from(alertChannel.logicalId),
|
|
96
105
|
checkId: ref_1.Ref.from(this.logicalId),
|
|
@@ -98,6 +107,11 @@ class Check extends construct_1.Construct {
|
|
|
98
107
|
});
|
|
99
108
|
}
|
|
100
109
|
}
|
|
110
|
+
/**
|
|
111
|
+
* Creates private location assignments for this check.
|
|
112
|
+
* Links the check to its configured private locations so it can run on them.
|
|
113
|
+
* Only processes PrivateLocation instances, not string slugs.
|
|
114
|
+
*/
|
|
101
115
|
addPrivateLocationCheckAssignments() {
|
|
102
116
|
if (!this.privateLocations) {
|
|
103
117
|
return;
|
|
@@ -107,13 +121,19 @@ class Check extends construct_1.Construct {
|
|
|
107
121
|
if (typeof privateLocation === 'string') {
|
|
108
122
|
continue;
|
|
109
123
|
}
|
|
110
|
-
//
|
|
124
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
111
125
|
const assignment = new private_location_check_assignment_1.PrivateLocationCheckAssignment(`private-location-check-assignment#${this.logicalId}#${privateLocation.logicalId}`, {
|
|
112
126
|
privateLocationId: ref_1.Ref.from(privateLocation.logicalId),
|
|
113
127
|
checkId: ref_1.Ref.from(this.logicalId),
|
|
114
128
|
});
|
|
115
129
|
}
|
|
116
130
|
}
|
|
131
|
+
/**
|
|
132
|
+
* Gets the source file path where this check was defined.
|
|
133
|
+
* Used for filtering and debugging purposes.
|
|
134
|
+
*
|
|
135
|
+
* @returns The absolute path to the check file, or undefined if not set
|
|
136
|
+
*/
|
|
117
137
|
getSourceFile() {
|
|
118
138
|
return this.__checkFilePath;
|
|
119
139
|
}
|
|
@@ -132,15 +152,16 @@ class Check extends construct_1.Construct {
|
|
|
132
152
|
activated: this.activated,
|
|
133
153
|
muted: this.muted,
|
|
134
154
|
shouldFail: this.shouldFail,
|
|
135
|
-
runtimeId: this.runtimeId,
|
|
136
155
|
locations: this.locations,
|
|
137
156
|
// private-location instances are assigned with loadAllPrivateLocations()
|
|
138
157
|
privateLocations: undefined,
|
|
139
158
|
tags: this.tags,
|
|
140
159
|
frequency: this.frequency,
|
|
141
160
|
frequencyOffset: this.frequencyOffset,
|
|
142
|
-
|
|
143
|
-
|
|
161
|
+
// If the check does not belong to a group, we still need to send null
|
|
162
|
+
// to make sure that the group gets unassigned from any group it may
|
|
163
|
+
// already have belonged to.
|
|
164
|
+
groupId: this.groupId ?? null,
|
|
144
165
|
// The backend doesn't actually support the `NO_RETRIES` type, it uses `null` instead.
|
|
145
166
|
retryStrategy: this.retryStrategy?.type === 'NO_RETRIES'
|
|
146
167
|
? null
|
|
@@ -158,4 +179,29 @@ class Check extends construct_1.Construct {
|
|
|
158
179
|
}
|
|
159
180
|
}
|
|
160
181
|
exports.Check = Check;
|
|
182
|
+
class RuntimeCheck extends Check {
|
|
183
|
+
runtimeId;
|
|
184
|
+
environmentVariables;
|
|
185
|
+
constructor(logicalId, props) {
|
|
186
|
+
super(logicalId, props);
|
|
187
|
+
const config = this.applyConfigDefaults(props);
|
|
188
|
+
this.runtimeId = config.runtimeId;
|
|
189
|
+
this.environmentVariables = config.environmentVariables ?? [];
|
|
190
|
+
}
|
|
191
|
+
applyConfigDefaults(props) {
|
|
192
|
+
const config = super.applyConfigDefaults(props);
|
|
193
|
+
const defaults = this.configDefaultsGetter(props);
|
|
194
|
+
config.environmentVariables ??= defaults('environmentVariables');
|
|
195
|
+
config.runtimeId ??= defaults('runtimeId');
|
|
196
|
+
return config;
|
|
197
|
+
}
|
|
198
|
+
synthesize() {
|
|
199
|
+
return {
|
|
200
|
+
...super.synthesize(),
|
|
201
|
+
runtimeId: this.runtimeId,
|
|
202
|
+
environmentVariables: this.environmentVariables,
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
exports.RuntimeCheck = RuntimeCheck;
|
|
161
207
|
//# sourceMappingURL=check.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.js","sourceRoot":"","sources":["../../src/constructs/check.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,2CAAuC;AACvC,2CAAuC;AAGvC,6EAAuE;AACvE,uCAAmC;
|
|
1
|
+
{"version":3,"file":"check.js","sourceRoot":"","sources":["../../src/constructs/check.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,2CAAuC;AACvC,2CAAuC;AAGvC,6EAAuE;AACvE,uCAAmC;AAInC,2FAAoF;AAIpF,iDAA+E;AAE/E,sEAA6E;AAuM7E,MAAsB,KAAM,SAAQ,qBAAS;IAC3C,IAAI,CAAQ;IACZ,SAAS,CAAU;IACnB,KAAK,CAAU;IACf,WAAW,CAAU;IACrB,UAAU,CAAU;IACpB,SAAS,CAAsB;IAC/B,gBAAgB,CAAmD;IACnE,IAAI,CAAgB;IACpB,SAAS,CAAS;IAClB,eAAe,CAAS;IACxB,OAAO,CAAM;IACb,aAAa,CAAsC;IACnD,QAAQ,CAAU;IAClB,aAAa,CAAgB;IAC7B,aAAa,CAAkB;IAC/B,sBAAsB,CAAU;IAChC,WAAW,CAAU;IACrB,eAAe,CAAkB;IACjC,eAAe,CAAS,CAAC,8DAA8D;IAEvF,MAAM,CAAU,aAAa,GAAG,OAAO,CAAA;IAEvC,YAAuB,SAAiB,EAAE,KAAiB;QACzD,KAAK,CAAC,KAAK,CAAC,aAAa,EAAE,SAAS,CAAC,CAAA;QACrC,MAAM,MAAM,GAAG,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAA;QAC9C,6FAA6F;QAC7F,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAA;QACvB,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAA;QACjC,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAA;QACzB,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAA;QACrC,IAAI,CAAC,UAAU,GAAG,MAAM,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