@checkly/pulumi 0.0.1-alpha.4 → 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.
- package/README.md +2 -3
- package/alertChannel.ts +55 -138
- package/bin/README.md +58 -15
- package/bin/alertChannel.d.ts +55 -138
- package/bin/alertChannel.js +40 -105
- package/bin/alertChannel.js.map +1 -1
- package/bin/check.d.ts +90 -51
- package/bin/check.js +3 -0
- package/bin/check.js.map +1 -1
- package/bin/checkGroup.d.ts +112 -36
- package/bin/checkGroup.js +88 -0
- package/bin/checkGroup.js.map +1 -1
- package/bin/dashboard.d.ts +125 -14
- package/bin/dashboard.js +21 -21
- package/bin/dashboard.js.map +1 -1
- package/bin/environmentVariable.d.ts +64 -0
- package/bin/environmentVariable.js +78 -0
- package/bin/environmentVariable.js.map +1 -0
- package/bin/index.d.ts +1 -0
- package/bin/index.js +5 -0
- package/bin/index.js.map +1 -1
- package/bin/maintenanceWindow.d.ts +16 -36
- package/bin/maintenanceWindow.js +1 -30
- package/bin/maintenanceWindow.js.map +1 -1
- package/bin/package.json +3 -3
- package/bin/snippet.d.ts +3 -3
- package/bin/triggerCheck.d.ts +18 -6
- package/bin/triggerCheck.js +0 -6
- package/bin/triggerCheck.js.map +1 -1
- package/bin/triggerCheckGroup.d.ts +18 -6
- package/bin/triggerCheckGroup.js +0 -6
- package/bin/triggerCheckGroup.js.map +1 -1
- package/bin/types/input.d.ts +2 -188
- package/bin/types/input.js.map +1 -1
- package/bin/types/output.d.ts +2 -188
- package/bin/types/output.js.map +1 -1
- package/bin/yarn.lock +179 -117
- package/check.ts +90 -51
- package/checkGroup.ts +112 -36
- package/dashboard.ts +125 -35
- package/environmentVariable.ts +107 -0
- package/index.ts +5 -0
- package/maintenanceWindow.ts +16 -45
- package/package.json +29 -29
- package/snippet.ts +3 -3
- package/triggerCheck.ts +18 -6
- package/triggerCheckGroup.ts +18 -6
- package/tsconfig.json +1 -0
- package/types/input.ts +2 -188
- package/types/output.ts +2 -188
package/bin/alertChannel.d.ts
CHANGED
|
@@ -1,133 +1,68 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import { input as inputs, output as outputs } from "./types";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* The `checkly.AlertChannel` resource allows users to manage Checkly alert channels.
|
|
7
|
-
*
|
|
8
|
-
* Checkly's Alert Channels feature allows you to define global alerting channels for the checks in your account:
|
|
4
|
+
* Allows you to define alerting channels for the checks and groups in your account
|
|
9
5
|
*
|
|
10
6
|
* ## Example Usage
|
|
11
7
|
*
|
|
12
|
-
* *An Email alert channel*
|
|
13
8
|
* ```typescript
|
|
14
9
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
-
* import * as
|
|
10
|
+
* import * as pulumi from "@checkly/pulumi";
|
|
16
11
|
*
|
|
17
|
-
*
|
|
12
|
+
* // An Email alert channel
|
|
13
|
+
* const emailAc = new checkly.AlertChannel("emailAc", {
|
|
18
14
|
* email: {
|
|
19
15
|
* address: "john@example.com",
|
|
20
16
|
* },
|
|
21
|
-
* sendDegraded: true,
|
|
22
|
-
* sendFailure: false,
|
|
23
17
|
* sendRecovery: true,
|
|
18
|
+
* sendFailure: false,
|
|
19
|
+
* sendDegraded: true,
|
|
24
20
|
* sslExpiry: true,
|
|
25
21
|
* sslExpiryThreshold: 22,
|
|
26
22
|
* });
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* *A SMS alert channel*
|
|
30
|
-
* ```typescript
|
|
31
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
32
|
-
* import * as checkly from "@pulumi/checkly";
|
|
33
|
-
*
|
|
34
|
-
* const smsAc = new checkly.AlertChannel("sms_ac", {
|
|
35
|
-
* sendFailure: true,
|
|
36
|
-
* sendRecovery: true,
|
|
23
|
+
* // A SMS alert channel
|
|
24
|
+
* const smsAc = new checkly.AlertChannel("smsAc", {
|
|
37
25
|
* sms: {
|
|
38
26
|
* name: "john",
|
|
39
|
-
* number: "
|
|
40
|
-
* },
|
|
41
|
-
* });
|
|
42
|
-
* ```
|
|
43
|
-
*
|
|
44
|
-
* *A Slack alert channel*
|
|
45
|
-
* ```typescript
|
|
46
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
47
|
-
* import * as checkly from "@pulumi/checkly";
|
|
48
|
-
*
|
|
49
|
-
* const slackAc = new checkly.AlertChannel("slack_ac", {
|
|
50
|
-
* slack: {
|
|
51
|
-
* channel: "#checkly-notifications",
|
|
52
|
-
* url: "https://slack.com/webhook",
|
|
53
|
-
* },
|
|
54
|
-
* });
|
|
55
|
-
* ```
|
|
56
|
-
*
|
|
57
|
-
* *An Opsgenie alert channel*
|
|
58
|
-
* ```typescript
|
|
59
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
60
|
-
* import * as checkly from "@pulumi/checkly";
|
|
61
|
-
*
|
|
62
|
-
* const opsgenieAc = new checkly.AlertChannel("opsgenie_ac", {
|
|
63
|
-
* opsgenie: {
|
|
64
|
-
* apiKey: "fookey",
|
|
65
|
-
* name: "opsalerts",
|
|
66
|
-
* priority: "foopriority",
|
|
67
|
-
* region: "fooregion",
|
|
68
|
-
* },
|
|
69
|
-
* });
|
|
70
|
-
* ```
|
|
71
|
-
*
|
|
72
|
-
* *An Pagerduty alert channel*
|
|
73
|
-
* ```typescript
|
|
74
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
75
|
-
* import * as checkly from "@pulumi/checkly";
|
|
76
|
-
*
|
|
77
|
-
* const pagerdutyAc = new checkly.AlertChannel("pagerduty_ac", {
|
|
78
|
-
* pagerduty: {
|
|
79
|
-
* account: "checkly",
|
|
80
|
-
* serviceKey: "key1",
|
|
81
|
-
* serviceName: "pdalert",
|
|
82
|
-
* },
|
|
83
|
-
* });
|
|
84
|
-
* ```
|
|
85
|
-
*
|
|
86
|
-
* *An Webhook alert channel*
|
|
87
|
-
* ```typescript
|
|
88
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
89
|
-
* import * as checkly from "@pulumi/checkly";
|
|
90
|
-
*
|
|
91
|
-
* const webhookAc = new checkly.AlertChannel("webhook_ac", {
|
|
92
|
-
* webhook: {
|
|
93
|
-
* method: "get",
|
|
94
|
-
* name: "foo",
|
|
95
|
-
* template: "footemplate",
|
|
96
|
-
* url: "http://example.com/foo",
|
|
97
|
-
* webhookSecret: "foosecret",
|
|
27
|
+
* number: "+5491100001111",
|
|
98
28
|
* },
|
|
29
|
+
* sendRecovery: true,
|
|
30
|
+
* sendFailure: true,
|
|
99
31
|
* });
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
32
|
+
* // A Slack alert channel
|
|
33
|
+
* const slackAc = new checkly.AlertChannel("slackAc", {slack: {
|
|
34
|
+
* channel: "#checkly-notifications",
|
|
35
|
+
* url: "https://slack.com/webhook",
|
|
36
|
+
* }});
|
|
37
|
+
* // An Opsgenie alert channel
|
|
38
|
+
* const opsgenieAc = new checkly.AlertChannel("opsgenieAc", {opsgenie: {
|
|
39
|
+
* name: "opsalerts",
|
|
40
|
+
* apiKey: "fookey",
|
|
41
|
+
* region: "fooregion",
|
|
42
|
+
* priority: "foopriority",
|
|
43
|
+
* }});
|
|
44
|
+
* // An Pagerduty alert channel
|
|
45
|
+
* const pagerdutyAc = new checkly.AlertChannel("pagerdutyAc", {pagerduty: {
|
|
46
|
+
* account: "checkly",
|
|
47
|
+
* serviceKey: "key1",
|
|
48
|
+
* serviceName: "pdalert",
|
|
49
|
+
* }});
|
|
50
|
+
* // An Webhook alert channel
|
|
51
|
+
* const webhookAc = new checkly.AlertChannel("webhookAc", {webhook: {
|
|
52
|
+
* name: "foo",
|
|
53
|
+
* method: "get",
|
|
54
|
+
* template: "footemplate",
|
|
55
|
+
* url: "https://example.com/foo",
|
|
56
|
+
* webhookSecret: "foosecret",
|
|
57
|
+
* }});
|
|
58
|
+
* // Connecting the alert channel to a check
|
|
107
59
|
* const example_check = new checkly.Check("example-check", {alertChannelSubscriptions: [
|
|
108
60
|
* {
|
|
109
|
-
* channelId:
|
|
61
|
+
* channelId: emailAc.id,
|
|
110
62
|
* activated: true,
|
|
111
63
|
* },
|
|
112
64
|
* {
|
|
113
|
-
* channelId:
|
|
114
|
-
* activated: true,
|
|
115
|
-
* },
|
|
116
|
-
* ]});
|
|
117
|
-
* ```
|
|
118
|
-
*
|
|
119
|
-
* *Connecting the alert channel to a check group
|
|
120
|
-
* ```typescript
|
|
121
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
122
|
-
* import * as pulumi from "@checkly/pulumi";
|
|
123
|
-
*
|
|
124
|
-
* const test_group1 = new checkly.CheckGroup("test-group1", {alertChannelSubscriptions: [
|
|
125
|
-
* {
|
|
126
|
-
* channelId: checkly_alert_channel.email_ac.id,
|
|
127
|
-
* activated: true,
|
|
128
|
-
* },
|
|
129
|
-
* {
|
|
130
|
-
* channelId: checkly_alert_channel.sms_ac.id,
|
|
65
|
+
* channelId: smsAc.id,
|
|
131
66
|
* activated: true,
|
|
132
67
|
* },
|
|
133
68
|
* ]});
|
|
@@ -149,35 +84,29 @@ export declare class AlertChannel extends pulumi.CustomResource {
|
|
|
149
84
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
150
85
|
*/
|
|
151
86
|
static isInstance(obj: any): obj is AlertChannel;
|
|
152
|
-
/**
|
|
153
|
-
* :
|
|
154
|
-
*/
|
|
155
87
|
readonly email: pulumi.Output<outputs.AlertChannelEmail | undefined>;
|
|
156
88
|
readonly opsgenie: pulumi.Output<outputs.AlertChannelOpsgenie | undefined>;
|
|
157
89
|
readonly pagerduty: pulumi.Output<outputs.AlertChannelPagerduty | undefined>;
|
|
158
90
|
/**
|
|
159
|
-
*
|
|
91
|
+
* (Default `false`)
|
|
160
92
|
*/
|
|
161
93
|
readonly sendDegraded: pulumi.Output<boolean | undefined>;
|
|
162
94
|
/**
|
|
163
|
-
*
|
|
95
|
+
* (Default `true`)
|
|
164
96
|
*/
|
|
165
97
|
readonly sendFailure: pulumi.Output<boolean | undefined>;
|
|
166
98
|
/**
|
|
167
|
-
*
|
|
99
|
+
* (Default `true`)
|
|
168
100
|
*/
|
|
169
101
|
readonly sendRecovery: pulumi.Output<boolean | undefined>;
|
|
170
102
|
readonly slack: pulumi.Output<outputs.AlertChannelSlack | undefined>;
|
|
171
|
-
/**
|
|
172
|
-
* :
|
|
173
|
-
*/
|
|
174
103
|
readonly sms: pulumi.Output<outputs.AlertChannelSms | undefined>;
|
|
175
104
|
/**
|
|
176
|
-
*
|
|
105
|
+
* (Default `false`)
|
|
177
106
|
*/
|
|
178
107
|
readonly sslExpiry: pulumi.Output<boolean | undefined>;
|
|
179
108
|
/**
|
|
180
|
-
*
|
|
109
|
+
* Value must be between 1 and 30 (Default `30`)
|
|
181
110
|
*/
|
|
182
111
|
readonly sslExpiryThreshold: pulumi.Output<number | undefined>;
|
|
183
112
|
readonly webhook: pulumi.Output<outputs.AlertChannelWebhook | undefined>;
|
|
@@ -194,35 +123,29 @@ export declare class AlertChannel extends pulumi.CustomResource {
|
|
|
194
123
|
* Input properties used for looking up and filtering AlertChannel resources.
|
|
195
124
|
*/
|
|
196
125
|
export interface AlertChannelState {
|
|
197
|
-
/**
|
|
198
|
-
* :
|
|
199
|
-
*/
|
|
200
126
|
email?: pulumi.Input<inputs.AlertChannelEmail>;
|
|
201
127
|
opsgenie?: pulumi.Input<inputs.AlertChannelOpsgenie>;
|
|
202
128
|
pagerduty?: pulumi.Input<inputs.AlertChannelPagerduty>;
|
|
203
129
|
/**
|
|
204
|
-
*
|
|
130
|
+
* (Default `false`)
|
|
205
131
|
*/
|
|
206
132
|
sendDegraded?: pulumi.Input<boolean>;
|
|
207
133
|
/**
|
|
208
|
-
*
|
|
134
|
+
* (Default `true`)
|
|
209
135
|
*/
|
|
210
136
|
sendFailure?: pulumi.Input<boolean>;
|
|
211
137
|
/**
|
|
212
|
-
*
|
|
138
|
+
* (Default `true`)
|
|
213
139
|
*/
|
|
214
140
|
sendRecovery?: pulumi.Input<boolean>;
|
|
215
141
|
slack?: pulumi.Input<inputs.AlertChannelSlack>;
|
|
216
|
-
/**
|
|
217
|
-
* :
|
|
218
|
-
*/
|
|
219
142
|
sms?: pulumi.Input<inputs.AlertChannelSms>;
|
|
220
143
|
/**
|
|
221
|
-
*
|
|
144
|
+
* (Default `false`)
|
|
222
145
|
*/
|
|
223
146
|
sslExpiry?: pulumi.Input<boolean>;
|
|
224
147
|
/**
|
|
225
|
-
*
|
|
148
|
+
* Value must be between 1 and 30 (Default `30`)
|
|
226
149
|
*/
|
|
227
150
|
sslExpiryThreshold?: pulumi.Input<number>;
|
|
228
151
|
webhook?: pulumi.Input<inputs.AlertChannelWebhook>;
|
|
@@ -231,35 +154,29 @@ export interface AlertChannelState {
|
|
|
231
154
|
* The set of arguments for constructing a AlertChannel resource.
|
|
232
155
|
*/
|
|
233
156
|
export interface AlertChannelArgs {
|
|
234
|
-
/**
|
|
235
|
-
* :
|
|
236
|
-
*/
|
|
237
157
|
email?: pulumi.Input<inputs.AlertChannelEmail>;
|
|
238
158
|
opsgenie?: pulumi.Input<inputs.AlertChannelOpsgenie>;
|
|
239
159
|
pagerduty?: pulumi.Input<inputs.AlertChannelPagerduty>;
|
|
240
160
|
/**
|
|
241
|
-
*
|
|
161
|
+
* (Default `false`)
|
|
242
162
|
*/
|
|
243
163
|
sendDegraded?: pulumi.Input<boolean>;
|
|
244
164
|
/**
|
|
245
|
-
*
|
|
165
|
+
* (Default `true`)
|
|
246
166
|
*/
|
|
247
167
|
sendFailure?: pulumi.Input<boolean>;
|
|
248
168
|
/**
|
|
249
|
-
*
|
|
169
|
+
* (Default `true`)
|
|
250
170
|
*/
|
|
251
171
|
sendRecovery?: pulumi.Input<boolean>;
|
|
252
172
|
slack?: pulumi.Input<inputs.AlertChannelSlack>;
|
|
253
|
-
/**
|
|
254
|
-
* :
|
|
255
|
-
*/
|
|
256
173
|
sms?: pulumi.Input<inputs.AlertChannelSms>;
|
|
257
174
|
/**
|
|
258
|
-
*
|
|
175
|
+
* (Default `false`)
|
|
259
176
|
*/
|
|
260
177
|
sslExpiry?: pulumi.Input<boolean>;
|
|
261
178
|
/**
|
|
262
|
-
*
|
|
179
|
+
* Value must be between 1 and 30 (Default `30`)
|
|
263
180
|
*/
|
|
264
181
|
sslExpiryThreshold?: pulumi.Input<number>;
|
|
265
182
|
webhook?: pulumi.Input<inputs.AlertChannelWebhook>;
|
package/bin/alertChannel.js
CHANGED
|
@@ -6,133 +6,68 @@ exports.AlertChannel = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* The `checkly.AlertChannel` resource allows users to manage Checkly alert channels.
|
|
12
|
-
*
|
|
13
|
-
* Checkly's Alert Channels feature allows you to define global alerting channels for the checks in your account:
|
|
9
|
+
* Allows you to define alerting channels for the checks and groups in your account
|
|
14
10
|
*
|
|
15
11
|
* ## Example Usage
|
|
16
12
|
*
|
|
17
|
-
* *An Email alert channel*
|
|
18
13
|
* ```typescript
|
|
19
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
20
|
-
* import * as
|
|
15
|
+
* import * as pulumi from "@checkly/pulumi";
|
|
21
16
|
*
|
|
22
|
-
*
|
|
17
|
+
* // An Email alert channel
|
|
18
|
+
* const emailAc = new checkly.AlertChannel("emailAc", {
|
|
23
19
|
* email: {
|
|
24
20
|
* address: "john@example.com",
|
|
25
21
|
* },
|
|
26
|
-
* sendDegraded: true,
|
|
27
|
-
* sendFailure: false,
|
|
28
22
|
* sendRecovery: true,
|
|
23
|
+
* sendFailure: false,
|
|
24
|
+
* sendDegraded: true,
|
|
29
25
|
* sslExpiry: true,
|
|
30
26
|
* sslExpiryThreshold: 22,
|
|
31
27
|
* });
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* *A SMS alert channel*
|
|
35
|
-
* ```typescript
|
|
36
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
37
|
-
* import * as checkly from "@pulumi/checkly";
|
|
38
|
-
*
|
|
39
|
-
* const smsAc = new checkly.AlertChannel("sms_ac", {
|
|
40
|
-
* sendFailure: true,
|
|
41
|
-
* sendRecovery: true,
|
|
28
|
+
* // A SMS alert channel
|
|
29
|
+
* const smsAc = new checkly.AlertChannel("smsAc", {
|
|
42
30
|
* sms: {
|
|
43
31
|
* name: "john",
|
|
44
|
-
* number: "
|
|
45
|
-
* },
|
|
46
|
-
* });
|
|
47
|
-
* ```
|
|
48
|
-
*
|
|
49
|
-
* *A Slack alert channel*
|
|
50
|
-
* ```typescript
|
|
51
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
52
|
-
* import * as checkly from "@pulumi/checkly";
|
|
53
|
-
*
|
|
54
|
-
* const slackAc = new checkly.AlertChannel("slack_ac", {
|
|
55
|
-
* slack: {
|
|
56
|
-
* channel: "#checkly-notifications",
|
|
57
|
-
* url: "https://slack.com/webhook",
|
|
58
|
-
* },
|
|
59
|
-
* });
|
|
60
|
-
* ```
|
|
61
|
-
*
|
|
62
|
-
* *An Opsgenie alert channel*
|
|
63
|
-
* ```typescript
|
|
64
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
65
|
-
* import * as checkly from "@pulumi/checkly";
|
|
66
|
-
*
|
|
67
|
-
* const opsgenieAc = new checkly.AlertChannel("opsgenie_ac", {
|
|
68
|
-
* opsgenie: {
|
|
69
|
-
* apiKey: "fookey",
|
|
70
|
-
* name: "opsalerts",
|
|
71
|
-
* priority: "foopriority",
|
|
72
|
-
* region: "fooregion",
|
|
73
|
-
* },
|
|
74
|
-
* });
|
|
75
|
-
* ```
|
|
76
|
-
*
|
|
77
|
-
* *An Pagerduty alert channel*
|
|
78
|
-
* ```typescript
|
|
79
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
80
|
-
* import * as checkly from "@pulumi/checkly";
|
|
81
|
-
*
|
|
82
|
-
* const pagerdutyAc = new checkly.AlertChannel("pagerduty_ac", {
|
|
83
|
-
* pagerduty: {
|
|
84
|
-
* account: "checkly",
|
|
85
|
-
* serviceKey: "key1",
|
|
86
|
-
* serviceName: "pdalert",
|
|
87
|
-
* },
|
|
88
|
-
* });
|
|
89
|
-
* ```
|
|
90
|
-
*
|
|
91
|
-
* *An Webhook alert channel*
|
|
92
|
-
* ```typescript
|
|
93
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
94
|
-
* import * as checkly from "@pulumi/checkly";
|
|
95
|
-
*
|
|
96
|
-
* const webhookAc = new checkly.AlertChannel("webhook_ac", {
|
|
97
|
-
* webhook: {
|
|
98
|
-
* method: "get",
|
|
99
|
-
* name: "foo",
|
|
100
|
-
* template: "footemplate",
|
|
101
|
-
* url: "http://example.com/foo",
|
|
102
|
-
* webhookSecret: "foosecret",
|
|
32
|
+
* number: "+5491100001111",
|
|
103
33
|
* },
|
|
34
|
+
* sendRecovery: true,
|
|
35
|
+
* sendFailure: true,
|
|
104
36
|
* });
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
37
|
+
* // A Slack alert channel
|
|
38
|
+
* const slackAc = new checkly.AlertChannel("slackAc", {slack: {
|
|
39
|
+
* channel: "#checkly-notifications",
|
|
40
|
+
* url: "https://slack.com/webhook",
|
|
41
|
+
* }});
|
|
42
|
+
* // An Opsgenie alert channel
|
|
43
|
+
* const opsgenieAc = new checkly.AlertChannel("opsgenieAc", {opsgenie: {
|
|
44
|
+
* name: "opsalerts",
|
|
45
|
+
* apiKey: "fookey",
|
|
46
|
+
* region: "fooregion",
|
|
47
|
+
* priority: "foopriority",
|
|
48
|
+
* }});
|
|
49
|
+
* // An Pagerduty alert channel
|
|
50
|
+
* const pagerdutyAc = new checkly.AlertChannel("pagerdutyAc", {pagerduty: {
|
|
51
|
+
* account: "checkly",
|
|
52
|
+
* serviceKey: "key1",
|
|
53
|
+
* serviceName: "pdalert",
|
|
54
|
+
* }});
|
|
55
|
+
* // An Webhook alert channel
|
|
56
|
+
* const webhookAc = new checkly.AlertChannel("webhookAc", {webhook: {
|
|
57
|
+
* name: "foo",
|
|
58
|
+
* method: "get",
|
|
59
|
+
* template: "footemplate",
|
|
60
|
+
* url: "https://example.com/foo",
|
|
61
|
+
* webhookSecret: "foosecret",
|
|
62
|
+
* }});
|
|
63
|
+
* // Connecting the alert channel to a check
|
|
112
64
|
* const example_check = new checkly.Check("example-check", {alertChannelSubscriptions: [
|
|
113
65
|
* {
|
|
114
|
-
* channelId:
|
|
115
|
-
* activated: true,
|
|
116
|
-
* },
|
|
117
|
-
* {
|
|
118
|
-
* channelId: checkly_alert_channel.sms_ac.id,
|
|
119
|
-
* activated: true,
|
|
120
|
-
* },
|
|
121
|
-
* ]});
|
|
122
|
-
* ```
|
|
123
|
-
*
|
|
124
|
-
* *Connecting the alert channel to a check group
|
|
125
|
-
* ```typescript
|
|
126
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
127
|
-
* import * as pulumi from "@checkly/pulumi";
|
|
128
|
-
*
|
|
129
|
-
* const test_group1 = new checkly.CheckGroup("test-group1", {alertChannelSubscriptions: [
|
|
130
|
-
* {
|
|
131
|
-
* channelId: checkly_alert_channel.email_ac.id,
|
|
66
|
+
* channelId: emailAc.id,
|
|
132
67
|
* activated: true,
|
|
133
68
|
* },
|
|
134
69
|
* {
|
|
135
|
-
* channelId:
|
|
70
|
+
* channelId: smsAc.id,
|
|
136
71
|
* activated: true,
|
|
137
72
|
* },
|
|
138
73
|
* ]});
|
package/bin/alertChannel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alertChannel.js","sourceRoot":"","sources":["../alertChannel.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAA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