@checkly/pulumi 0.0.1-alpha.9 → 0.0.3
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/{bin/LICENSE → LICENSE} +0 -0
- package/README.md +81 -82
- package/{bin/alertChannel.d.ts → alertChannel.d.ts} +0 -0
- package/{bin/alertChannel.js → alertChannel.js} +0 -0
- package/{bin/alertChannel.js.map → alertChannel.js.map} +0 -0
- package/{bin/check.d.ts → check.d.ts} +0 -0
- package/{bin/check.js → check.js} +0 -0
- package/{bin/check.js.map → check.js.map} +0 -0
- package/{bin/checkGroup.d.ts → checkGroup.d.ts} +0 -0
- package/{bin/checkGroup.js → checkGroup.js} +0 -0
- package/{bin/checkGroup.js.map → checkGroup.js.map} +0 -0
- package/{bin/config → config}/index.d.ts +0 -0
- package/{bin/config → config}/index.js +0 -0
- package/{bin/config → config}/index.js.map +0 -0
- package/{bin/config → config}/vars.d.ts +0 -0
- package/{bin/config → config}/vars.js +0 -0
- package/{bin/config → config}/vars.js.map +0 -0
- package/{bin/dashboard.d.ts → dashboard.d.ts} +0 -0
- package/{bin/dashboard.js → dashboard.js} +0 -0
- package/{bin/dashboard.js.map → dashboard.js.map} +0 -0
- package/{bin/environmentVariable.d.ts → environmentVariable.d.ts} +0 -0
- package/{bin/environmentVariable.js → environmentVariable.js} +0 -0
- package/{bin/environmentVariable.js.map → environmentVariable.js.map} +0 -0
- package/{bin/index.d.ts → index.d.ts} +0 -0
- package/{bin/index.js → index.js} +0 -0
- package/{bin/index.js.map → index.js.map} +0 -0
- package/{bin/maintenanceWindow.d.ts → maintenanceWindow.d.ts} +0 -0
- package/{bin/maintenanceWindow.js → maintenanceWindow.js} +0 -0
- package/{bin/maintenanceWindow.js.map → maintenanceWindow.js.map} +0 -0
- package/package.json +27 -29
- package/{bin/package.json.bak → package.json.bak} +1 -1
- package/{bin/provider.d.ts → provider.d.ts} +0 -0
- package/{bin/provider.js → provider.js} +0 -0
- package/{bin/provider.js.map → provider.js.map} +0 -0
- package/scripts/install-pulumi-plugin.js +1 -1
- package/{bin/snippet.d.ts → snippet.d.ts} +0 -0
- package/{bin/snippet.js → snippet.js} +0 -0
- package/{bin/snippet.js.map → snippet.js.map} +0 -0
- package/{bin/triggerCheck.d.ts → triggerCheck.d.ts} +0 -0
- package/{bin/triggerCheck.js → triggerCheck.js} +0 -0
- package/{bin/triggerCheck.js.map → triggerCheck.js.map} +0 -0
- package/{bin/triggerCheckGroup.d.ts → triggerCheckGroup.d.ts} +0 -0
- package/{bin/triggerCheckGroup.js → triggerCheckGroup.js} +0 -0
- package/{bin/triggerCheckGroup.js.map → triggerCheckGroup.js.map} +0 -0
- package/{bin/types → types}/index.d.ts +0 -0
- package/{bin/types → types}/index.js +0 -0
- package/{bin/types → types}/index.js.map +0 -0
- package/{bin/types → types}/input.d.ts +0 -0
- package/{bin/types → types}/input.js +0 -0
- package/{bin/types → types}/input.js.map +0 -0
- package/{bin/types → types}/output.d.ts +0 -0
- package/{bin/types → types}/output.js +0 -0
- package/{bin/types → types}/output.js.map +0 -0
- package/{bin/utilities.d.ts → utilities.d.ts} +0 -0
- package/{bin/utilities.js → utilities.js} +1 -1
- package/{bin/utilities.js.map → utilities.js.map} +1 -1
- package/Pulumi.yaml +0 -0
- package/alertChannel.ts +0 -236
- package/bin/README.md +0 -151
- package/bin/package.json +0 -29
- package/bin/yarn.lock +0 -805
- package/check.ts +0 -453
- package/checkGroup.ts +0 -382
- package/config/index.ts +0 -5
- package/config/vars.ts +0 -33
- package/dashboard.ts +0 -231
- package/environmentVariable.ts +0 -107
- package/index.ts +0 -86
- package/maintenanceWindow.ts +0 -188
- package/provider.ts +0 -62
- package/snippet.ts +0 -98
- package/triggerCheck.ts +0 -123
- package/triggerCheckGroup.ts +0 -123
- package/tsconfig.json +0 -34
- package/types/index.ts +0 -11
- package/types/input.ts +0 -166
- package/types/output.ts +0 -167
- package/utilities.ts +0 -54
package/check.ts
DELETED
|
@@ -1,453 +0,0 @@
|
|
|
1
|
-
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
2
|
-
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
-
|
|
4
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
-
import { input as inputs, output as outputs } from "./types";
|
|
6
|
-
import * as utilities from "./utilities";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Checks allows you to monitor key webapp flows, backend API's and set up alerting, so you get a notification when things break or slow down.
|
|
10
|
-
*/
|
|
11
|
-
export class Check extends pulumi.CustomResource {
|
|
12
|
-
/**
|
|
13
|
-
* Get an existing Check resource's state with the given name, ID, and optional extra
|
|
14
|
-
* properties used to qualify the lookup.
|
|
15
|
-
*
|
|
16
|
-
* @param name The _unique_ name of the resulting resource.
|
|
17
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
18
|
-
* @param state Any extra arguments used during the lookup.
|
|
19
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
20
|
-
*/
|
|
21
|
-
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CheckState, opts?: pulumi.CustomResourceOptions): Check {
|
|
22
|
-
return new Check(name, <any>state, { ...opts, id: id });
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/** @internal */
|
|
26
|
-
public static readonly __pulumiType = 'checkly:index/check:Check';
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Returns true if the given object is an instance of Check. This is designed to work even
|
|
30
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
31
|
-
*/
|
|
32
|
-
public static isInstance(obj: any): obj is Check {
|
|
33
|
-
if (obj === undefined || obj === null) {
|
|
34
|
-
return false;
|
|
35
|
-
}
|
|
36
|
-
return obj['__pulumiType'] === Check.__pulumiType;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Determines if the check is running or not. Possible values `true`, and `false`.
|
|
41
|
-
*/
|
|
42
|
-
public readonly activated!: pulumi.Output<boolean>;
|
|
43
|
-
public readonly alertChannelSubscriptions!: pulumi.Output<outputs.CheckAlertChannelSubscription[] | undefined>;
|
|
44
|
-
public readonly alertSettings!: pulumi.Output<outputs.CheckAlertSettings>;
|
|
45
|
-
/**
|
|
46
|
-
* The response time in milliseconds starting from which a check should be considered degraded. Possible values are between
|
|
47
|
-
* 0 and 30000. (Default `15000`).
|
|
48
|
-
*/
|
|
49
|
-
public readonly degradedResponseTime!: pulumi.Output<number | undefined>;
|
|
50
|
-
/**
|
|
51
|
-
* Setting this to `true` will trigger a retry when a check fails from the failing region and another, randomly selected
|
|
52
|
-
* region before marking the check as failed.
|
|
53
|
-
*/
|
|
54
|
-
public readonly doubleCheck!: pulumi.Output<boolean | undefined>;
|
|
55
|
-
/**
|
|
56
|
-
* Key/value pairs for setting environment variables during check execution. These are only relevant for browser checks.
|
|
57
|
-
* Use global environment variables whenever possible.
|
|
58
|
-
*/
|
|
59
|
-
public readonly environmentVariables!: pulumi.Output<{[key: string]: any} | undefined>;
|
|
60
|
-
/**
|
|
61
|
-
* The frequency in minutes to run the check. Possible values are `0`, `1`, `5`, `10`, `15`, `30`, `60`, `720`, and `1440`.
|
|
62
|
-
*/
|
|
63
|
-
public readonly frequency!: pulumi.Output<number>;
|
|
64
|
-
/**
|
|
65
|
-
* This property only valid for API high frequency checks. To create a hight frequency check, the property `frequency` must
|
|
66
|
-
* be `0` and `frequency_offset` could be `10`, `20` or `30`.
|
|
67
|
-
*/
|
|
68
|
-
public readonly frequencyOffset!: pulumi.Output<number | undefined>;
|
|
69
|
-
/**
|
|
70
|
-
* The id of the check group this check is part of.
|
|
71
|
-
*/
|
|
72
|
-
public readonly groupId!: pulumi.Output<number | undefined>;
|
|
73
|
-
/**
|
|
74
|
-
* The position of this check in a check group. It determines in what order checks are run when a group is triggered from
|
|
75
|
-
* the API or from CI/CD.
|
|
76
|
-
*/
|
|
77
|
-
public readonly groupOrder!: pulumi.Output<number | undefined>;
|
|
78
|
-
/**
|
|
79
|
-
* A valid piece of Node.js code to run in the setup phase.
|
|
80
|
-
*/
|
|
81
|
-
public readonly localSetupScript!: pulumi.Output<string | undefined>;
|
|
82
|
-
/**
|
|
83
|
-
* A valid piece of Node.js code to run in the teardown phase.
|
|
84
|
-
*/
|
|
85
|
-
public readonly localTeardownScript!: pulumi.Output<string | undefined>;
|
|
86
|
-
/**
|
|
87
|
-
* An array of one or more data center locations where to run the this check. (Default ["us-east-1"])
|
|
88
|
-
*/
|
|
89
|
-
public readonly locations!: pulumi.Output<string[] | undefined>;
|
|
90
|
-
/**
|
|
91
|
-
* The response time in milliseconds starting from which a check should be considered failing. Possible values are between
|
|
92
|
-
* 0 and 30000. (Default `30000`).
|
|
93
|
-
*/
|
|
94
|
-
public readonly maxResponseTime!: pulumi.Output<number | undefined>;
|
|
95
|
-
/**
|
|
96
|
-
* Determines if any notifications will be sent out when a check fails/degrades/recovers.
|
|
97
|
-
*/
|
|
98
|
-
public readonly muted!: pulumi.Output<boolean | undefined>;
|
|
99
|
-
/**
|
|
100
|
-
* The name of the check.
|
|
101
|
-
*/
|
|
102
|
-
public readonly name!: pulumi.Output<string>;
|
|
103
|
-
/**
|
|
104
|
-
* An API check might have one request config.
|
|
105
|
-
*/
|
|
106
|
-
public readonly request!: pulumi.Output<outputs.CheckRequest | undefined>;
|
|
107
|
-
/**
|
|
108
|
-
* The id of the runtime to use for this check.
|
|
109
|
-
*/
|
|
110
|
-
public readonly runtimeId!: pulumi.Output<string | undefined>;
|
|
111
|
-
/**
|
|
112
|
-
* A valid piece of Node.js JavaScript code describing a browser interaction with the Puppeteer/Playwright framework or a
|
|
113
|
-
* reference to an external JavaScript file.
|
|
114
|
-
*/
|
|
115
|
-
public readonly script!: pulumi.Output<string | undefined>;
|
|
116
|
-
/**
|
|
117
|
-
* An ID reference to a snippet to use in the setup phase of an API check.
|
|
118
|
-
*/
|
|
119
|
-
public readonly setupSnippetId!: pulumi.Output<number | undefined>;
|
|
120
|
-
/**
|
|
121
|
-
* Allows to invert the behaviour of when a check is considered to fail. Allows for validating error status like 404.
|
|
122
|
-
*/
|
|
123
|
-
public readonly shouldFail!: pulumi.Output<boolean | undefined>;
|
|
124
|
-
/**
|
|
125
|
-
* Determines if the SSL certificate should be validated for expiry.
|
|
126
|
-
*
|
|
127
|
-
* @deprecated The property `ssl_check` is deprecated and it's ignored by the Checkly Public API. It will be removed in a future version.
|
|
128
|
-
*/
|
|
129
|
-
public readonly sslCheck!: pulumi.Output<boolean | undefined>;
|
|
130
|
-
/**
|
|
131
|
-
* A list of tags for organizing and filtering checks.
|
|
132
|
-
*/
|
|
133
|
-
public readonly tags!: pulumi.Output<string[] | undefined>;
|
|
134
|
-
/**
|
|
135
|
-
* An ID reference to a snippet to use in the teardown phase of an API check.
|
|
136
|
-
*/
|
|
137
|
-
public readonly teardownSnippetId!: pulumi.Output<number | undefined>;
|
|
138
|
-
/**
|
|
139
|
-
* The type of the check. Possible values are `API`, and `BROWSER`.
|
|
140
|
-
*/
|
|
141
|
-
public readonly type!: pulumi.Output<string>;
|
|
142
|
-
/**
|
|
143
|
-
* When true, the account level alert settings will be used, not the alert setting defined on this check.
|
|
144
|
-
*/
|
|
145
|
-
public readonly useGlobalAlertSettings!: pulumi.Output<boolean | undefined>;
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Create a Check resource with the given unique name, arguments, and options.
|
|
149
|
-
*
|
|
150
|
-
* @param name The _unique_ name of the resource.
|
|
151
|
-
* @param args The arguments to use to populate this resource's properties.
|
|
152
|
-
* @param opts A bag of options that control this resource's behavior.
|
|
153
|
-
*/
|
|
154
|
-
constructor(name: string, args: CheckArgs, opts?: pulumi.CustomResourceOptions)
|
|
155
|
-
constructor(name: string, argsOrState?: CheckArgs | CheckState, opts?: pulumi.CustomResourceOptions) {
|
|
156
|
-
let resourceInputs: pulumi.Inputs = {};
|
|
157
|
-
opts = opts || {};
|
|
158
|
-
if (opts.id) {
|
|
159
|
-
const state = argsOrState as CheckState | undefined;
|
|
160
|
-
resourceInputs["activated"] = state ? state.activated : undefined;
|
|
161
|
-
resourceInputs["alertChannelSubscriptions"] = state ? state.alertChannelSubscriptions : undefined;
|
|
162
|
-
resourceInputs["alertSettings"] = state ? state.alertSettings : undefined;
|
|
163
|
-
resourceInputs["degradedResponseTime"] = state ? state.degradedResponseTime : undefined;
|
|
164
|
-
resourceInputs["doubleCheck"] = state ? state.doubleCheck : undefined;
|
|
165
|
-
resourceInputs["environmentVariables"] = state ? state.environmentVariables : undefined;
|
|
166
|
-
resourceInputs["frequency"] = state ? state.frequency : undefined;
|
|
167
|
-
resourceInputs["frequencyOffset"] = state ? state.frequencyOffset : undefined;
|
|
168
|
-
resourceInputs["groupId"] = state ? state.groupId : undefined;
|
|
169
|
-
resourceInputs["groupOrder"] = state ? state.groupOrder : undefined;
|
|
170
|
-
resourceInputs["localSetupScript"] = state ? state.localSetupScript : undefined;
|
|
171
|
-
resourceInputs["localTeardownScript"] = state ? state.localTeardownScript : undefined;
|
|
172
|
-
resourceInputs["locations"] = state ? state.locations : undefined;
|
|
173
|
-
resourceInputs["maxResponseTime"] = state ? state.maxResponseTime : undefined;
|
|
174
|
-
resourceInputs["muted"] = state ? state.muted : undefined;
|
|
175
|
-
resourceInputs["name"] = state ? state.name : undefined;
|
|
176
|
-
resourceInputs["request"] = state ? state.request : undefined;
|
|
177
|
-
resourceInputs["runtimeId"] = state ? state.runtimeId : undefined;
|
|
178
|
-
resourceInputs["script"] = state ? state.script : undefined;
|
|
179
|
-
resourceInputs["setupSnippetId"] = state ? state.setupSnippetId : undefined;
|
|
180
|
-
resourceInputs["shouldFail"] = state ? state.shouldFail : undefined;
|
|
181
|
-
resourceInputs["sslCheck"] = state ? state.sslCheck : undefined;
|
|
182
|
-
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
183
|
-
resourceInputs["teardownSnippetId"] = state ? state.teardownSnippetId : undefined;
|
|
184
|
-
resourceInputs["type"] = state ? state.type : undefined;
|
|
185
|
-
resourceInputs["useGlobalAlertSettings"] = state ? state.useGlobalAlertSettings : undefined;
|
|
186
|
-
} else {
|
|
187
|
-
const args = argsOrState as CheckArgs | undefined;
|
|
188
|
-
if ((!args || args.activated === undefined) && !opts.urn) {
|
|
189
|
-
throw new Error("Missing required property 'activated'");
|
|
190
|
-
}
|
|
191
|
-
if ((!args || args.frequency === undefined) && !opts.urn) {
|
|
192
|
-
throw new Error("Missing required property 'frequency'");
|
|
193
|
-
}
|
|
194
|
-
if ((!args || args.type === undefined) && !opts.urn) {
|
|
195
|
-
throw new Error("Missing required property 'type'");
|
|
196
|
-
}
|
|
197
|
-
resourceInputs["activated"] = args ? args.activated : undefined;
|
|
198
|
-
resourceInputs["alertChannelSubscriptions"] = args ? args.alertChannelSubscriptions : undefined;
|
|
199
|
-
resourceInputs["alertSettings"] = args ? args.alertSettings : undefined;
|
|
200
|
-
resourceInputs["degradedResponseTime"] = args ? args.degradedResponseTime : undefined;
|
|
201
|
-
resourceInputs["doubleCheck"] = args ? args.doubleCheck : undefined;
|
|
202
|
-
resourceInputs["environmentVariables"] = args ? args.environmentVariables : undefined;
|
|
203
|
-
resourceInputs["frequency"] = args ? args.frequency : undefined;
|
|
204
|
-
resourceInputs["frequencyOffset"] = args ? args.frequencyOffset : undefined;
|
|
205
|
-
resourceInputs["groupId"] = args ? args.groupId : undefined;
|
|
206
|
-
resourceInputs["groupOrder"] = args ? args.groupOrder : undefined;
|
|
207
|
-
resourceInputs["localSetupScript"] = args ? args.localSetupScript : undefined;
|
|
208
|
-
resourceInputs["localTeardownScript"] = args ? args.localTeardownScript : undefined;
|
|
209
|
-
resourceInputs["locations"] = args ? args.locations : undefined;
|
|
210
|
-
resourceInputs["maxResponseTime"] = args ? args.maxResponseTime : undefined;
|
|
211
|
-
resourceInputs["muted"] = args ? args.muted : undefined;
|
|
212
|
-
resourceInputs["name"] = args ? args.name : undefined;
|
|
213
|
-
resourceInputs["request"] = args ? args.request : undefined;
|
|
214
|
-
resourceInputs["runtimeId"] = args ? args.runtimeId : undefined;
|
|
215
|
-
resourceInputs["script"] = args ? args.script : undefined;
|
|
216
|
-
resourceInputs["setupSnippetId"] = args ? args.setupSnippetId : undefined;
|
|
217
|
-
resourceInputs["shouldFail"] = args ? args.shouldFail : undefined;
|
|
218
|
-
resourceInputs["sslCheck"] = args ? args.sslCheck : undefined;
|
|
219
|
-
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
220
|
-
resourceInputs["teardownSnippetId"] = args ? args.teardownSnippetId : undefined;
|
|
221
|
-
resourceInputs["type"] = args ? args.type : undefined;
|
|
222
|
-
resourceInputs["useGlobalAlertSettings"] = args ? args.useGlobalAlertSettings : undefined;
|
|
223
|
-
}
|
|
224
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
225
|
-
super(Check.__pulumiType, name, resourceInputs, opts);
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* Input properties used for looking up and filtering Check resources.
|
|
231
|
-
*/
|
|
232
|
-
export interface CheckState {
|
|
233
|
-
/**
|
|
234
|
-
* Determines if the check is running or not. Possible values `true`, and `false`.
|
|
235
|
-
*/
|
|
236
|
-
activated?: pulumi.Input<boolean>;
|
|
237
|
-
alertChannelSubscriptions?: pulumi.Input<pulumi.Input<inputs.CheckAlertChannelSubscription>[]>;
|
|
238
|
-
alertSettings?: pulumi.Input<inputs.CheckAlertSettings>;
|
|
239
|
-
/**
|
|
240
|
-
* The response time in milliseconds starting from which a check should be considered degraded. Possible values are between
|
|
241
|
-
* 0 and 30000. (Default `15000`).
|
|
242
|
-
*/
|
|
243
|
-
degradedResponseTime?: pulumi.Input<number>;
|
|
244
|
-
/**
|
|
245
|
-
* Setting this to `true` will trigger a retry when a check fails from the failing region and another, randomly selected
|
|
246
|
-
* region before marking the check as failed.
|
|
247
|
-
*/
|
|
248
|
-
doubleCheck?: pulumi.Input<boolean>;
|
|
249
|
-
/**
|
|
250
|
-
* Key/value pairs for setting environment variables during check execution. These are only relevant for browser checks.
|
|
251
|
-
* Use global environment variables whenever possible.
|
|
252
|
-
*/
|
|
253
|
-
environmentVariables?: pulumi.Input<{[key: string]: any}>;
|
|
254
|
-
/**
|
|
255
|
-
* The frequency in minutes to run the check. Possible values are `0`, `1`, `5`, `10`, `15`, `30`, `60`, `720`, and `1440`.
|
|
256
|
-
*/
|
|
257
|
-
frequency?: pulumi.Input<number>;
|
|
258
|
-
/**
|
|
259
|
-
* This property only valid for API high frequency checks. To create a hight frequency check, the property `frequency` must
|
|
260
|
-
* be `0` and `frequency_offset` could be `10`, `20` or `30`.
|
|
261
|
-
*/
|
|
262
|
-
frequencyOffset?: pulumi.Input<number>;
|
|
263
|
-
/**
|
|
264
|
-
* The id of the check group this check is part of.
|
|
265
|
-
*/
|
|
266
|
-
groupId?: pulumi.Input<number>;
|
|
267
|
-
/**
|
|
268
|
-
* The position of this check in a check group. It determines in what order checks are run when a group is triggered from
|
|
269
|
-
* the API or from CI/CD.
|
|
270
|
-
*/
|
|
271
|
-
groupOrder?: pulumi.Input<number>;
|
|
272
|
-
/**
|
|
273
|
-
* A valid piece of Node.js code to run in the setup phase.
|
|
274
|
-
*/
|
|
275
|
-
localSetupScript?: pulumi.Input<string>;
|
|
276
|
-
/**
|
|
277
|
-
* A valid piece of Node.js code to run in the teardown phase.
|
|
278
|
-
*/
|
|
279
|
-
localTeardownScript?: pulumi.Input<string>;
|
|
280
|
-
/**
|
|
281
|
-
* An array of one or more data center locations where to run the this check. (Default ["us-east-1"])
|
|
282
|
-
*/
|
|
283
|
-
locations?: pulumi.Input<pulumi.Input<string>[]>;
|
|
284
|
-
/**
|
|
285
|
-
* The response time in milliseconds starting from which a check should be considered failing. Possible values are between
|
|
286
|
-
* 0 and 30000. (Default `30000`).
|
|
287
|
-
*/
|
|
288
|
-
maxResponseTime?: pulumi.Input<number>;
|
|
289
|
-
/**
|
|
290
|
-
* Determines if any notifications will be sent out when a check fails/degrades/recovers.
|
|
291
|
-
*/
|
|
292
|
-
muted?: pulumi.Input<boolean>;
|
|
293
|
-
/**
|
|
294
|
-
* The name of the check.
|
|
295
|
-
*/
|
|
296
|
-
name?: pulumi.Input<string>;
|
|
297
|
-
/**
|
|
298
|
-
* An API check might have one request config.
|
|
299
|
-
*/
|
|
300
|
-
request?: pulumi.Input<inputs.CheckRequest>;
|
|
301
|
-
/**
|
|
302
|
-
* The id of the runtime to use for this check.
|
|
303
|
-
*/
|
|
304
|
-
runtimeId?: pulumi.Input<string>;
|
|
305
|
-
/**
|
|
306
|
-
* A valid piece of Node.js JavaScript code describing a browser interaction with the Puppeteer/Playwright framework or a
|
|
307
|
-
* reference to an external JavaScript file.
|
|
308
|
-
*/
|
|
309
|
-
script?: pulumi.Input<string>;
|
|
310
|
-
/**
|
|
311
|
-
* An ID reference to a snippet to use in the setup phase of an API check.
|
|
312
|
-
*/
|
|
313
|
-
setupSnippetId?: pulumi.Input<number>;
|
|
314
|
-
/**
|
|
315
|
-
* Allows to invert the behaviour of when a check is considered to fail. Allows for validating error status like 404.
|
|
316
|
-
*/
|
|
317
|
-
shouldFail?: pulumi.Input<boolean>;
|
|
318
|
-
/**
|
|
319
|
-
* Determines if the SSL certificate should be validated for expiry.
|
|
320
|
-
*
|
|
321
|
-
* @deprecated The property `ssl_check` is deprecated and it's ignored by the Checkly Public API. It will be removed in a future version.
|
|
322
|
-
*/
|
|
323
|
-
sslCheck?: pulumi.Input<boolean>;
|
|
324
|
-
/**
|
|
325
|
-
* A list of tags for organizing and filtering checks.
|
|
326
|
-
*/
|
|
327
|
-
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
328
|
-
/**
|
|
329
|
-
* An ID reference to a snippet to use in the teardown phase of an API check.
|
|
330
|
-
*/
|
|
331
|
-
teardownSnippetId?: pulumi.Input<number>;
|
|
332
|
-
/**
|
|
333
|
-
* The type of the check. Possible values are `API`, and `BROWSER`.
|
|
334
|
-
*/
|
|
335
|
-
type?: pulumi.Input<string>;
|
|
336
|
-
/**
|
|
337
|
-
* When true, the account level alert settings will be used, not the alert setting defined on this check.
|
|
338
|
-
*/
|
|
339
|
-
useGlobalAlertSettings?: pulumi.Input<boolean>;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
/**
|
|
343
|
-
* The set of arguments for constructing a Check resource.
|
|
344
|
-
*/
|
|
345
|
-
export interface CheckArgs {
|
|
346
|
-
/**
|
|
347
|
-
* Determines if the check is running or not. Possible values `true`, and `false`.
|
|
348
|
-
*/
|
|
349
|
-
activated: pulumi.Input<boolean>;
|
|
350
|
-
alertChannelSubscriptions?: pulumi.Input<pulumi.Input<inputs.CheckAlertChannelSubscription>[]>;
|
|
351
|
-
alertSettings?: pulumi.Input<inputs.CheckAlertSettings>;
|
|
352
|
-
/**
|
|
353
|
-
* The response time in milliseconds starting from which a check should be considered degraded. Possible values are between
|
|
354
|
-
* 0 and 30000. (Default `15000`).
|
|
355
|
-
*/
|
|
356
|
-
degradedResponseTime?: pulumi.Input<number>;
|
|
357
|
-
/**
|
|
358
|
-
* Setting this to `true` will trigger a retry when a check fails from the failing region and another, randomly selected
|
|
359
|
-
* region before marking the check as failed.
|
|
360
|
-
*/
|
|
361
|
-
doubleCheck?: pulumi.Input<boolean>;
|
|
362
|
-
/**
|
|
363
|
-
* Key/value pairs for setting environment variables during check execution. These are only relevant for browser checks.
|
|
364
|
-
* Use global environment variables whenever possible.
|
|
365
|
-
*/
|
|
366
|
-
environmentVariables?: pulumi.Input<{[key: string]: any}>;
|
|
367
|
-
/**
|
|
368
|
-
* The frequency in minutes to run the check. Possible values are `0`, `1`, `5`, `10`, `15`, `30`, `60`, `720`, and `1440`.
|
|
369
|
-
*/
|
|
370
|
-
frequency: pulumi.Input<number>;
|
|
371
|
-
/**
|
|
372
|
-
* This property only valid for API high frequency checks. To create a hight frequency check, the property `frequency` must
|
|
373
|
-
* be `0` and `frequency_offset` could be `10`, `20` or `30`.
|
|
374
|
-
*/
|
|
375
|
-
frequencyOffset?: pulumi.Input<number>;
|
|
376
|
-
/**
|
|
377
|
-
* The id of the check group this check is part of.
|
|
378
|
-
*/
|
|
379
|
-
groupId?: pulumi.Input<number>;
|
|
380
|
-
/**
|
|
381
|
-
* The position of this check in a check group. It determines in what order checks are run when a group is triggered from
|
|
382
|
-
* the API or from CI/CD.
|
|
383
|
-
*/
|
|
384
|
-
groupOrder?: pulumi.Input<number>;
|
|
385
|
-
/**
|
|
386
|
-
* A valid piece of Node.js code to run in the setup phase.
|
|
387
|
-
*/
|
|
388
|
-
localSetupScript?: pulumi.Input<string>;
|
|
389
|
-
/**
|
|
390
|
-
* A valid piece of Node.js code to run in the teardown phase.
|
|
391
|
-
*/
|
|
392
|
-
localTeardownScript?: pulumi.Input<string>;
|
|
393
|
-
/**
|
|
394
|
-
* An array of one or more data center locations where to run the this check. (Default ["us-east-1"])
|
|
395
|
-
*/
|
|
396
|
-
locations?: pulumi.Input<pulumi.Input<string>[]>;
|
|
397
|
-
/**
|
|
398
|
-
* The response time in milliseconds starting from which a check should be considered failing. Possible values are between
|
|
399
|
-
* 0 and 30000. (Default `30000`).
|
|
400
|
-
*/
|
|
401
|
-
maxResponseTime?: pulumi.Input<number>;
|
|
402
|
-
/**
|
|
403
|
-
* Determines if any notifications will be sent out when a check fails/degrades/recovers.
|
|
404
|
-
*/
|
|
405
|
-
muted?: pulumi.Input<boolean>;
|
|
406
|
-
/**
|
|
407
|
-
* The name of the check.
|
|
408
|
-
*/
|
|
409
|
-
name?: pulumi.Input<string>;
|
|
410
|
-
/**
|
|
411
|
-
* An API check might have one request config.
|
|
412
|
-
*/
|
|
413
|
-
request?: pulumi.Input<inputs.CheckRequest>;
|
|
414
|
-
/**
|
|
415
|
-
* The id of the runtime to use for this check.
|
|
416
|
-
*/
|
|
417
|
-
runtimeId?: pulumi.Input<string>;
|
|
418
|
-
/**
|
|
419
|
-
* A valid piece of Node.js JavaScript code describing a browser interaction with the Puppeteer/Playwright framework or a
|
|
420
|
-
* reference to an external JavaScript file.
|
|
421
|
-
*/
|
|
422
|
-
script?: pulumi.Input<string>;
|
|
423
|
-
/**
|
|
424
|
-
* An ID reference to a snippet to use in the setup phase of an API check.
|
|
425
|
-
*/
|
|
426
|
-
setupSnippetId?: pulumi.Input<number>;
|
|
427
|
-
/**
|
|
428
|
-
* Allows to invert the behaviour of when a check is considered to fail. Allows for validating error status like 404.
|
|
429
|
-
*/
|
|
430
|
-
shouldFail?: pulumi.Input<boolean>;
|
|
431
|
-
/**
|
|
432
|
-
* Determines if the SSL certificate should be validated for expiry.
|
|
433
|
-
*
|
|
434
|
-
* @deprecated The property `ssl_check` is deprecated and it's ignored by the Checkly Public API. It will be removed in a future version.
|
|
435
|
-
*/
|
|
436
|
-
sslCheck?: pulumi.Input<boolean>;
|
|
437
|
-
/**
|
|
438
|
-
* A list of tags for organizing and filtering checks.
|
|
439
|
-
*/
|
|
440
|
-
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
441
|
-
/**
|
|
442
|
-
* An ID reference to a snippet to use in the teardown phase of an API check.
|
|
443
|
-
*/
|
|
444
|
-
teardownSnippetId?: pulumi.Input<number>;
|
|
445
|
-
/**
|
|
446
|
-
* The type of the check. Possible values are `API`, and `BROWSER`.
|
|
447
|
-
*/
|
|
448
|
-
type: pulumi.Input<string>;
|
|
449
|
-
/**
|
|
450
|
-
* When true, the account level alert settings will be used, not the alert setting defined on this check.
|
|
451
|
-
*/
|
|
452
|
-
useGlobalAlertSettings?: pulumi.Input<boolean>;
|
|
453
|
-
}
|