@checkly/pulumi 0.0.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Pulumi.yaml +0 -0
- package/README.md +4 -0
- package/alertChannel.ts +321 -0
- package/bin/LICENSE +21 -0
- package/bin/README.md +90 -0
- package/bin/alertChannel.d.ts +266 -0
- package/bin/alertChannel.js +204 -0
- package/bin/alertChannel.js.map +1 -0
- package/bin/check.d.ts +328 -0
- package/bin/check.js +110 -0
- package/bin/check.js.map +1 -0
- package/bin/checkGroup.d.ts +238 -0
- package/bin/checkGroup.js +93 -0
- package/bin/checkGroup.js.map +1 -0
- package/bin/config/index.d.ts +1 -0
- package/bin/config/index.js +21 -0
- package/bin/config/index.js.map +1 -0
- package/bin/config/vars.d.ts +3 -0
- package/bin/config/vars.js +25 -0
- package/bin/config/vars.js.map +1 -0
- package/bin/dashboard.d.ts +66 -0
- package/bin/dashboard.js +93 -0
- package/bin/dashboard.js.map +1 -0
- package/bin/index.d.ts +12 -0
- package/bin/index.js +89 -0
- package/bin/index.js.map +1 -0
- package/bin/maintenanceWindow.d.ts +157 -0
- package/bin/maintenanceWindow.js +115 -0
- package/bin/maintenanceWindow.js.map +1 -0
- package/bin/package.json +28 -0
- package/bin/package.json.bak +28 -0
- package/bin/provider.d.ts +33 -0
- package/bin/provider.js +52 -0
- package/bin/provider.js.map +1 -0
- package/bin/snippet.d.ts +60 -0
- package/bin/snippet.js +56 -0
- package/bin/snippet.js.map +1 -0
- package/bin/triggerCheck.d.ts +71 -0
- package/bin/triggerCheck.js +75 -0
- package/bin/triggerCheck.js.map +1 -0
- package/bin/triggerCheckGroup.d.ts +71 -0
- package/bin/triggerCheckGroup.js +75 -0
- package/bin/triggerCheckGroup.js.map +1 -0
- package/bin/types/index.d.ts +3 -0
- package/bin/types/index.js +11 -0
- package/bin/types/index.js.map +1 -0
- package/bin/types/input.d.ts +330 -0
- package/bin/types/input.js +14 -0
- package/bin/types/input.js.map +1 -0
- package/bin/types/output.d.ts +329 -0
- package/bin/types/output.js +14 -0
- package/bin/types/output.js.map +1 -0
- package/bin/utilities.d.ts +4 -0
- package/bin/utilities.js +52 -0
- package/bin/utilities.js.map +1 -0
- package/bin/yarn.lock +743 -0
- package/check.ts +416 -0
- package/checkGroup.ts +308 -0
- package/config/index.ts +5 -0
- package/config/vars.ts +33 -0
- package/dashboard.ts +143 -0
- package/index.ts +81 -0
- package/maintenanceWindow.ts +219 -0
- package/package.json +28 -0
- package/provider.ts +64 -0
- package/snippet.ts +100 -0
- package/triggerCheck.ts +113 -0
- package/triggerCheckGroup.ts +113 -0
- package/tsconfig.json +33 -0
- package/types/index.ts +11 -0
- package/types/input.ts +352 -0
- package/types/output.ts +353 -0
- package/utilities.ts +49 -0
package/checkGroup.ts
ADDED
|
@@ -0,0 +1,308 @@
|
|
|
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
|
+
export class CheckGroup extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing CheckGroup resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param state Any extra arguments used during the lookup.
|
|
16
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
17
|
+
*/
|
|
18
|
+
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CheckGroupState, opts?: pulumi.CustomResourceOptions): CheckGroup {
|
|
19
|
+
return new CheckGroup(name, <any>state, { ...opts, id: id });
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
public static readonly __pulumiType = 'checkly:index/checkGroup:CheckGroup';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Returns true if the given object is an instance of CheckGroup. This is designed to work even
|
|
27
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
28
|
+
*/
|
|
29
|
+
public static isInstance(obj: any): obj is CheckGroup {
|
|
30
|
+
if (obj === undefined || obj === null) {
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
return obj['__pulumiType'] === CheckGroup.__pulumiType;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Determines if the checks in the group are running or not.
|
|
38
|
+
*/
|
|
39
|
+
public readonly activated!: pulumi.Output<boolean>;
|
|
40
|
+
public readonly alertChannelSubscriptions!: pulumi.Output<outputs.CheckGroupAlertChannelSubscription[] | undefined>;
|
|
41
|
+
/**
|
|
42
|
+
* . Supported values documented below.
|
|
43
|
+
*/
|
|
44
|
+
public readonly alertSettings!: pulumi.Output<outputs.CheckGroupAlertSettings>;
|
|
45
|
+
/**
|
|
46
|
+
* Default configs to use for all api checks belonging to this group. Supported values documented below.
|
|
47
|
+
*/
|
|
48
|
+
public readonly apiCheckDefaults!: pulumi.Output<outputs.CheckGroupApiCheckDefaults>;
|
|
49
|
+
/**
|
|
50
|
+
* Determines how many checks are invoked concurrently when triggering a check group from CI/CD or through the API.
|
|
51
|
+
*/
|
|
52
|
+
public readonly concurrency!: pulumi.Output<number>;
|
|
53
|
+
/**
|
|
54
|
+
* Setting this to "true" will trigger a retry when a check fails from the failing region and another, randomly selected region before marking the check as failed.
|
|
55
|
+
*/
|
|
56
|
+
public readonly doubleCheck!: pulumi.Output<boolean | undefined>;
|
|
57
|
+
/**
|
|
58
|
+
* Key/value pairs for setting environment variables during check execution. These are only relevant for Browser checks. Use global environment variables whenever possible.
|
|
59
|
+
*/
|
|
60
|
+
public readonly environmentVariables!: pulumi.Output<{[key: string]: any} | undefined>;
|
|
61
|
+
/**
|
|
62
|
+
* A valid piece of Node.js code to run in the setup phase of an API check in this group.
|
|
63
|
+
*/
|
|
64
|
+
public readonly localSetupScript!: pulumi.Output<string | undefined>;
|
|
65
|
+
/**
|
|
66
|
+
* A valid piece of Node.js code to run in the teardown phase of an API check in this group.
|
|
67
|
+
*/
|
|
68
|
+
public readonly localTeardownScript!: pulumi.Output<string | undefined>;
|
|
69
|
+
/**
|
|
70
|
+
* An array of one or more data center locations where to run the checks.
|
|
71
|
+
*/
|
|
72
|
+
public readonly locations!: pulumi.Output<string[]>;
|
|
73
|
+
/**
|
|
74
|
+
* Determines if any notifications will be send out when a check in this group fails and/or recovers.
|
|
75
|
+
*/
|
|
76
|
+
public readonly muted!: pulumi.Output<boolean | undefined>;
|
|
77
|
+
/**
|
|
78
|
+
* The name of the check group.
|
|
79
|
+
*/
|
|
80
|
+
public readonly name!: pulumi.Output<string>;
|
|
81
|
+
/**
|
|
82
|
+
* . The id of the runtime to use for this group.
|
|
83
|
+
*/
|
|
84
|
+
public readonly runtimeId!: pulumi.Output<string | undefined>;
|
|
85
|
+
/**
|
|
86
|
+
* An ID reference to a snippet to use in the setup phase of an API check.
|
|
87
|
+
*/
|
|
88
|
+
public readonly setupSnippetId!: pulumi.Output<number | undefined>;
|
|
89
|
+
/**
|
|
90
|
+
* Tags for organizing and filtering checks.
|
|
91
|
+
*/
|
|
92
|
+
public readonly tags!: pulumi.Output<string[] | undefined>;
|
|
93
|
+
/**
|
|
94
|
+
* An ID reference to a snippet to use in the teardown phase of an API check.
|
|
95
|
+
*/
|
|
96
|
+
public readonly teardownSnippetId!: pulumi.Output<number | undefined>;
|
|
97
|
+
/**
|
|
98
|
+
* When true, the account level alert setting will be used, not the alert setting defined on this check group.
|
|
99
|
+
*/
|
|
100
|
+
public readonly useGlobalAlertSettings!: pulumi.Output<boolean | undefined>;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Create a CheckGroup resource with the given unique name, arguments, and options.
|
|
104
|
+
*
|
|
105
|
+
* @param name The _unique_ name of the resource.
|
|
106
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
107
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
108
|
+
*/
|
|
109
|
+
constructor(name: string, args: CheckGroupArgs, opts?: pulumi.CustomResourceOptions)
|
|
110
|
+
constructor(name: string, argsOrState?: CheckGroupArgs | CheckGroupState, opts?: pulumi.CustomResourceOptions) {
|
|
111
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
112
|
+
opts = opts || {};
|
|
113
|
+
if (opts.id) {
|
|
114
|
+
const state = argsOrState as CheckGroupState | undefined;
|
|
115
|
+
resourceInputs["activated"] = state ? state.activated : undefined;
|
|
116
|
+
resourceInputs["alertChannelSubscriptions"] = state ? state.alertChannelSubscriptions : undefined;
|
|
117
|
+
resourceInputs["alertSettings"] = state ? state.alertSettings : undefined;
|
|
118
|
+
resourceInputs["apiCheckDefaults"] = state ? state.apiCheckDefaults : undefined;
|
|
119
|
+
resourceInputs["concurrency"] = state ? state.concurrency : undefined;
|
|
120
|
+
resourceInputs["doubleCheck"] = state ? state.doubleCheck : undefined;
|
|
121
|
+
resourceInputs["environmentVariables"] = state ? state.environmentVariables : undefined;
|
|
122
|
+
resourceInputs["localSetupScript"] = state ? state.localSetupScript : undefined;
|
|
123
|
+
resourceInputs["localTeardownScript"] = state ? state.localTeardownScript : undefined;
|
|
124
|
+
resourceInputs["locations"] = state ? state.locations : undefined;
|
|
125
|
+
resourceInputs["muted"] = state ? state.muted : undefined;
|
|
126
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
127
|
+
resourceInputs["runtimeId"] = state ? state.runtimeId : undefined;
|
|
128
|
+
resourceInputs["setupSnippetId"] = state ? state.setupSnippetId : undefined;
|
|
129
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
130
|
+
resourceInputs["teardownSnippetId"] = state ? state.teardownSnippetId : undefined;
|
|
131
|
+
resourceInputs["useGlobalAlertSettings"] = state ? state.useGlobalAlertSettings : undefined;
|
|
132
|
+
} else {
|
|
133
|
+
const args = argsOrState as CheckGroupArgs | undefined;
|
|
134
|
+
if ((!args || args.activated === undefined) && !opts.urn) {
|
|
135
|
+
throw new Error("Missing required property 'activated'");
|
|
136
|
+
}
|
|
137
|
+
if ((!args || args.concurrency === undefined) && !opts.urn) {
|
|
138
|
+
throw new Error("Missing required property 'concurrency'");
|
|
139
|
+
}
|
|
140
|
+
if ((!args || args.locations === undefined) && !opts.urn) {
|
|
141
|
+
throw new Error("Missing required property 'locations'");
|
|
142
|
+
}
|
|
143
|
+
resourceInputs["activated"] = args ? args.activated : undefined;
|
|
144
|
+
resourceInputs["alertChannelSubscriptions"] = args ? args.alertChannelSubscriptions : undefined;
|
|
145
|
+
resourceInputs["alertSettings"] = args ? args.alertSettings : undefined;
|
|
146
|
+
resourceInputs["apiCheckDefaults"] = args ? (args.apiCheckDefaults ? pulumi.output(args.apiCheckDefaults).apply(inputs.checkGroupApiCheckDefaultsProvideDefaults) : undefined) : undefined;
|
|
147
|
+
resourceInputs["concurrency"] = args ? args.concurrency : undefined;
|
|
148
|
+
resourceInputs["doubleCheck"] = args ? args.doubleCheck : undefined;
|
|
149
|
+
resourceInputs["environmentVariables"] = args ? args.environmentVariables : undefined;
|
|
150
|
+
resourceInputs["localSetupScript"] = args ? args.localSetupScript : undefined;
|
|
151
|
+
resourceInputs["localTeardownScript"] = args ? args.localTeardownScript : undefined;
|
|
152
|
+
resourceInputs["locations"] = args ? args.locations : undefined;
|
|
153
|
+
resourceInputs["muted"] = args ? args.muted : undefined;
|
|
154
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
155
|
+
resourceInputs["runtimeId"] = args ? args.runtimeId : undefined;
|
|
156
|
+
resourceInputs["setupSnippetId"] = args ? args.setupSnippetId : undefined;
|
|
157
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
158
|
+
resourceInputs["teardownSnippetId"] = args ? args.teardownSnippetId : undefined;
|
|
159
|
+
resourceInputs["useGlobalAlertSettings"] = args ? args.useGlobalAlertSettings : undefined;
|
|
160
|
+
}
|
|
161
|
+
if (!opts.version) {
|
|
162
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()});
|
|
163
|
+
}
|
|
164
|
+
super(CheckGroup.__pulumiType, name, resourceInputs, opts);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Input properties used for looking up and filtering CheckGroup resources.
|
|
170
|
+
*/
|
|
171
|
+
export interface CheckGroupState {
|
|
172
|
+
/**
|
|
173
|
+
* Determines if the checks in the group are running or not.
|
|
174
|
+
*/
|
|
175
|
+
activated?: pulumi.Input<boolean>;
|
|
176
|
+
alertChannelSubscriptions?: pulumi.Input<pulumi.Input<inputs.CheckGroupAlertChannelSubscription>[]>;
|
|
177
|
+
/**
|
|
178
|
+
* . Supported values documented below.
|
|
179
|
+
*/
|
|
180
|
+
alertSettings?: pulumi.Input<inputs.CheckGroupAlertSettings>;
|
|
181
|
+
/**
|
|
182
|
+
* Default configs to use for all api checks belonging to this group. Supported values documented below.
|
|
183
|
+
*/
|
|
184
|
+
apiCheckDefaults?: pulumi.Input<inputs.CheckGroupApiCheckDefaults>;
|
|
185
|
+
/**
|
|
186
|
+
* Determines how many checks are invoked concurrently when triggering a check group from CI/CD or through the API.
|
|
187
|
+
*/
|
|
188
|
+
concurrency?: pulumi.Input<number>;
|
|
189
|
+
/**
|
|
190
|
+
* Setting this to "true" will trigger a retry when a check fails from the failing region and another, randomly selected region before marking the check as failed.
|
|
191
|
+
*/
|
|
192
|
+
doubleCheck?: pulumi.Input<boolean>;
|
|
193
|
+
/**
|
|
194
|
+
* Key/value pairs for setting environment variables during check execution. These are only relevant for Browser checks. Use global environment variables whenever possible.
|
|
195
|
+
*/
|
|
196
|
+
environmentVariables?: pulumi.Input<{[key: string]: any}>;
|
|
197
|
+
/**
|
|
198
|
+
* A valid piece of Node.js code to run in the setup phase of an API check in this group.
|
|
199
|
+
*/
|
|
200
|
+
localSetupScript?: pulumi.Input<string>;
|
|
201
|
+
/**
|
|
202
|
+
* A valid piece of Node.js code to run in the teardown phase of an API check in this group.
|
|
203
|
+
*/
|
|
204
|
+
localTeardownScript?: pulumi.Input<string>;
|
|
205
|
+
/**
|
|
206
|
+
* An array of one or more data center locations where to run the checks.
|
|
207
|
+
*/
|
|
208
|
+
locations?: pulumi.Input<pulumi.Input<string>[]>;
|
|
209
|
+
/**
|
|
210
|
+
* Determines if any notifications will be send out when a check in this group fails and/or recovers.
|
|
211
|
+
*/
|
|
212
|
+
muted?: pulumi.Input<boolean>;
|
|
213
|
+
/**
|
|
214
|
+
* The name of the check group.
|
|
215
|
+
*/
|
|
216
|
+
name?: pulumi.Input<string>;
|
|
217
|
+
/**
|
|
218
|
+
* . The id of the runtime to use for this group.
|
|
219
|
+
*/
|
|
220
|
+
runtimeId?: pulumi.Input<string>;
|
|
221
|
+
/**
|
|
222
|
+
* An ID reference to a snippet to use in the setup phase of an API check.
|
|
223
|
+
*/
|
|
224
|
+
setupSnippetId?: pulumi.Input<number>;
|
|
225
|
+
/**
|
|
226
|
+
* Tags for organizing and filtering checks.
|
|
227
|
+
*/
|
|
228
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
229
|
+
/**
|
|
230
|
+
* An ID reference to a snippet to use in the teardown phase of an API check.
|
|
231
|
+
*/
|
|
232
|
+
teardownSnippetId?: pulumi.Input<number>;
|
|
233
|
+
/**
|
|
234
|
+
* When true, the account level alert setting will be used, not the alert setting defined on this check group.
|
|
235
|
+
*/
|
|
236
|
+
useGlobalAlertSettings?: pulumi.Input<boolean>;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* The set of arguments for constructing a CheckGroup resource.
|
|
241
|
+
*/
|
|
242
|
+
export interface CheckGroupArgs {
|
|
243
|
+
/**
|
|
244
|
+
* Determines if the checks in the group are running or not.
|
|
245
|
+
*/
|
|
246
|
+
activated: pulumi.Input<boolean>;
|
|
247
|
+
alertChannelSubscriptions?: pulumi.Input<pulumi.Input<inputs.CheckGroupAlertChannelSubscription>[]>;
|
|
248
|
+
/**
|
|
249
|
+
* . Supported values documented below.
|
|
250
|
+
*/
|
|
251
|
+
alertSettings?: pulumi.Input<inputs.CheckGroupAlertSettings>;
|
|
252
|
+
/**
|
|
253
|
+
* Default configs to use for all api checks belonging to this group. Supported values documented below.
|
|
254
|
+
*/
|
|
255
|
+
apiCheckDefaults?: pulumi.Input<inputs.CheckGroupApiCheckDefaults>;
|
|
256
|
+
/**
|
|
257
|
+
* Determines how many checks are invoked concurrently when triggering a check group from CI/CD or through the API.
|
|
258
|
+
*/
|
|
259
|
+
concurrency: pulumi.Input<number>;
|
|
260
|
+
/**
|
|
261
|
+
* Setting this to "true" will trigger a retry when a check fails from the failing region and another, randomly selected region before marking the check as failed.
|
|
262
|
+
*/
|
|
263
|
+
doubleCheck?: pulumi.Input<boolean>;
|
|
264
|
+
/**
|
|
265
|
+
* Key/value pairs for setting environment variables during check execution. These are only relevant for Browser checks. Use global environment variables whenever possible.
|
|
266
|
+
*/
|
|
267
|
+
environmentVariables?: pulumi.Input<{[key: string]: any}>;
|
|
268
|
+
/**
|
|
269
|
+
* A valid piece of Node.js code to run in the setup phase of an API check in this group.
|
|
270
|
+
*/
|
|
271
|
+
localSetupScript?: pulumi.Input<string>;
|
|
272
|
+
/**
|
|
273
|
+
* A valid piece of Node.js code to run in the teardown phase of an API check in this group.
|
|
274
|
+
*/
|
|
275
|
+
localTeardownScript?: pulumi.Input<string>;
|
|
276
|
+
/**
|
|
277
|
+
* An array of one or more data center locations where to run the checks.
|
|
278
|
+
*/
|
|
279
|
+
locations: pulumi.Input<pulumi.Input<string>[]>;
|
|
280
|
+
/**
|
|
281
|
+
* Determines if any notifications will be send out when a check in this group fails and/or recovers.
|
|
282
|
+
*/
|
|
283
|
+
muted?: pulumi.Input<boolean>;
|
|
284
|
+
/**
|
|
285
|
+
* The name of the check group.
|
|
286
|
+
*/
|
|
287
|
+
name?: pulumi.Input<string>;
|
|
288
|
+
/**
|
|
289
|
+
* . The id of the runtime to use for this group.
|
|
290
|
+
*/
|
|
291
|
+
runtimeId?: pulumi.Input<string>;
|
|
292
|
+
/**
|
|
293
|
+
* An ID reference to a snippet to use in the setup phase of an API check.
|
|
294
|
+
*/
|
|
295
|
+
setupSnippetId?: pulumi.Input<number>;
|
|
296
|
+
/**
|
|
297
|
+
* Tags for organizing and filtering checks.
|
|
298
|
+
*/
|
|
299
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
300
|
+
/**
|
|
301
|
+
* An ID reference to a snippet to use in the teardown phase of an API check.
|
|
302
|
+
*/
|
|
303
|
+
teardownSnippetId?: pulumi.Input<number>;
|
|
304
|
+
/**
|
|
305
|
+
* When true, the account level alert setting will be used, not the alert setting defined on this check group.
|
|
306
|
+
*/
|
|
307
|
+
useGlobalAlertSettings?: pulumi.Input<boolean>;
|
|
308
|
+
}
|
package/config/index.ts
ADDED
package/config/vars.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
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 * as utilities from "../utilities";
|
|
6
|
+
|
|
7
|
+
declare var exports: any;
|
|
8
|
+
const __config = new pulumi.Config("checkly");
|
|
9
|
+
|
|
10
|
+
export declare const accountId: string | undefined;
|
|
11
|
+
Object.defineProperty(exports, "accountId", {
|
|
12
|
+
get() {
|
|
13
|
+
return __config.get("accountId");
|
|
14
|
+
},
|
|
15
|
+
enumerable: true,
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export declare const apiKey: string | undefined;
|
|
19
|
+
Object.defineProperty(exports, "apiKey", {
|
|
20
|
+
get() {
|
|
21
|
+
return __config.get("apiKey");
|
|
22
|
+
},
|
|
23
|
+
enumerable: true,
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export declare const apiUrl: string | undefined;
|
|
27
|
+
Object.defineProperty(exports, "apiUrl", {
|
|
28
|
+
get() {
|
|
29
|
+
return __config.get("apiUrl");
|
|
30
|
+
},
|
|
31
|
+
enumerable: true,
|
|
32
|
+
});
|
|
33
|
+
|
package/dashboard.ts
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
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 * as utilities from "./utilities";
|
|
6
|
+
|
|
7
|
+
export class Dashboard extends pulumi.CustomResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get an existing Dashboard resource's state with the given name, ID, and optional extra
|
|
10
|
+
* properties used to qualify the lookup.
|
|
11
|
+
*
|
|
12
|
+
* @param name The _unique_ name of the resulting resource.
|
|
13
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
14
|
+
* @param state Any extra arguments used during the lookup.
|
|
15
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
16
|
+
*/
|
|
17
|
+
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DashboardState, opts?: pulumi.CustomResourceOptions): Dashboard {
|
|
18
|
+
return new Dashboard(name, <any>state, { ...opts, id: id });
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
public static readonly __pulumiType = 'checkly:index/dashboard:Dashboard';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the given object is an instance of Dashboard. This is designed to work even
|
|
26
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
27
|
+
*/
|
|
28
|
+
public static isInstance(obj: any): obj is Dashboard {
|
|
29
|
+
if (obj === undefined || obj === null) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
return obj['__pulumiType'] === Dashboard.__pulumiType;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
public readonly customDomain!: pulumi.Output<string>;
|
|
36
|
+
public readonly customUrl!: pulumi.Output<string>;
|
|
37
|
+
public readonly header!: pulumi.Output<string>;
|
|
38
|
+
public readonly hideTags!: pulumi.Output<boolean>;
|
|
39
|
+
public readonly logo!: pulumi.Output<string>;
|
|
40
|
+
public readonly paginate!: pulumi.Output<boolean>;
|
|
41
|
+
public readonly paginationRate!: pulumi.Output<number>;
|
|
42
|
+
public readonly refreshRate!: pulumi.Output<number>;
|
|
43
|
+
public readonly tags!: pulumi.Output<string[] | undefined>;
|
|
44
|
+
public readonly width!: pulumi.Output<string | undefined>;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Create a Dashboard resource with the given unique name, arguments, and options.
|
|
48
|
+
*
|
|
49
|
+
* @param name The _unique_ name of the resource.
|
|
50
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
51
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
52
|
+
*/
|
|
53
|
+
constructor(name: string, args: DashboardArgs, opts?: pulumi.CustomResourceOptions)
|
|
54
|
+
constructor(name: string, argsOrState?: DashboardArgs | DashboardState, opts?: pulumi.CustomResourceOptions) {
|
|
55
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
56
|
+
opts = opts || {};
|
|
57
|
+
if (opts.id) {
|
|
58
|
+
const state = argsOrState as DashboardState | undefined;
|
|
59
|
+
resourceInputs["customDomain"] = state ? state.customDomain : undefined;
|
|
60
|
+
resourceInputs["customUrl"] = state ? state.customUrl : undefined;
|
|
61
|
+
resourceInputs["header"] = state ? state.header : undefined;
|
|
62
|
+
resourceInputs["hideTags"] = state ? state.hideTags : undefined;
|
|
63
|
+
resourceInputs["logo"] = state ? state.logo : undefined;
|
|
64
|
+
resourceInputs["paginate"] = state ? state.paginate : undefined;
|
|
65
|
+
resourceInputs["paginationRate"] = state ? state.paginationRate : undefined;
|
|
66
|
+
resourceInputs["refreshRate"] = state ? state.refreshRate : undefined;
|
|
67
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
68
|
+
resourceInputs["width"] = state ? state.width : undefined;
|
|
69
|
+
} else {
|
|
70
|
+
const args = argsOrState as DashboardArgs | undefined;
|
|
71
|
+
if ((!args || args.customDomain === undefined) && !opts.urn) {
|
|
72
|
+
throw new Error("Missing required property 'customDomain'");
|
|
73
|
+
}
|
|
74
|
+
if ((!args || args.customUrl === undefined) && !opts.urn) {
|
|
75
|
+
throw new Error("Missing required property 'customUrl'");
|
|
76
|
+
}
|
|
77
|
+
if ((!args || args.header === undefined) && !opts.urn) {
|
|
78
|
+
throw new Error("Missing required property 'header'");
|
|
79
|
+
}
|
|
80
|
+
if ((!args || args.hideTags === undefined) && !opts.urn) {
|
|
81
|
+
throw new Error("Missing required property 'hideTags'");
|
|
82
|
+
}
|
|
83
|
+
if ((!args || args.logo === undefined) && !opts.urn) {
|
|
84
|
+
throw new Error("Missing required property 'logo'");
|
|
85
|
+
}
|
|
86
|
+
if ((!args || args.paginate === undefined) && !opts.urn) {
|
|
87
|
+
throw new Error("Missing required property 'paginate'");
|
|
88
|
+
}
|
|
89
|
+
if ((!args || args.paginationRate === undefined) && !opts.urn) {
|
|
90
|
+
throw new Error("Missing required property 'paginationRate'");
|
|
91
|
+
}
|
|
92
|
+
if ((!args || args.refreshRate === undefined) && !opts.urn) {
|
|
93
|
+
throw new Error("Missing required property 'refreshRate'");
|
|
94
|
+
}
|
|
95
|
+
resourceInputs["customDomain"] = args ? args.customDomain : undefined;
|
|
96
|
+
resourceInputs["customUrl"] = args ? args.customUrl : undefined;
|
|
97
|
+
resourceInputs["header"] = args ? args.header : undefined;
|
|
98
|
+
resourceInputs["hideTags"] = args ? args.hideTags : undefined;
|
|
99
|
+
resourceInputs["logo"] = args ? args.logo : undefined;
|
|
100
|
+
resourceInputs["paginate"] = args ? args.paginate : undefined;
|
|
101
|
+
resourceInputs["paginationRate"] = args ? args.paginationRate : undefined;
|
|
102
|
+
resourceInputs["refreshRate"] = args ? args.refreshRate : undefined;
|
|
103
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
104
|
+
resourceInputs["width"] = args ? args.width : undefined;
|
|
105
|
+
}
|
|
106
|
+
if (!opts.version) {
|
|
107
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()});
|
|
108
|
+
}
|
|
109
|
+
super(Dashboard.__pulumiType, name, resourceInputs, opts);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Input properties used for looking up and filtering Dashboard resources.
|
|
115
|
+
*/
|
|
116
|
+
export interface DashboardState {
|
|
117
|
+
customDomain?: pulumi.Input<string>;
|
|
118
|
+
customUrl?: pulumi.Input<string>;
|
|
119
|
+
header?: pulumi.Input<string>;
|
|
120
|
+
hideTags?: pulumi.Input<boolean>;
|
|
121
|
+
logo?: pulumi.Input<string>;
|
|
122
|
+
paginate?: pulumi.Input<boolean>;
|
|
123
|
+
paginationRate?: pulumi.Input<number>;
|
|
124
|
+
refreshRate?: pulumi.Input<number>;
|
|
125
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
126
|
+
width?: pulumi.Input<string>;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* The set of arguments for constructing a Dashboard resource.
|
|
131
|
+
*/
|
|
132
|
+
export interface DashboardArgs {
|
|
133
|
+
customDomain: pulumi.Input<string>;
|
|
134
|
+
customUrl: pulumi.Input<string>;
|
|
135
|
+
header: pulumi.Input<string>;
|
|
136
|
+
hideTags: pulumi.Input<boolean>;
|
|
137
|
+
logo: pulumi.Input<string>;
|
|
138
|
+
paginate: pulumi.Input<boolean>;
|
|
139
|
+
paginationRate: pulumi.Input<number>;
|
|
140
|
+
refreshRate: pulumi.Input<number>;
|
|
141
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
142
|
+
width?: pulumi.Input<string>;
|
|
143
|
+
}
|
package/index.ts
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
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 * as utilities from "./utilities";
|
|
6
|
+
|
|
7
|
+
// Export members:
|
|
8
|
+
export * from "./alertChannel";
|
|
9
|
+
export * from "./check";
|
|
10
|
+
export * from "./checkGroup";
|
|
11
|
+
export * from "./dashboard";
|
|
12
|
+
export * from "./maintenanceWindow";
|
|
13
|
+
export * from "./provider";
|
|
14
|
+
export * from "./snippet";
|
|
15
|
+
export * from "./triggerCheck";
|
|
16
|
+
export * from "./triggerCheckGroup";
|
|
17
|
+
|
|
18
|
+
// Export sub-modules:
|
|
19
|
+
import * as config from "./config";
|
|
20
|
+
import * as types from "./types";
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
config,
|
|
24
|
+
types,
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
// Import resources to register:
|
|
28
|
+
import { AlertChannel } from "./alertChannel";
|
|
29
|
+
import { Check } from "./check";
|
|
30
|
+
import { CheckGroup } from "./checkGroup";
|
|
31
|
+
import { Dashboard } from "./dashboard";
|
|
32
|
+
import { MaintenanceWindow } from "./maintenanceWindow";
|
|
33
|
+
import { Snippet } from "./snippet";
|
|
34
|
+
import { TriggerCheck } from "./triggerCheck";
|
|
35
|
+
import { TriggerCheckGroup } from "./triggerCheckGroup";
|
|
36
|
+
|
|
37
|
+
const _module = {
|
|
38
|
+
version: utilities.getVersion(),
|
|
39
|
+
construct: (name: string, type: string, urn: string): pulumi.Resource => {
|
|
40
|
+
switch (type) {
|
|
41
|
+
case "checkly:index/alertChannel:AlertChannel":
|
|
42
|
+
return new AlertChannel(name, <any>undefined, { urn })
|
|
43
|
+
case "checkly:index/check:Check":
|
|
44
|
+
return new Check(name, <any>undefined, { urn })
|
|
45
|
+
case "checkly:index/checkGroup:CheckGroup":
|
|
46
|
+
return new CheckGroup(name, <any>undefined, { urn })
|
|
47
|
+
case "checkly:index/dashboard:Dashboard":
|
|
48
|
+
return new Dashboard(name, <any>undefined, { urn })
|
|
49
|
+
case "checkly:index/maintenanceWindow:MaintenanceWindow":
|
|
50
|
+
return new MaintenanceWindow(name, <any>undefined, { urn })
|
|
51
|
+
case "checkly:index/snippet:Snippet":
|
|
52
|
+
return new Snippet(name, <any>undefined, { urn })
|
|
53
|
+
case "checkly:index/triggerCheck:TriggerCheck":
|
|
54
|
+
return new TriggerCheck(name, <any>undefined, { urn })
|
|
55
|
+
case "checkly:index/triggerCheckGroup:TriggerCheckGroup":
|
|
56
|
+
return new TriggerCheckGroup(name, <any>undefined, { urn })
|
|
57
|
+
default:
|
|
58
|
+
throw new Error(`unknown resource type ${type}`);
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
pulumi.runtime.registerResourceModule("checkly", "index/alertChannel", _module)
|
|
63
|
+
pulumi.runtime.registerResourceModule("checkly", "index/check", _module)
|
|
64
|
+
pulumi.runtime.registerResourceModule("checkly", "index/checkGroup", _module)
|
|
65
|
+
pulumi.runtime.registerResourceModule("checkly", "index/dashboard", _module)
|
|
66
|
+
pulumi.runtime.registerResourceModule("checkly", "index/maintenanceWindow", _module)
|
|
67
|
+
pulumi.runtime.registerResourceModule("checkly", "index/snippet", _module)
|
|
68
|
+
pulumi.runtime.registerResourceModule("checkly", "index/triggerCheck", _module)
|
|
69
|
+
pulumi.runtime.registerResourceModule("checkly", "index/triggerCheckGroup", _module)
|
|
70
|
+
|
|
71
|
+
import { Provider } from "./provider";
|
|
72
|
+
|
|
73
|
+
pulumi.runtime.registerResourcePackage("checkly", {
|
|
74
|
+
version: utilities.getVersion(),
|
|
75
|
+
constructProvider: (name: string, type: string, urn: string): pulumi.ProviderResource => {
|
|
76
|
+
if (type !== "pulumi:providers:checkly") {
|
|
77
|
+
throw new Error(`unknown provider type ${type}`);
|
|
78
|
+
}
|
|
79
|
+
return new Provider(name, <any>undefined, { urn });
|
|
80
|
+
},
|
|
81
|
+
});
|