@checkly/pulumi 1.1.4 → 2.0.0-alpha.1738673134

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.
Files changed (55) hide show
  1. package/LICENSE +202 -21
  2. package/README.md +39 -137
  3. package/alertChannel.d.ts +44 -20
  4. package/alertChannel.js +41 -19
  5. package/alertChannel.js.map +1 -1
  6. package/check.d.ts +101 -61
  7. package/check.js +8 -0
  8. package/check.js.map +1 -1
  9. package/checkGroup.d.ts +56 -104
  10. package/checkGroup.js +8 -87
  11. package/checkGroup.js.map +1 -1
  12. package/dashboard.d.ts +29 -9
  13. package/dashboard.js +12 -6
  14. package/dashboard.js.map +1 -1
  15. package/environmentVariable.d.ts +5 -2
  16. package/environmentVariable.js +4 -2
  17. package/environmentVariable.js.map +1 -1
  18. package/getStaticIps.d.ts +50 -0
  19. package/getStaticIps.js +26 -0
  20. package/getStaticIps.js.map +1 -0
  21. package/heartbeatCheck.d.ts +129 -0
  22. package/heartbeatCheck.js +91 -0
  23. package/heartbeatCheck.js.map +1 -0
  24. package/index.d.ts +42 -11
  25. package/index.js +47 -50
  26. package/index.js.map +1 -1
  27. package/maintenanceWindow.d.ts +5 -4
  28. package/maintenanceWindow.js +5 -4
  29. package/maintenanceWindow.js.map +1 -1
  30. package/package.json +7 -7
  31. package/privateLocation.d.ts +2 -2
  32. package/privateLocation.js +4 -2
  33. package/privateLocation.js.map +1 -1
  34. package/provider.js +1 -1
  35. package/provider.js.map +1 -1
  36. package/snippet.d.ts +20 -0
  37. package/snippet.js +20 -0
  38. package/snippet.js.map +1 -1
  39. package/tcpCheck.d.ts +342 -0
  40. package/tcpCheck.js +169 -0
  41. package/tcpCheck.js.map +1 -0
  42. package/triggerCheck.d.ts +2 -2
  43. package/triggerCheck.js +2 -2
  44. package/triggerCheckGroup.d.ts +2 -2
  45. package/triggerCheckGroup.js +2 -2
  46. package/types/index.js.map +1 -1
  47. package/types/input.d.ts +377 -7
  48. package/types/input.js.map +1 -1
  49. package/types/output.d.ts +383 -13
  50. package/types/output.js.map +1 -1
  51. package/utilities.d.ts +4 -0
  52. package/utilities.js +45 -1
  53. package/utilities.js.map +1 -1
  54. package/package.json.bak +0 -29
  55. package/scripts/install-pulumi-plugin.js +0 -26
@@ -10,10 +10,10 @@ const utilities = require("./utilities");
10
10
  *
11
11
  * ```typescript
12
12
  * import * as pulumi from "@pulumi/pulumi";
13
- * import * as checkly from "@pulumi/checkly";
13
+ * import * as checkly from "@checkly/pulumi";
14
14
  *
15
- * // Simple Private Location example
16
15
  * const location = new checkly.PrivateLocation("location", {
16
+ * name: "New Private Location",
17
17
  * slugName: "new-private-location",
18
18
  * });
19
19
  * ```
@@ -62,6 +62,8 @@ class PrivateLocation extends pulumi.CustomResource {
62
62
  resourceInputs["keys"] = undefined /*out*/;
63
63
  }
64
64
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
65
+ const secretOpts = { additionalSecretOutputs: ["keys"] };
66
+ opts = pulumi.mergeOptions(opts, secretOpts);
65
67
  super(PrivateLocation.__pulumiType, name, resourceInputs, opts);
66
68
  }
67
69
  }
@@ -1 +1 @@
1
- {"version":3,"file":"privateLocation.js","sourceRoot":"","sources":["../privateLocation.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;GAYG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACtE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE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UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AA5EL,0CA6EC;AA/DG,gBAAgB;AACO,4BAAY,GAAG,+CAA+C,CAAC"}
package/provider.js CHANGED
@@ -20,7 +20,7 @@ class Provider extends pulumi.ProviderResource {
20
20
  if (obj === undefined || obj === null) {
21
21
  return false;
22
22
  }
23
- return obj['__pulumiType'] === Provider.__pulumiType;
23
+ return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
24
24
  }
25
25
  /**
26
26
  * Create a Provider resource with the given unique name, arguments, and options.
package/provider.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IAMD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAkB,EAAE,IAA6B;QACvE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;YACI,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACnD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,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oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AAvCL,4BAwCC;AAvCG,gBAAgB;AACO,qBAAY,GAAG,SAAS,CAAC"}
package/snippet.d.ts CHANGED
@@ -1,4 +1,24 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * ## Example Usage
4
+ *
5
+ * ```typescript
6
+ * import * as pulumi from "@pulumi/pulumi";
7
+ * import * as checkly from "@checkly/pulumi";
8
+ *
9
+ * const example1 = new checkly.Snippet("example_1", {
10
+ * name: "Example 1",
11
+ * script: "console.log('test');",
12
+ * });
13
+ * // An alternative way to use multi-line script.
14
+ * const example2 = new checkly.Snippet("example_2", {
15
+ * name: "Example 2",
16
+ * script: ` console.log('test1');
17
+ * console.log('test2');
18
+ * `,
19
+ * });
20
+ * ```
21
+ */
2
22
  export declare class Snippet extends pulumi.CustomResource {
3
23
  /**
4
24
  * Get an existing Snippet resource's state with the given name, ID, and optional extra
package/snippet.js CHANGED
@@ -5,6 +5,26 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.Snippet = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
+ /**
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as checkly from "@checkly/pulumi";
14
+ *
15
+ * const example1 = new checkly.Snippet("example_1", {
16
+ * name: "Example 1",
17
+ * script: "console.log('test');",
18
+ * });
19
+ * // An alternative way to use multi-line script.
20
+ * const example2 = new checkly.Snippet("example_2", {
21
+ * name: "Example 2",
22
+ * script: ` console.log('test1');
23
+ * console.log('test2');
24
+ * `,
25
+ * });
26
+ * ```
27
+ */
8
28
  class Snippet extends pulumi.CustomResource {
9
29
  /**
10
30
  * Get an existing Snippet resource's state with the given name, ID, and optional extra
package/snippet.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"snippet.js","sourceRoot":"","sources":["../snippet.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;IAmBD,YAAY,IAAY,EAAE,WAAwC,EAAE,IAAmC;QACnG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAuC,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,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;;AA9DL,0BA+DC;AAjDG,gBAAgB;AACO,oBAAY,GAAG,+BAA+B,CAAC"}
package/tcpCheck.d.ts ADDED
@@ -0,0 +1,342 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * TCP checks allow you to monitor remote endpoints at a lower level.
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as checkly from "@checkly/pulumi";
12
+ *
13
+ * // Basic TCP Check
14
+ * const example_tcp_check = new checkly.TcpCheck("example-tcp-check", {
15
+ * name: "Example TCP check",
16
+ * activated: true,
17
+ * shouldFail: false,
18
+ * frequency: 1,
19
+ * useGlobalAlertSettings: true,
20
+ * locations: ["us-west-1"],
21
+ * request: {
22
+ * hostname: "api.checklyhq.com",
23
+ * port: 80,
24
+ * },
25
+ * });
26
+ * // A more complex example using assertions and setting alerts
27
+ * const example_tcp_check_2 = new checkly.TcpCheck("example-tcp-check-2", {
28
+ * name: "Example TCP check 2",
29
+ * activated: true,
30
+ * shouldFail: true,
31
+ * frequency: 1,
32
+ * degradedResponseTime: 5000,
33
+ * maxResponseTime: 10000,
34
+ * locations: [
35
+ * "us-west-1",
36
+ * "ap-northeast-1",
37
+ * "ap-south-1",
38
+ * ],
39
+ * alertSettings: {
40
+ * escalationType: "RUN_BASED",
41
+ * runBasedEscalations: [{
42
+ * failedRunThreshold: 1,
43
+ * }],
44
+ * reminders: [{
45
+ * amount: 1,
46
+ * }],
47
+ * },
48
+ * retryStrategy: {
49
+ * type: "FIXED",
50
+ * baseBackoffSeconds: 60,
51
+ * maxDurationSeconds: 600,
52
+ * maxRetries: 3,
53
+ * sameRegion: false,
54
+ * },
55
+ * request: {
56
+ * hostname: "api.checklyhq.com",
57
+ * port: 80,
58
+ * data: "hello",
59
+ * assertions: [
60
+ * {
61
+ * source: "RESPONSE_DATA",
62
+ * property: "",
63
+ * comparison: "CONTAINS",
64
+ * target: "welcome",
65
+ * },
66
+ * {
67
+ * source: "RESPONSE_TIME",
68
+ * property: "",
69
+ * comparison: "LESS_THAN",
70
+ * target: "2000",
71
+ * },
72
+ * ],
73
+ * },
74
+ * });
75
+ * ```
76
+ */
77
+ export declare class TcpCheck extends pulumi.CustomResource {
78
+ /**
79
+ * Get an existing TcpCheck resource's state with the given name, ID, and optional extra
80
+ * properties used to qualify the lookup.
81
+ *
82
+ * @param name The _unique_ name of the resulting resource.
83
+ * @param id The _unique_ provider ID of the resource to lookup.
84
+ * @param state Any extra arguments used during the lookup.
85
+ * @param opts Optional settings to control the behavior of the CustomResource.
86
+ */
87
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TcpCheckState, opts?: pulumi.CustomResourceOptions): TcpCheck;
88
+ /**
89
+ * Returns true if the given object is an instance of TcpCheck. This is designed to work even
90
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
91
+ */
92
+ static isInstance(obj: any): obj is TcpCheck;
93
+ /**
94
+ * Determines if the check is running or not. Possible values `true`, and `false`.
95
+ */
96
+ readonly activated: pulumi.Output<boolean>;
97
+ /**
98
+ * An array of channel IDs and whether they're activated or not. If you don't set at least one alert subscription for your check, we won't be able to alert you in case something goes wrong with it.
99
+ */
100
+ readonly alertChannelSubscriptions: pulumi.Output<outputs.TcpCheckAlertChannelSubscription[] | undefined>;
101
+ readonly alertSettings: pulumi.Output<outputs.TcpCheckAlertSettings>;
102
+ /**
103
+ * The response time in milliseconds starting from which a check should be considered degraded. Possible values are between 0 and 30000. (Default `15000`).
104
+ */
105
+ readonly degradedResponseTime: pulumi.Output<number | undefined>;
106
+ /**
107
+ * The frequency in minutes to run the check. Possible values are `0`, `1`, `2`, `5`, `10`, `15`, `30`, `60`, `120`, `180`, `360`, `720`, and `1440`.
108
+ */
109
+ readonly frequency: pulumi.Output<number>;
110
+ /**
111
+ * To create a high frequency check, the property `frequency` must be `0` and `frequencyOffset` can be `10`, `20` or `30`.
112
+ */
113
+ readonly frequencyOffset: pulumi.Output<number | undefined>;
114
+ /**
115
+ * The id of the check group this check is part of.
116
+ */
117
+ readonly groupId: pulumi.Output<number | undefined>;
118
+ /**
119
+ * The position of this check in a check group. It determines in what order checks are run when a group is triggered from the API or from CI/CD.
120
+ */
121
+ readonly groupOrder: pulumi.Output<number | undefined>;
122
+ /**
123
+ * An array of one or more data center locations where to run the this check. (Default ["us-east-1"])
124
+ */
125
+ readonly locations: pulumi.Output<string[] | undefined>;
126
+ /**
127
+ * The response time in milliseconds starting from which a check should be considered failing. Possible values are between 0 and 30000. (Default `30000`).
128
+ */
129
+ readonly maxResponseTime: pulumi.Output<number | undefined>;
130
+ /**
131
+ * Determines if any notifications will be sent out when a check fails/degrades/recovers.
132
+ */
133
+ readonly muted: pulumi.Output<boolean | undefined>;
134
+ /**
135
+ * The name of the check.
136
+ */
137
+ readonly name: pulumi.Output<string>;
138
+ /**
139
+ * An array of one or more private locations slugs.
140
+ */
141
+ readonly privateLocations: pulumi.Output<string[] | undefined>;
142
+ /**
143
+ * The parameters for the TCP connection.
144
+ */
145
+ readonly request: pulumi.Output<outputs.TcpCheckRequest>;
146
+ /**
147
+ * A strategy for retrying failed check runs.
148
+ */
149
+ readonly retryStrategy: pulumi.Output<outputs.TcpCheckRetryStrategy>;
150
+ /**
151
+ * Determines if the check should run in all selected locations in parallel or round-robin.
152
+ */
153
+ readonly runParallel: pulumi.Output<boolean | undefined>;
154
+ /**
155
+ * The ID of the runtime to use for this check.
156
+ */
157
+ readonly runtimeId: pulumi.Output<string | undefined>;
158
+ /**
159
+ * Allows to invert the behaviour of when a check is considered to fail.
160
+ */
161
+ readonly shouldFail: pulumi.Output<boolean | undefined>;
162
+ /**
163
+ * A list of tags for organizing and filtering checks.
164
+ */
165
+ readonly tags: pulumi.Output<string[] | undefined>;
166
+ /**
167
+ * When true, the account level alert settings will be used, not the alert setting defined on this check.
168
+ */
169
+ readonly useGlobalAlertSettings: pulumi.Output<boolean | undefined>;
170
+ /**
171
+ * Create a TcpCheck resource with the given unique name, arguments, and options.
172
+ *
173
+ * @param name The _unique_ name of the resource.
174
+ * @param args The arguments to use to populate this resource's properties.
175
+ * @param opts A bag of options that control this resource's behavior.
176
+ */
177
+ constructor(name: string, args: TcpCheckArgs, opts?: pulumi.CustomResourceOptions);
178
+ }
179
+ /**
180
+ * Input properties used for looking up and filtering TcpCheck resources.
181
+ */
182
+ export interface TcpCheckState {
183
+ /**
184
+ * Determines if the check is running or not. Possible values `true`, and `false`.
185
+ */
186
+ activated?: pulumi.Input<boolean>;
187
+ /**
188
+ * An array of channel IDs and whether they're activated or not. If you don't set at least one alert subscription for your check, we won't be able to alert you in case something goes wrong with it.
189
+ */
190
+ alertChannelSubscriptions?: pulumi.Input<pulumi.Input<inputs.TcpCheckAlertChannelSubscription>[]>;
191
+ alertSettings?: pulumi.Input<inputs.TcpCheckAlertSettings>;
192
+ /**
193
+ * The response time in milliseconds starting from which a check should be considered degraded. Possible values are between 0 and 30000. (Default `15000`).
194
+ */
195
+ degradedResponseTime?: pulumi.Input<number>;
196
+ /**
197
+ * The frequency in minutes to run the check. Possible values are `0`, `1`, `2`, `5`, `10`, `15`, `30`, `60`, `120`, `180`, `360`, `720`, and `1440`.
198
+ */
199
+ frequency?: pulumi.Input<number>;
200
+ /**
201
+ * To create a high frequency check, the property `frequency` must be `0` and `frequencyOffset` can be `10`, `20` or `30`.
202
+ */
203
+ frequencyOffset?: pulumi.Input<number>;
204
+ /**
205
+ * The id of the check group this check is part of.
206
+ */
207
+ groupId?: pulumi.Input<number>;
208
+ /**
209
+ * The position of this check in a check group. It determines in what order checks are run when a group is triggered from the API or from CI/CD.
210
+ */
211
+ groupOrder?: pulumi.Input<number>;
212
+ /**
213
+ * An array of one or more data center locations where to run the this check. (Default ["us-east-1"])
214
+ */
215
+ locations?: pulumi.Input<pulumi.Input<string>[]>;
216
+ /**
217
+ * The response time in milliseconds starting from which a check should be considered failing. Possible values are between 0 and 30000. (Default `30000`).
218
+ */
219
+ maxResponseTime?: pulumi.Input<number>;
220
+ /**
221
+ * Determines if any notifications will be sent out when a check fails/degrades/recovers.
222
+ */
223
+ muted?: pulumi.Input<boolean>;
224
+ /**
225
+ * The name of the check.
226
+ */
227
+ name?: pulumi.Input<string>;
228
+ /**
229
+ * An array of one or more private locations slugs.
230
+ */
231
+ privateLocations?: pulumi.Input<pulumi.Input<string>[]>;
232
+ /**
233
+ * The parameters for the TCP connection.
234
+ */
235
+ request?: pulumi.Input<inputs.TcpCheckRequest>;
236
+ /**
237
+ * A strategy for retrying failed check runs.
238
+ */
239
+ retryStrategy?: pulumi.Input<inputs.TcpCheckRetryStrategy>;
240
+ /**
241
+ * Determines if the check should run in all selected locations in parallel or round-robin.
242
+ */
243
+ runParallel?: pulumi.Input<boolean>;
244
+ /**
245
+ * The ID of the runtime to use for this check.
246
+ */
247
+ runtimeId?: pulumi.Input<string>;
248
+ /**
249
+ * Allows to invert the behaviour of when a check is considered to fail.
250
+ */
251
+ shouldFail?: pulumi.Input<boolean>;
252
+ /**
253
+ * A list of tags for organizing and filtering checks.
254
+ */
255
+ tags?: pulumi.Input<pulumi.Input<string>[]>;
256
+ /**
257
+ * When true, the account level alert settings will be used, not the alert setting defined on this check.
258
+ */
259
+ useGlobalAlertSettings?: pulumi.Input<boolean>;
260
+ }
261
+ /**
262
+ * The set of arguments for constructing a TcpCheck resource.
263
+ */
264
+ export interface TcpCheckArgs {
265
+ /**
266
+ * Determines if the check is running or not. Possible values `true`, and `false`.
267
+ */
268
+ activated: pulumi.Input<boolean>;
269
+ /**
270
+ * An array of channel IDs and whether they're activated or not. If you don't set at least one alert subscription for your check, we won't be able to alert you in case something goes wrong with it.
271
+ */
272
+ alertChannelSubscriptions?: pulumi.Input<pulumi.Input<inputs.TcpCheckAlertChannelSubscription>[]>;
273
+ alertSettings?: pulumi.Input<inputs.TcpCheckAlertSettings>;
274
+ /**
275
+ * The response time in milliseconds starting from which a check should be considered degraded. Possible values are between 0 and 30000. (Default `15000`).
276
+ */
277
+ degradedResponseTime?: pulumi.Input<number>;
278
+ /**
279
+ * The frequency in minutes to run the check. Possible values are `0`, `1`, `2`, `5`, `10`, `15`, `30`, `60`, `120`, `180`, `360`, `720`, and `1440`.
280
+ */
281
+ frequency: pulumi.Input<number>;
282
+ /**
283
+ * To create a high frequency check, the property `frequency` must be `0` and `frequencyOffset` can be `10`, `20` or `30`.
284
+ */
285
+ frequencyOffset?: pulumi.Input<number>;
286
+ /**
287
+ * The id of the check group this check is part of.
288
+ */
289
+ groupId?: pulumi.Input<number>;
290
+ /**
291
+ * The position of this check in a check group. It determines in what order checks are run when a group is triggered from the API or from CI/CD.
292
+ */
293
+ groupOrder?: pulumi.Input<number>;
294
+ /**
295
+ * An array of one or more data center locations where to run the this check. (Default ["us-east-1"])
296
+ */
297
+ locations?: pulumi.Input<pulumi.Input<string>[]>;
298
+ /**
299
+ * The response time in milliseconds starting from which a check should be considered failing. Possible values are between 0 and 30000. (Default `30000`).
300
+ */
301
+ maxResponseTime?: pulumi.Input<number>;
302
+ /**
303
+ * Determines if any notifications will be sent out when a check fails/degrades/recovers.
304
+ */
305
+ muted?: pulumi.Input<boolean>;
306
+ /**
307
+ * The name of the check.
308
+ */
309
+ name?: pulumi.Input<string>;
310
+ /**
311
+ * An array of one or more private locations slugs.
312
+ */
313
+ privateLocations?: pulumi.Input<pulumi.Input<string>[]>;
314
+ /**
315
+ * The parameters for the TCP connection.
316
+ */
317
+ request: pulumi.Input<inputs.TcpCheckRequest>;
318
+ /**
319
+ * A strategy for retrying failed check runs.
320
+ */
321
+ retryStrategy?: pulumi.Input<inputs.TcpCheckRetryStrategy>;
322
+ /**
323
+ * Determines if the check should run in all selected locations in parallel or round-robin.
324
+ */
325
+ runParallel?: pulumi.Input<boolean>;
326
+ /**
327
+ * The ID of the runtime to use for this check.
328
+ */
329
+ runtimeId?: pulumi.Input<string>;
330
+ /**
331
+ * Allows to invert the behaviour of when a check is considered to fail.
332
+ */
333
+ shouldFail?: pulumi.Input<boolean>;
334
+ /**
335
+ * A list of tags for organizing and filtering checks.
336
+ */
337
+ tags?: pulumi.Input<pulumi.Input<string>[]>;
338
+ /**
339
+ * When true, the account level alert settings will be used, not the alert setting defined on this check.
340
+ */
341
+ useGlobalAlertSettings?: pulumi.Input<boolean>;
342
+ }
package/tcpCheck.js ADDED
@@ -0,0 +1,169 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.TcpCheck = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * TCP checks allow you to monitor remote endpoints at a lower level.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as checkly from "@checkly/pulumi";
16
+ *
17
+ * // Basic TCP Check
18
+ * const example_tcp_check = new checkly.TcpCheck("example-tcp-check", {
19
+ * name: "Example TCP check",
20
+ * activated: true,
21
+ * shouldFail: false,
22
+ * frequency: 1,
23
+ * useGlobalAlertSettings: true,
24
+ * locations: ["us-west-1"],
25
+ * request: {
26
+ * hostname: "api.checklyhq.com",
27
+ * port: 80,
28
+ * },
29
+ * });
30
+ * // A more complex example using assertions and setting alerts
31
+ * const example_tcp_check_2 = new checkly.TcpCheck("example-tcp-check-2", {
32
+ * name: "Example TCP check 2",
33
+ * activated: true,
34
+ * shouldFail: true,
35
+ * frequency: 1,
36
+ * degradedResponseTime: 5000,
37
+ * maxResponseTime: 10000,
38
+ * locations: [
39
+ * "us-west-1",
40
+ * "ap-northeast-1",
41
+ * "ap-south-1",
42
+ * ],
43
+ * alertSettings: {
44
+ * escalationType: "RUN_BASED",
45
+ * runBasedEscalations: [{
46
+ * failedRunThreshold: 1,
47
+ * }],
48
+ * reminders: [{
49
+ * amount: 1,
50
+ * }],
51
+ * },
52
+ * retryStrategy: {
53
+ * type: "FIXED",
54
+ * baseBackoffSeconds: 60,
55
+ * maxDurationSeconds: 600,
56
+ * maxRetries: 3,
57
+ * sameRegion: false,
58
+ * },
59
+ * request: {
60
+ * hostname: "api.checklyhq.com",
61
+ * port: 80,
62
+ * data: "hello",
63
+ * assertions: [
64
+ * {
65
+ * source: "RESPONSE_DATA",
66
+ * property: "",
67
+ * comparison: "CONTAINS",
68
+ * target: "welcome",
69
+ * },
70
+ * {
71
+ * source: "RESPONSE_TIME",
72
+ * property: "",
73
+ * comparison: "LESS_THAN",
74
+ * target: "2000",
75
+ * },
76
+ * ],
77
+ * },
78
+ * });
79
+ * ```
80
+ */
81
+ class TcpCheck extends pulumi.CustomResource {
82
+ /**
83
+ * Get an existing TcpCheck resource's state with the given name, ID, and optional extra
84
+ * properties used to qualify the lookup.
85
+ *
86
+ * @param name The _unique_ name of the resulting resource.
87
+ * @param id The _unique_ provider ID of the resource to lookup.
88
+ * @param state Any extra arguments used during the lookup.
89
+ * @param opts Optional settings to control the behavior of the CustomResource.
90
+ */
91
+ static get(name, id, state, opts) {
92
+ return new TcpCheck(name, state, Object.assign(Object.assign({}, opts), { id: id }));
93
+ }
94
+ /**
95
+ * Returns true if the given object is an instance of TcpCheck. This is designed to work even
96
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
97
+ */
98
+ static isInstance(obj) {
99
+ if (obj === undefined || obj === null) {
100
+ return false;
101
+ }
102
+ return obj['__pulumiType'] === TcpCheck.__pulumiType;
103
+ }
104
+ constructor(name, argsOrState, opts) {
105
+ let resourceInputs = {};
106
+ opts = opts || {};
107
+ if (opts.id) {
108
+ const state = argsOrState;
109
+ resourceInputs["activated"] = state ? state.activated : undefined;
110
+ resourceInputs["alertChannelSubscriptions"] = state ? state.alertChannelSubscriptions : undefined;
111
+ resourceInputs["alertSettings"] = state ? state.alertSettings : undefined;
112
+ resourceInputs["degradedResponseTime"] = state ? state.degradedResponseTime : undefined;
113
+ resourceInputs["frequency"] = state ? state.frequency : undefined;
114
+ resourceInputs["frequencyOffset"] = state ? state.frequencyOffset : undefined;
115
+ resourceInputs["groupId"] = state ? state.groupId : undefined;
116
+ resourceInputs["groupOrder"] = state ? state.groupOrder : undefined;
117
+ resourceInputs["locations"] = state ? state.locations : undefined;
118
+ resourceInputs["maxResponseTime"] = state ? state.maxResponseTime : undefined;
119
+ resourceInputs["muted"] = state ? state.muted : undefined;
120
+ resourceInputs["name"] = state ? state.name : undefined;
121
+ resourceInputs["privateLocations"] = state ? state.privateLocations : undefined;
122
+ resourceInputs["request"] = state ? state.request : undefined;
123
+ resourceInputs["retryStrategy"] = state ? state.retryStrategy : undefined;
124
+ resourceInputs["runParallel"] = state ? state.runParallel : undefined;
125
+ resourceInputs["runtimeId"] = state ? state.runtimeId : undefined;
126
+ resourceInputs["shouldFail"] = state ? state.shouldFail : undefined;
127
+ resourceInputs["tags"] = state ? state.tags : undefined;
128
+ resourceInputs["useGlobalAlertSettings"] = state ? state.useGlobalAlertSettings : undefined;
129
+ }
130
+ else {
131
+ const args = argsOrState;
132
+ if ((!args || args.activated === undefined) && !opts.urn) {
133
+ throw new Error("Missing required property 'activated'");
134
+ }
135
+ if ((!args || args.frequency === undefined) && !opts.urn) {
136
+ throw new Error("Missing required property 'frequency'");
137
+ }
138
+ if ((!args || args.request === undefined) && !opts.urn) {
139
+ throw new Error("Missing required property 'request'");
140
+ }
141
+ resourceInputs["activated"] = args ? args.activated : undefined;
142
+ resourceInputs["alertChannelSubscriptions"] = args ? args.alertChannelSubscriptions : undefined;
143
+ resourceInputs["alertSettings"] = args ? args.alertSettings : undefined;
144
+ resourceInputs["degradedResponseTime"] = args ? args.degradedResponseTime : undefined;
145
+ resourceInputs["frequency"] = args ? args.frequency : undefined;
146
+ resourceInputs["frequencyOffset"] = args ? args.frequencyOffset : undefined;
147
+ resourceInputs["groupId"] = args ? args.groupId : undefined;
148
+ resourceInputs["groupOrder"] = args ? args.groupOrder : undefined;
149
+ resourceInputs["locations"] = args ? args.locations : undefined;
150
+ resourceInputs["maxResponseTime"] = args ? args.maxResponseTime : undefined;
151
+ resourceInputs["muted"] = args ? args.muted : undefined;
152
+ resourceInputs["name"] = args ? args.name : undefined;
153
+ resourceInputs["privateLocations"] = args ? args.privateLocations : undefined;
154
+ resourceInputs["request"] = args ? args.request : undefined;
155
+ resourceInputs["retryStrategy"] = args ? args.retryStrategy : undefined;
156
+ resourceInputs["runParallel"] = args ? args.runParallel : undefined;
157
+ resourceInputs["runtimeId"] = args ? args.runtimeId : undefined;
158
+ resourceInputs["shouldFail"] = args ? args.shouldFail : undefined;
159
+ resourceInputs["tags"] = args ? args.tags : undefined;
160
+ resourceInputs["useGlobalAlertSettings"] = args ? args.useGlobalAlertSettings : undefined;
161
+ }
162
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
163
+ super(TcpCheck.__pulumiType, name, resourceInputs, opts);
164
+ }
165
+ }
166
+ exports.TcpCheck = TcpCheck;
167
+ /** @internal */
168
+ TcpCheck.__pulumiType = 'checkly:index/tcpCheck:TcpCheck';
169
+ //# sourceMappingURL=tcpCheck.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tcpCheck.js","sourceRoot":"","sources":["../tcpCheck.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwEG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,Q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,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7F;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AA7KL,4BA8KC;AAhKG,gBAAgB;AACO,qBAAY,GAAG,iCAAiC,CAAC"}
package/triggerCheck.d.ts CHANGED
@@ -4,9 +4,9 @@ import * as pulumi from "@pulumi/pulumi";
4
4
  *
5
5
  * ```typescript
6
6
  * import * as pulumi from "@pulumi/pulumi";
7
- * import * as pulumi from "@checkly/pulumi";
7
+ * import * as checkly from "@checkly/pulumi";
8
8
  *
9
- * const testTriggerCheck = new checkly.TriggerCheck("testTriggerCheck", {checkId: "c1ff95c5-d7f6-4a90-9ce2-1e605f117592"});
9
+ * const testTriggerCheck = new checkly.TriggerCheck("test_trigger_check", {checkId: "c1ff95c5-d7f6-4a90-9ce2-1e605f117592"});
10
10
  * export const testTriggerCheckUrl = testTriggerCheck.url;
11
11
  * ```
12
12
  */
package/triggerCheck.js CHANGED
@@ -10,9 +10,9 @@ const utilities = require("./utilities");
10
10
  *
11
11
  * ```typescript
12
12
  * import * as pulumi from "@pulumi/pulumi";
13
- * import * as pulumi from "@checkly/pulumi";
13
+ * import * as checkly from "@checkly/pulumi";
14
14
  *
15
- * const testTriggerCheck = new checkly.TriggerCheck("testTriggerCheck", {checkId: "c1ff95c5-d7f6-4a90-9ce2-1e605f117592"});
15
+ * const testTriggerCheck = new checkly.TriggerCheck("test_trigger_check", {checkId: "c1ff95c5-d7f6-4a90-9ce2-1e605f117592"});
16
16
  * export const testTriggerCheckUrl = testTriggerCheck.url;
17
17
  * ```
18
18
  */