@checkly/pulumi 0.0.1-alpha.2 → 0.0.1-alpha.6

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 (60) hide show
  1. package/README.md +70 -44
  2. package/alertChannel.ts +56 -141
  3. package/bin/README.md +102 -41
  4. package/bin/alertChannel.d.ts +55 -138
  5. package/bin/alertChannel.js +41 -108
  6. package/bin/alertChannel.js.map +1 -1
  7. package/bin/check.d.ts +90 -51
  8. package/bin/check.js +4 -3
  9. package/bin/check.js.map +1 -1
  10. package/bin/checkGroup.d.ts +112 -36
  11. package/bin/checkGroup.js +89 -3
  12. package/bin/checkGroup.js.map +1 -1
  13. package/bin/dashboard.d.ts +125 -14
  14. package/bin/dashboard.js +22 -24
  15. package/bin/dashboard.js.map +1 -1
  16. package/bin/environmentVariable.d.ts +64 -0
  17. package/bin/environmentVariable.js +78 -0
  18. package/bin/environmentVariable.js.map +1 -0
  19. package/bin/index.d.ts +1 -0
  20. package/bin/index.js +5 -0
  21. package/bin/index.js.map +1 -1
  22. package/bin/maintenanceWindow.d.ts +16 -36
  23. package/bin/maintenanceWindow.js +2 -33
  24. package/bin/maintenanceWindow.js.map +1 -1
  25. package/bin/package.json +4 -3
  26. package/bin/package.json.bak +2 -1
  27. package/bin/provider.js +1 -3
  28. package/bin/provider.js.map +1 -1
  29. package/bin/snippet.d.ts +3 -3
  30. package/bin/snippet.js +1 -3
  31. package/bin/snippet.js.map +1 -1
  32. package/bin/triggerCheck.d.ts +19 -7
  33. package/bin/triggerCheck.js +2 -10
  34. package/bin/triggerCheck.js.map +1 -1
  35. package/bin/triggerCheckGroup.d.ts +19 -7
  36. package/bin/triggerCheckGroup.js +2 -10
  37. package/bin/triggerCheckGroup.js.map +1 -1
  38. package/bin/types/input.d.ts +2 -188
  39. package/bin/types/input.js.map +1 -1
  40. package/bin/types/output.d.ts +2 -188
  41. package/bin/types/output.js.map +1 -1
  42. package/bin/utilities.js +6 -1
  43. package/bin/utilities.js.map +1 -1
  44. package/bin/yarn.lock +179 -117
  45. package/check.ts +91 -54
  46. package/checkGroup.ts +113 -39
  47. package/dashboard.ts +126 -38
  48. package/environmentVariable.ts +107 -0
  49. package/index.ts +5 -0
  50. package/maintenanceWindow.ts +17 -48
  51. package/package.json +7 -6
  52. package/provider.ts +1 -3
  53. package/scripts/install-pulumi-plugin.js +26 -0
  54. package/snippet.ts +4 -6
  55. package/triggerCheck.ts +20 -10
  56. package/triggerCheckGroup.ts +20 -10
  57. package/tsconfig.json +1 -0
  58. package/types/input.ts +2 -188
  59. package/types/output.ts +2 -188
  60. package/utilities.ts +5 -0
package/types/output.ts CHANGED
@@ -7,253 +7,115 @@ import { input as inputs, output as outputs } from "../types";
7
7
  import * as utilities from "../utilities";
8
8
 
9
9
  export interface AlertChannelEmail {
10
- /**
11
- * the email address of this email alert channel.
12
- */
13
10
  address: string;
14
11
  }
15
12
 
16
13
  export interface AlertChannelOpsgenie {
17
- /**
18
- * .
19
- */
20
14
  apiKey: string;
21
- /**
22
- * Webhook's channel name.
23
- */
24
15
  name: string;
25
- /**
26
- * .
27
- */
28
16
  priority: string;
29
- /**
30
- * .
31
- */
32
17
  region: string;
33
18
  }
34
19
 
35
20
  export interface AlertChannelPagerduty {
36
- /**
37
- * Pagerduty's account name.
38
- */
39
21
  account?: string;
40
- /**
41
- * Pagerduty's service integration key.
42
- */
43
22
  serviceKey: string;
44
- /**
45
- * Pagerduty's service name.
46
- */
47
23
  serviceName?: string;
48
24
  }
49
25
 
50
26
  export interface AlertChannelSlack {
51
- /**
52
- * Slack's channel name.
53
- */
54
27
  channel: string;
55
- /**
56
- * .
57
- */
58
28
  url: string;
59
29
  }
60
30
 
61
31
  export interface AlertChannelSms {
62
- /**
63
- * Webhook's channel name.
64
- */
65
32
  name: string;
66
- /**
67
- * Mobile number to receive alerts.
68
- */
69
33
  number: string;
70
34
  }
71
35
 
72
36
  export interface AlertChannelWebhook {
73
- /**
74
- * .
75
- */
76
37
  headers: {[key: string]: any};
77
- /**
78
- * Default is `POST`.
79
- */
80
38
  method?: string;
81
- /**
82
- * Webhook's channel name.
83
- */
84
39
  name: string;
85
- /**
86
- * .
87
- */
88
40
  queryParameters: {[key: string]: any};
89
- /**
90
- * .
91
- */
92
41
  template?: string;
93
- /**
94
- * .
95
- */
96
42
  url: string;
97
- /**
98
- * .
99
- */
100
43
  webhookSecret?: string;
101
44
  }
102
45
 
103
46
  export interface CheckAlertChannelSubscription {
104
- /**
105
- * Determines if the check is running or not. Possible values `true`, and `false`.
106
- */
107
47
  activated: boolean;
108
48
  channelId: number;
109
49
  }
110
50
 
111
51
  export interface CheckAlertSettings {
112
- /**
113
- * Determines what type of escalation to use. Possible values are `RUN_BASED` or `TIME_BASED`.
114
- */
115
52
  escalationType?: string;
116
- /**
117
- * . Possible arguments:
118
- */
119
53
  reminders?: outputs.CheckAlertSettingsReminder[];
120
- /**
121
- * . Possible arguments:
122
- */
123
54
  runBasedEscalations?: outputs.CheckAlertSettingsRunBasedEscalation[];
124
55
  /**
125
- * At what interval the reminders should be send. Possible arguments:
56
+ * @deprecated The property `ssl_certificates` is deprecated and it's ignored by the Checkly Public API. It will be removed in a future version.
126
57
  */
127
58
  sslCertificates?: outputs.CheckAlertSettingsSslCertificate[];
128
- /**
129
- * . Possible arguments:
130
- */
131
59
  timeBasedEscalations?: outputs.CheckAlertSettingsTimeBasedEscalation[];
132
60
  }
133
61
 
134
62
  export interface CheckAlertSettingsReminder {
135
- /**
136
- * How many reminders to send out after the initial alert notification. Possible values are `0`, `1`, `2`, `3`, `4`, `5`, and `100000`
137
- */
138
63
  amount?: number;
139
- /**
140
- * . Possible values are `5`, `10`, `15`, and `30`. Defaults to `5`.
141
- */
142
64
  interval?: number;
143
65
  }
144
66
 
145
67
  export interface CheckAlertSettingsRunBasedEscalation {
146
- /**
147
- * After how many failed consecutive check runs an alert notification should be send. Possible values are between 1 and 5. Defaults to `1`.
148
- */
149
68
  failedRunThreshold?: number;
150
69
  }
151
70
 
152
71
  export interface CheckAlertSettingsSslCertificate {
153
- /**
154
- * At what moment in time to start alerting on SSL certificates. Possible values `3`, `7`, `14`, `30`. Defaults to `3`.
155
- */
156
72
  alertThreshold?: number;
157
- /**
158
- * Determines if alert notifications should be send for expiring SSL certificates. Possible values `true`, and `false`. Defaults to `true`.
159
- */
160
73
  enabled?: boolean;
161
74
  }
162
75
 
163
76
  export interface CheckAlertSettingsTimeBasedEscalation {
164
- /**
165
- * After how many minutes after a check starts failing an alert should be send. Possible values are `5`, `10`, `15`, and `30`. Defaults to `5`.
166
- */
167
77
  minutesFailingThreshold?: number;
168
78
  }
169
79
 
170
80
  export interface CheckGroupAlertChannelSubscription {
171
- /**
172
- * Determines if the checks in the group are running or not.
173
- */
174
81
  activated: boolean;
175
82
  channelId: number;
176
83
  }
177
84
 
178
85
  export interface CheckGroupAlertSettings {
179
- /**
180
- * Determines what type of escalation to use. Possible values are `RUN_BASED` or `TIME_BASED`.
181
- */
182
86
  escalationType?: string;
183
- /**
184
- * . Possible arguments:
185
- */
186
87
  reminders?: outputs.CheckGroupAlertSettingsReminder[];
187
- /**
188
- * . Possible arguments:
189
- */
190
88
  runBasedEscalations?: outputs.CheckGroupAlertSettingsRunBasedEscalation[];
191
89
  /**
192
- * At what interval the reminders should be send. Possible arguments:
90
+ * @deprecated The property `ssl_certificates` is deprecated and it's ignored by the Checkly Public API. It will be removed in a future version.
193
91
  */
194
92
  sslCertificates?: outputs.CheckGroupAlertSettingsSslCertificate[];
195
- /**
196
- * . Possible arguments:
197
- */
198
93
  timeBasedEscalations?: outputs.CheckGroupAlertSettingsTimeBasedEscalation[];
199
94
  }
200
95
 
201
96
  export interface CheckGroupAlertSettingsReminder {
202
- /**
203
- * How many reminders to send out after the initial alert notification. Possible values are `0`, `1`, `2`, `3`, `4`, `5`, and `100000`
204
- */
205
97
  amount?: number;
206
- /**
207
- * . Possible values are `5`, `10`, `15`, and `30`. Defaults to `5`.
208
- */
209
98
  interval?: number;
210
99
  }
211
100
 
212
101
  export interface CheckGroupAlertSettingsRunBasedEscalation {
213
- /**
214
- * After how many failed consecutive check runs an alert notification should be send. Possible values are between 1 and 5. Defaults to `1`.
215
- */
216
102
  failedRunThreshold?: number;
217
103
  }
218
104
 
219
105
  export interface CheckGroupAlertSettingsSslCertificate {
220
- /**
221
- * At what moment in time to start alerting on SSL certificates. Possible values `3`, `7`, `14`, `30`. Defaults to `3`.
222
- */
223
106
  alertThreshold?: number;
224
- /**
225
- * Determines if alert notifications should be send for expiring SSL certificates. Possible values `true`, and `false`. Defaults to `true`.
226
- */
227
107
  enabled?: boolean;
228
108
  }
229
109
 
230
110
  export interface CheckGroupAlertSettingsTimeBasedEscalation {
231
- /**
232
- * After how many minutes after a check starts failing an alert should be send. Possible values are `5`, `10`, `15`, and `30`. Defaults to `5`.
233
- */
234
111
  minutesFailingThreshold?: number;
235
112
  }
236
113
 
237
114
  export interface CheckGroupApiCheckDefaults {
238
- /**
239
- * . Possible arguments:
240
- */
241
115
  assertions?: outputs.CheckGroupApiCheckDefaultsAssertion[];
242
- /**
243
- * . Possible arguments
244
- */
245
116
  basicAuth: outputs.CheckGroupApiCheckDefaultsBasicAuth;
246
- /**
247
- * .
248
- */
249
117
  headers: {[key: string]: any};
250
- /**
251
- * .
252
- */
253
118
  queryParameters: {[key: string]: any};
254
- /**
255
- * The base url for this group which you can reference with the {{GROUP_BASE_URL}} variable in all group checks.
256
- */
257
119
  url: string;
258
120
  }
259
121
  /**
@@ -267,17 +129,8 @@ export function checkGroupApiCheckDefaultsProvideDefaults(val: CheckGroupApiChec
267
129
  }
268
130
 
269
131
  export interface CheckGroupApiCheckDefaultsAssertion {
270
- /**
271
- * Possible values `EQUALS`, `NOT_EQUALS`, `HAS_KEY`, `NOT_HAS_KEY`, `HAS_VALUE`, `NOT_HAS_VALUE`, `IS_EMPTY`, `NOT_EMPTY`, `GREATER_THAN`, `LESS_THAN`, `CONTAINS`, `NOT_CONTAINS`, `IS_NULL`, and `NOT_NULL`.
272
- */
273
132
  comparison: string;
274
- /**
275
- * .
276
- */
277
133
  property?: string;
278
- /**
279
- * Possible values `STATUS_CODE`, `JSON_BODY`, `HEADERS`, `TEXT_BODY`, and `RESPONSE_TIME`.
280
- */
281
134
  source: string;
282
135
  target: string;
283
136
  }
@@ -288,61 +141,22 @@ export interface CheckGroupApiCheckDefaultsBasicAuth {
288
141
  }
289
142
 
290
143
  export interface CheckRequest {
291
- /**
292
- * A request can have multiple assetions. Assertion has the following arguments:
293
- */
294
144
  assertions?: outputs.CheckRequestAssertion[];
295
- /**
296
- * A request might have one basicAuth config. basicAuth has two arguments:
297
- */
298
145
  basicAuth: outputs.CheckRequestBasicAuth;
299
146
  body?: string;
300
- /**
301
- * Possible values `NONE`, `JSON`, `FORM`, `RAW`, and `GRAPHQL`.
302
- */
303
147
  bodyType?: string;
304
- /**
305
- * .
306
- */
307
148
  followRedirects?: boolean;
308
- /**
309
- * .
310
- */
311
149
  headers: {[key: string]: any};
312
- /**
313
- * The HTTP method to use for this API check. Possible values are `GET`, `POST`, `PUT`, `HEAD`, `DELETE`, `PATCH`. Defaults to `GET`.
314
- */
315
150
  method?: string;
316
- /**
317
- * .
318
- */
319
151
  queryParameters: {[key: string]: any};
320
- /**
321
- * .
322
- */
323
152
  skipSsl?: boolean;
324
- /**
325
- * .
326
- */
327
153
  url: string;
328
154
  }
329
155
 
330
156
  export interface CheckRequestAssertion {
331
- /**
332
- * Possible values `EQUALS`, `NOT_EQUALS`, `HAS_KEY`, `NOT_HAS_KEY`, `HAS_VALUE`, `NOT_HAS_VALUE`, `IS_EMPTY`, `NOT_EMPTY`, `GREATER_THAN`, `LESS_THAN`, `CONTAINS`, `NOT_CONTAINS`, `IS_NULL`, and `NOT_NULL`.
333
- */
334
157
  comparison: string;
335
- /**
336
- * .
337
- */
338
158
  property?: string;
339
- /**
340
- * Possible values `STATUS_CODE`, `JSON_BODY`, `HEADERS`, `TEXT_BODY`, and `RESPONSE_TIME`.
341
- */
342
159
  source: string;
343
- /**
344
- * .
345
- */
346
160
  target?: string;
347
161
  }
348
162
 
package/utilities.ts CHANGED
@@ -47,3 +47,8 @@ export function getVersion(): string {
47
47
  }
48
48
  return version;
49
49
  }
50
+
51
+ /** @internal */
52
+ export function resourceOptsDefaults(): any {
53
+ return { version: getVersion(), pluginDownloadURL: "https://github.com/checkly/pulumi-checkly/releases/${VERSION}" };
54
+ }