checkly 8.1.0-prerelease-a5509e5 → 8.2.0-prerelease-169e1f4
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/dist/ai-context/checkly.rules.md +17 -1
- package/dist/ai-context/context.d.ts +2 -2
- package/dist/ai-context/context.js +6 -1
- package/dist/ai-context/context.js.map +1 -1
- package/dist/ai-context/skills-command/references/configure-alert-channels.md +16 -0
- package/dist/ai-context/skills-command/references/configure.md +1 -1
- package/dist/constructs/alert-channel-codegen.d.ts +3 -1
- package/dist/constructs/alert-channel-codegen.js +4 -0
- package/dist/constructs/alert-channel-codegen.js.map +1 -1
- package/dist/constructs/index.d.ts +1 -0
- package/dist/constructs/index.js +1 -0
- package/dist/constructs/index.js.map +1 -1
- package/dist/constructs/slack-app-alert-channel-codegen.d.ts +13 -0
- package/dist/constructs/slack-app-alert-channel-codegen.js +39 -0
- package/dist/constructs/slack-app-alert-channel-codegen.js.map +1 -0
- package/dist/constructs/slack-app-alert-channel.d.ts +25 -0
- package/dist/constructs/slack-app-alert-channel.js +38 -0
- package/dist/constructs/slack-app-alert-channel.js.map +1 -0
- package/oclif.manifest.json +239 -239
- package/package.json +1 -1
|
@@ -113,7 +113,7 @@ Heartbeat Monitor construct (`HeartbeatMonitor`)
|
|
|
113
113
|
CheckGroupV2 construct (`CheckGroupV2`) for organizing checks
|
|
114
114
|
|
|
115
115
|
### `npx checkly skills configure alert-channels`
|
|
116
|
-
Email (`EmailAlertChannel`), Phone (`PhoneCallAlertChannel`), and Slack (`
|
|
116
|
+
Email (`EmailAlertChannel`), Phone (`PhoneCallAlertChannel`), Slack (`SlackAlertChannel`), and Slack App (`SlackAppAlertChannel`) alert channels
|
|
117
117
|
|
|
118
118
|
### `npx checkly skills configure supporting-constructs`
|
|
119
119
|
Status pages (`StatusPage`), dashboards (`Dashboard`), maintenance windows (`MaintenanceWindow`), and private locations (`PrivateLocation`)
|
|
@@ -637,6 +637,22 @@ export const generalSlackAlert = new SlackAlertChannel('example-slack-alert-chan
|
|
|
637
637
|
})
|
|
638
638
|
```
|
|
639
639
|
|
|
640
|
+
#### Slack App Alert Channel
|
|
641
|
+
|
|
642
|
+
**Reference:** https://www.checklyhq.com/docs/constructs/slack-app-alert-channel/
|
|
643
|
+
|
|
644
|
+
```typescript
|
|
645
|
+
import { SlackAppAlertChannel } from 'checkly/constructs'
|
|
646
|
+
|
|
647
|
+
export const alertsOpsAliceSlackAppAlert = new SlackAppAlertChannel('example-slack-app-alert-channel', {
|
|
648
|
+
slackChannels: [
|
|
649
|
+
'#alerts',
|
|
650
|
+
'#ops',
|
|
651
|
+
'@alice',
|
|
652
|
+
],
|
|
653
|
+
})
|
|
654
|
+
```
|
|
655
|
+
|
|
640
656
|
### Supporting Constructs
|
|
641
657
|
|
|
642
658
|
#### Status Page
|
|
@@ -33,7 +33,7 @@ export declare const REFERENCES: readonly [{
|
|
|
33
33
|
readonly description: "CheckGroupV2 construct (`CheckGroupV2`) for organizing checks";
|
|
34
34
|
}, {
|
|
35
35
|
readonly id: "configure-alert-channels";
|
|
36
|
-
readonly description: "Email (`EmailAlertChannel`), Phone (`PhoneCallAlertChannel`), and Slack (`
|
|
36
|
+
readonly description: "Email (`EmailAlertChannel`), Phone (`PhoneCallAlertChannel`), Slack (`SlackAlertChannel`), and Slack App (`SlackAppAlertChannel`) alert channels";
|
|
37
37
|
}, {
|
|
38
38
|
readonly id: "configure-supporting-constructs";
|
|
39
39
|
readonly description: "Status pages (`StatusPage`), dashboards (`Dashboard`), maintenance windows (`MaintenanceWindow`), and private locations (`PrivateLocation`)";
|
|
@@ -98,7 +98,7 @@ export declare const ACTIONS: readonly [{
|
|
|
98
98
|
readonly description: "CheckGroupV2 construct (`CheckGroupV2`) for organizing checks";
|
|
99
99
|
}, {
|
|
100
100
|
readonly id: "configure-alert-channels";
|
|
101
|
-
readonly description: "Email (`EmailAlertChannel`), Phone (`PhoneCallAlertChannel`), and Slack (`
|
|
101
|
+
readonly description: "Email (`EmailAlertChannel`), Phone (`PhoneCallAlertChannel`), Slack (`SlackAlertChannel`), and Slack App (`SlackAppAlertChannel`) alert channels";
|
|
102
102
|
}, {
|
|
103
103
|
readonly id: "configure-supporting-constructs";
|
|
104
104
|
readonly description: "Status pages (`StatusPage`), dashboards (`Dashboard`), maintenance windows (`MaintenanceWindow`), and private locations (`PrivateLocation`)";
|
|
@@ -45,7 +45,7 @@ export const REFERENCES = [
|
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
id: 'configure-alert-channels',
|
|
48
|
-
description: 'Email (`EmailAlertChannel`), Phone (`PhoneCallAlertChannel`), and Slack (`
|
|
48
|
+
description: 'Email (`EmailAlertChannel`), Phone (`PhoneCallAlertChannel`), Slack (`SlackAlertChannel`), and Slack App (`SlackAppAlertChannel`) alert channels',
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
id: 'configure-supporting-constructs',
|
|
@@ -246,5 +246,10 @@ const playwrightChecks = new PlaywrightCheck("multi-browser-check", {
|
|
|
246
246
|
exampleConfigPath: 'resources/alert-channels/slack/general.check.ts',
|
|
247
247
|
reference: 'https://www.checklyhq.com/docs/constructs/slack-alert-channel/',
|
|
248
248
|
},
|
|
249
|
+
SLACK_APP_ALERT_CHANNEL: {
|
|
250
|
+
templateString: '<!-- EXAMPLE: SLACK_APP_ALERT_CHANNEL -->',
|
|
251
|
+
exampleConfigPath: 'resources/alert-channels/slack-app/alerts-ops-alice.check.ts',
|
|
252
|
+
reference: 'https://www.checklyhq.com/docs/constructs/slack-app-alert-channel/',
|
|
253
|
+
},
|
|
249
254
|
};
|
|
250
255
|
//# sourceMappingURL=context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/ai-context/context.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB;QACE,EAAE,EAAE,0BAA0B;QAC9B,WAAW,EAAE,oHAAoH;KAClI;IACD;QACE,EAAE,EAAE,sBAAsB;QAC1B,WAAW,EAAE,gFAAgF;KAC9F;IACD;QACE,EAAE,EAAE,0BAA0B;QAC9B,WAAW,EAAE,qEAAqE;KACnF;IACD;QACE,EAAE,EAAE,6BAA6B;QACjC,WAAW,EAAE,oFAAoF;KAClG;IACD;QACE,EAAE,EAAE,4BAA4B;QAChC,WAAW,EAAE,qEAAqE;KACnF;IACD;QACE,EAAE,EAAE,wBAAwB;QAC5B,WAAW,EAAE,sDAAsD;KACpE;IACD;QACE,EAAE,EAAE,wBAAwB;QAC5B,WAAW,EAAE,sDAAsD;KACpE;IACD;QACE,EAAE,EAAE,wBAAwB;QAC5B,WAAW,EAAE,sDAAsD;KACpE;IACD;QACE,EAAE,EAAE,yBAAyB;QAC7B,WAAW,EAAE,gFAAgF;KAC9F;IACD;QACE,EAAE,EAAE,8BAA8B;QAClC,WAAW,EAAE,kDAAkD;KAChE;IACD;QACE,EAAE,EAAE,wBAAwB;QAC5B,WAAW,EAAE,+DAA+D;KAC7E;IACD;QACE,EAAE,EAAE,0BAA0B;QAC9B,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/ai-context/context.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB;QACE,EAAE,EAAE,0BAA0B;QAC9B,WAAW,EAAE,oHAAoH;KAClI;IACD;QACE,EAAE,EAAE,sBAAsB;QAC1B,WAAW,EAAE,gFAAgF;KAC9F;IACD;QACE,EAAE,EAAE,0BAA0B;QAC9B,WAAW,EAAE,qEAAqE;KACnF;IACD;QACE,EAAE,EAAE,6BAA6B;QACjC,WAAW,EAAE,oFAAoF;KAClG;IACD;QACE,EAAE,EAAE,4BAA4B;QAChC,WAAW,EAAE,qEAAqE;KACnF;IACD;QACE,EAAE,EAAE,wBAAwB;QAC5B,WAAW,EAAE,sDAAsD;KACpE;IACD;QACE,EAAE,EAAE,wBAAwB;QAC5B,WAAW,EAAE,s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19 @@ export const generalSlackAlert = new SlackAlertChannel('example-slack-alert-chan
|
|
|
47
47
|
channel: '#general',
|
|
48
48
|
})
|
|
49
49
|
```
|
|
50
|
+
|
|
51
|
+
## Slack App Alert Channel
|
|
52
|
+
|
|
53
|
+
**Reference:** https://www.checklyhq.com/docs/constructs/slack-app-alert-channel/
|
|
54
|
+
|
|
55
|
+
```typescript
|
|
56
|
+
import { SlackAppAlertChannel } from 'checkly/constructs'
|
|
57
|
+
|
|
58
|
+
export const alertsOpsAliceSlackAppAlert = new SlackAppAlertChannel('example-slack-app-alert-channel', {
|
|
59
|
+
slackChannels: [
|
|
60
|
+
'#alerts',
|
|
61
|
+
'#ops',
|
|
62
|
+
'@alice',
|
|
63
|
+
],
|
|
64
|
+
})
|
|
65
|
+
```
|
|
@@ -113,7 +113,7 @@ Heartbeat Monitor construct (`HeartbeatMonitor`)
|
|
|
113
113
|
CheckGroupV2 construct (`CheckGroupV2`) for organizing checks
|
|
114
114
|
|
|
115
115
|
### `npx checkly skills configure alert-channels`
|
|
116
|
-
Email (`EmailAlertChannel`), Phone (`PhoneCallAlertChannel`), and Slack (`
|
|
116
|
+
Email (`EmailAlertChannel`), Phone (`PhoneCallAlertChannel`), Slack (`SlackAlertChannel`), and Slack App (`SlackAppAlertChannel`) alert channels
|
|
117
117
|
|
|
118
118
|
### `npx checkly skills configure supporting-constructs`
|
|
119
119
|
Status pages (`StatusPage`), dashboards (`Dashboard`), maintenance windows (`MaintenanceWindow`), and private locations (`PrivateLocation`)
|
|
@@ -5,9 +5,10 @@ import { OpsgenieAlertChannelCodegen } from './opsgenie-alert-channel-codegen.js
|
|
|
5
5
|
import { PagerdutyAlertChannelCodegen } from './pagerduty-alert-channel-codegen.js';
|
|
6
6
|
import { PhoneCallAlertChannelCodegen } from './phone-call-alert-channel-codegen.js';
|
|
7
7
|
import { SlackAlertChannelCodegen } from './slack-alert-channel-codegen.js';
|
|
8
|
+
import { SlackAppAlertChannelCodegen } from './slack-app-alert-channel-codegen.js';
|
|
8
9
|
import { SmsAlertChannelCodegen } from './sms-alert-channel-codegen.js';
|
|
9
10
|
import { WebhookAlertChannelCodegen } from './webhook-alert-channel-codegen.js';
|
|
10
|
-
export type AlertChannelType = 'CALL' | 'EMAIL' | 'OPSGENIE' | 'PAGERDUTY' | 'SLACK' | 'SMS' | 'WEBHOOK';
|
|
11
|
+
export type AlertChannelType = 'CALL' | 'EMAIL' | 'OPSGENIE' | 'PAGERDUTY' | 'SLACK' | 'SLACK_APP' | 'SMS' | 'WEBHOOK';
|
|
11
12
|
export interface AlertChannelResource {
|
|
12
13
|
id: number;
|
|
13
14
|
type: AlertChannelType;
|
|
@@ -25,6 +26,7 @@ export declare class AlertChannelCodegen extends Codegen<AlertChannelResource> {
|
|
|
25
26
|
opsgenieCodegen: OpsgenieAlertChannelCodegen;
|
|
26
27
|
pagerdutyCodegen: PagerdutyAlertChannelCodegen;
|
|
27
28
|
slackCodegen: SlackAlertChannelCodegen;
|
|
29
|
+
slackAppCodegen: SlackAppAlertChannelCodegen;
|
|
28
30
|
smsCodegen: SmsAlertChannelCodegen;
|
|
29
31
|
webhookCodegen: WebhookAlertChannelCodegen;
|
|
30
32
|
codegensByType: Record<AlertChannelType, Codegen<any>>;
|
|
@@ -5,6 +5,7 @@ import { OpsgenieAlertChannelCodegen } from './opsgenie-alert-channel-codegen.js
|
|
|
5
5
|
import { PagerdutyAlertChannelCodegen } from './pagerduty-alert-channel-codegen.js';
|
|
6
6
|
import { PhoneCallAlertChannelCodegen } from './phone-call-alert-channel-codegen.js';
|
|
7
7
|
import { SlackAlertChannelCodegen } from './slack-alert-channel-codegen.js';
|
|
8
|
+
import { SlackAppAlertChannelCodegen } from './slack-app-alert-channel-codegen.js';
|
|
8
9
|
import { SmsAlertChannelCodegen } from './sms-alert-channel-codegen.js';
|
|
9
10
|
import { WebhookAlertChannelCodegen } from './webhook-alert-channel-codegen.js';
|
|
10
11
|
export function buildAlertChannelProps(builder, resource) {
|
|
@@ -45,6 +46,7 @@ export class AlertChannelCodegen extends Codegen {
|
|
|
45
46
|
opsgenieCodegen;
|
|
46
47
|
pagerdutyCodegen;
|
|
47
48
|
slackCodegen;
|
|
49
|
+
slackAppCodegen;
|
|
48
50
|
smsCodegen;
|
|
49
51
|
webhookCodegen;
|
|
50
52
|
codegensByType;
|
|
@@ -55,6 +57,7 @@ export class AlertChannelCodegen extends Codegen {
|
|
|
55
57
|
this.opsgenieCodegen = new OpsgenieAlertChannelCodegen(program);
|
|
56
58
|
this.pagerdutyCodegen = new PagerdutyAlertChannelCodegen(program);
|
|
57
59
|
this.slackCodegen = new SlackAlertChannelCodegen(program);
|
|
60
|
+
this.slackAppCodegen = new SlackAppAlertChannelCodegen(program);
|
|
58
61
|
this.smsCodegen = new SmsAlertChannelCodegen(program);
|
|
59
62
|
this.webhookCodegen = new WebhookAlertChannelCodegen(program);
|
|
60
63
|
this.codegensByType = {
|
|
@@ -63,6 +66,7 @@ export class AlertChannelCodegen extends Codegen {
|
|
|
63
66
|
OPSGENIE: this.opsgenieCodegen,
|
|
64
67
|
PAGERDUTY: this.pagerdutyCodegen,
|
|
65
68
|
SLACK: this.slackCodegen,
|
|
69
|
+
SLACK_APP: this.slackAppCodegen,
|
|
66
70
|
SMS: this.smsCodegen,
|
|
67
71
|
WEBHOOK: this.webhookCodegen,
|
|
68
72
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert-channel-codegen.js","sourceRoot":"","sources":["../../src/constructs/alert-channel-codegen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAW,MAAM,6BAA6B,CAAA;AAC9D,OAAO,EAA8C,IAAI,EAAE,KAAK,EAAS,MAAM,uBAAuB,CAAA;AAEtG,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAA;AAC3E,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAA;AACjF,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAA;AACnF,O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AAC,CAAA;QAC1F,CAAC;QAED,OAAO,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAA;IACnC,CAAC;IAED,OAAO,CAAE,SAAiB,EAAE,QAA8B,EAAE,OAAgB;QAC1E,MAAM,OAAO,GAAG,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;QAClD,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;YAC1B,MAAM,IAAI,KAAK,CAAC,+DAA+D,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAA;QACnG,CAAC;QAED,OAAO,CAAC,OAAO,CAAC,SAAS,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA;IAC/C,CAAC;IAED,OAAO,CAAE,SAAiB,EAAE,QAA8B,EAAE,OAAgB;QAC1E,MAAM,OAAO,GAAG,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;QAClD,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;YAC1B,MAAM,IAAI,KAAK,CAAC,+DAA+D,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAA;QACnG,CAAC;QAED,OAAO,CAAC,OAAO,CAAC,SAAS,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA;IAC/C,CAAC;CACF"}
|
|
@@ -2,6 +2,7 @@ export * from './project.js';
|
|
|
2
2
|
export * from './sms-alert-channel.js';
|
|
3
3
|
export * from './email-alert-channel.js';
|
|
4
4
|
export * from './slack-alert-channel.js';
|
|
5
|
+
export * from './slack-app-alert-channel.js';
|
|
5
6
|
export * from './opsgenie-alert-channel.js';
|
|
6
7
|
export * from './pagerduty-alert-channel.js';
|
|
7
8
|
export * from './webhook-alert-channel.js';
|
package/dist/constructs/index.js
CHANGED
|
@@ -2,6 +2,7 @@ export * from './project.js';
|
|
|
2
2
|
export * from './sms-alert-channel.js';
|
|
3
3
|
export * from './email-alert-channel.js';
|
|
4
4
|
export * from './slack-alert-channel.js';
|
|
5
|
+
export * from './slack-app-alert-channel.js';
|
|
5
6
|
export * from './opsgenie-alert-channel.js';
|
|
6
7
|
export * from './pagerduty-alert-channel.js';
|
|
7
8
|
export * from './webhook-alert-channel.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constructs/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,wBAAwB,CAAA;AACtC,cAAc,0BAA0B,CAAA;AACxC,cAAc,0BAA0B,CAAA;AACxC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,8BAA8B,CAAA;AAC5C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,gBAAgB,CAAA;AAC9B,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,wBAAwB,CAAA;AACtC,cAAc,kBAAkB,CAAA;AAChC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,2BAA2B,CAAA;AACzC,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,yBAAyB,CAAA;AACvC,cAAc,oBAAoB,CAAA;AAClC,cAAc,uBAAuB,CAAA;AACrC,cAAc,wCAAwC,CAAA;AACtD,cAAc,wCAAwC,CAAA;AACtD,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,+BAA+B,CAAA;AAC7C,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,kBAAkB,CAAA;AAChC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,kBAAkB,CAAA;AAChC,cAAc,0BAA0B,CAAA;AACxC,cAAc,eAAe,CAAA;AAC7B,cAAc,uBAAuB,CAAA;AAC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AuB,CAAA;AACrC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,kBAAkB,CAAA;AAChC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,kBAAkB,CAAA;AAChC,cAAc,0BAA0B,CAAA;AACxC,cAAc,eAAe,CAAA;AAC7B,cAAc,uBAAuB,CAAA;AACrC,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,SAAS,CAAA;AACvB,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Codegen, Context } from './internal/codegen/index.js';
|
|
2
|
+
import { AlertChannelResource } from './alert-channel-codegen.js';
|
|
3
|
+
export interface SlackAppAlertChannelResource extends AlertChannelResource {
|
|
4
|
+
type: 'SLACK_APP';
|
|
5
|
+
config: {
|
|
6
|
+
slackChannels: string[];
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare class SlackAppAlertChannelCodegen extends Codegen<SlackAppAlertChannelResource> {
|
|
10
|
+
describe(resource: SlackAppAlertChannelResource): string;
|
|
11
|
+
prepare(logicalId: string, resource: SlackAppAlertChannelResource, context: Context): void;
|
|
12
|
+
gencode(logicalId: string, resource: SlackAppAlertChannelResource, context: Context): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Codegen } from './internal/codegen/index.js';
|
|
2
|
+
import { decl, expr, ident } from '../sourcegen/index.js';
|
|
3
|
+
import { buildAlertChannelProps } from './alert-channel-codegen.js';
|
|
4
|
+
const construct = 'SlackAppAlertChannel';
|
|
5
|
+
export class SlackAppAlertChannelCodegen extends Codegen {
|
|
6
|
+
describe(resource) {
|
|
7
|
+
return `Slack App Alert Channel: ${resource.config.slackChannels.join(', ')}`;
|
|
8
|
+
}
|
|
9
|
+
prepare(logicalId, resource, context) {
|
|
10
|
+
const { slackChannels } = resource.config;
|
|
11
|
+
const name = slackChannels.join(',');
|
|
12
|
+
const filename = context.filePath('resources/alert-channels/slack-app', name, {
|
|
13
|
+
unique: true,
|
|
14
|
+
});
|
|
15
|
+
context.registerAlertChannel(resource.id, `${name} slack app alert`, this.program.generatedConstructFile(filename.fullPath));
|
|
16
|
+
}
|
|
17
|
+
gencode(logicalId, resource, context) {
|
|
18
|
+
const { id, file } = context.lookupAlertChannel(resource.id);
|
|
19
|
+
file.namedImport(construct, 'checkly/constructs');
|
|
20
|
+
const { config } = resource;
|
|
21
|
+
file.section(decl(id, builder => {
|
|
22
|
+
builder.variable(expr(ident(construct), builder => {
|
|
23
|
+
builder.new(builder => {
|
|
24
|
+
builder.string(logicalId);
|
|
25
|
+
builder.object(builder => {
|
|
26
|
+
builder.array('slackChannels', arrayBuilder => {
|
|
27
|
+
for (const channel of config.slackChannels) {
|
|
28
|
+
arrayBuilder.string(channel);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
buildAlertChannelProps(builder, resource);
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
}));
|
|
35
|
+
builder.export();
|
|
36
|
+
}));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=slack-app-alert-channel-codegen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slack-app-alert-channel-codegen.js","sourceRoot":"","sources":["../../src/constructs/slack-app-alert-channel-codegen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAW,MAAM,6BAA6B,CAAA;AAC9D,OAAO,EAAE,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;gBAChD,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;oBACpB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;oBACzB,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE;wBACvB,OAAO,CAAC,KAAK,CAAC,eAAe,EAAE,YAAY,CAAC,EAAE;4BAC5C,KAAK,MAAM,OAAO,IAAI,MAAM,CAAC,aAAa,EAAE,CAAC;gCAC3C,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;4BAC9B,CAAC;wBACH,CAAC,CAAC,CAAA;wBACF,sBAAsB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAA;oBAC3C,CAAC,CAAC,CAAA;gBACJ,CAAC,CAAC,CAAA;YACJ,CAAC,CAAC,CAAC,CAAA;YAEH,OAAO,CAAC,MAAM,EAAE,CAAA;QAClB,CAAC,CAAC,CAAC,CAAA;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AlertChannel, AlertChannelProps } from './alert-channel.js';
|
|
2
|
+
export interface SlackAppAlertChannelProps extends AlertChannelProps {
|
|
3
|
+
slackChannels: string[];
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Creates a Checkly Slack App Alert Channel
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
*
|
|
10
|
+
* This class make use of the Alert Channel endpoints.
|
|
11
|
+
*/
|
|
12
|
+
export declare class SlackAppAlertChannel extends AlertChannel {
|
|
13
|
+
slackChannels: string[];
|
|
14
|
+
/**
|
|
15
|
+
* Constructs the Slack App Alert Channel instance
|
|
16
|
+
*
|
|
17
|
+
* @param logicalId unique project-scoped resource name identification
|
|
18
|
+
* @param props Slack App alert channel configuration properties
|
|
19
|
+
*
|
|
20
|
+
* {@link https://www.checklyhq.com/docs/constructs/slack-app-alert-channel/ Read more in the docs}
|
|
21
|
+
*/
|
|
22
|
+
constructor(logicalId: string, props: SlackAppAlertChannelProps);
|
|
23
|
+
describe(): string;
|
|
24
|
+
synthesize(): any;
|
|
25
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { AlertChannel } from './alert-channel.js';
|
|
2
|
+
import { Session } from './project.js';
|
|
3
|
+
/**
|
|
4
|
+
* Creates a Checkly Slack App Alert Channel
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
*
|
|
8
|
+
* This class make use of the Alert Channel endpoints.
|
|
9
|
+
*/
|
|
10
|
+
export class SlackAppAlertChannel extends AlertChannel {
|
|
11
|
+
slackChannels;
|
|
12
|
+
/**
|
|
13
|
+
* Constructs the Slack App Alert Channel instance
|
|
14
|
+
*
|
|
15
|
+
* @param logicalId unique project-scoped resource name identification
|
|
16
|
+
* @param props Slack App alert channel configuration properties
|
|
17
|
+
*
|
|
18
|
+
* {@link https://www.checklyhq.com/docs/constructs/slack-app-alert-channel/ Read more in the docs}
|
|
19
|
+
*/
|
|
20
|
+
constructor(logicalId, props) {
|
|
21
|
+
super(logicalId, props);
|
|
22
|
+
this.slackChannels = props.slackChannels;
|
|
23
|
+
Session.registerConstruct(this);
|
|
24
|
+
}
|
|
25
|
+
describe() {
|
|
26
|
+
return `SlackAppAlertChannel:${this.logicalId}`;
|
|
27
|
+
}
|
|
28
|
+
synthesize() {
|
|
29
|
+
return {
|
|
30
|
+
...super.synthesize(),
|
|
31
|
+
type: 'SLACK_APP',
|
|
32
|
+
config: {
|
|
33
|
+
slackChannels: this.slackChannels,
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=slack-app-alert-channel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slack-app-alert-channel.js","sourceRoot":"","sources":["../../src/constructs/slack-app-alert-channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAqB,MAAM,oBAAoB,CAAA;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAMtC;;;;;;GAMG;AACH,MAAM,OAAO,oBAAqB,SAAQ,YAAY;IACpD,aAAa,CAAU;IACvB;;;;;;;OAOG;IACH,YAAa,SAAiB,EAAE,KAAgC;QAC9D,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;QACvB,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,aAAa,CAAA;QACxC,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAA;IACjC,CAAC;IAED,QAAQ;QACN,OAAO,wBAAwB,IAAI,CAAC,SAAS,EAAE,CAAA;IACjD,CAAC;IAED,UAAU;QACR,OAAO;YACL,GAAG,KAAK,CAAC,UAAU,EAAE;YACrB,IAAI,EAAE,WAAW;YACjB,MAAM,EAAE;gBACN,aAAa,EAAE,IAAI,CAAC,aAAa;aAClC;SACF,CAAA;IACH,CAAC;CACF"}
|
package/oclif.manifest.json
CHANGED
|
@@ -1890,196 +1890,126 @@
|
|
|
1890
1890
|
"update.js"
|
|
1891
1891
|
]
|
|
1892
1892
|
},
|
|
1893
|
-
"
|
|
1893
|
+
"rca:get": {
|
|
1894
1894
|
"aliases": [],
|
|
1895
|
-
"args": {
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
"
|
|
1900
|
-
"description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
|
|
1901
|
-
"name": "config",
|
|
1902
|
-
"hasDynamicHelp": false,
|
|
1903
|
-
"multiple": false,
|
|
1904
|
-
"type": "option"
|
|
1895
|
+
"args": {
|
|
1896
|
+
"id": {
|
|
1897
|
+
"description": "The RCA ID to retrieve.",
|
|
1898
|
+
"name": "id",
|
|
1899
|
+
"required": true
|
|
1905
1900
|
}
|
|
1906
1901
|
},
|
|
1907
|
-
"
|
|
1908
|
-
"hidden": false,
|
|
1909
|
-
"hiddenAliases": [],
|
|
1910
|
-
"id": "import:apply",
|
|
1911
|
-
"pluginAlias": "checkly",
|
|
1912
|
-
"pluginName": "checkly",
|
|
1913
|
-
"pluginType": "core",
|
|
1914
|
-
"strict": true,
|
|
1915
|
-
"enableJsonFlag": false,
|
|
1916
|
-
"coreCommand": false,
|
|
1917
|
-
"readOnly": false,
|
|
1918
|
-
"destructive": false,
|
|
1919
|
-
"idempotent": false,
|
|
1920
|
-
"isESM": true,
|
|
1921
|
-
"relativePath": [
|
|
1922
|
-
"dist",
|
|
1923
|
-
"commands",
|
|
1924
|
-
"import",
|
|
1925
|
-
"apply.js"
|
|
1926
|
-
]
|
|
1927
|
-
},
|
|
1928
|
-
"import:cancel": {
|
|
1929
|
-
"aliases": [],
|
|
1930
|
-
"args": {},
|
|
1931
|
-
"description": "Cancels an ongoing import plan that has not been committed yet.",
|
|
1902
|
+
"description": "Retrieve a root cause analysis by ID.",
|
|
1932
1903
|
"flags": {
|
|
1933
|
-
"
|
|
1934
|
-
"char": "
|
|
1935
|
-
"description": "
|
|
1936
|
-
"name": "
|
|
1937
|
-
"hasDynamicHelp": false,
|
|
1938
|
-
"multiple": false,
|
|
1939
|
-
"type": "option"
|
|
1940
|
-
},
|
|
1941
|
-
"all": {
|
|
1942
|
-
"description": "Cancel all plans.",
|
|
1943
|
-
"name": "all",
|
|
1904
|
+
"watch": {
|
|
1905
|
+
"char": "w",
|
|
1906
|
+
"description": "Wait for the analysis to complete if still generating.",
|
|
1907
|
+
"name": "watch",
|
|
1944
1908
|
"allowNo": false,
|
|
1945
1909
|
"type": "boolean"
|
|
1946
|
-
}
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
"pluginAlias": "checkly",
|
|
1953
|
-
"pluginName": "checkly",
|
|
1954
|
-
"pluginType": "core",
|
|
1955
|
-
"strict": true,
|
|
1956
|
-
"enableJsonFlag": false,
|
|
1957
|
-
"coreCommand": false,
|
|
1958
|
-
"readOnly": false,
|
|
1959
|
-
"destructive": false,
|
|
1960
|
-
"idempotent": true,
|
|
1961
|
-
"isESM": true,
|
|
1962
|
-
"relativePath": [
|
|
1963
|
-
"dist",
|
|
1964
|
-
"commands",
|
|
1965
|
-
"import",
|
|
1966
|
-
"cancel.js"
|
|
1967
|
-
]
|
|
1968
|
-
},
|
|
1969
|
-
"import:commit": {
|
|
1970
|
-
"aliases": [],
|
|
1971
|
-
"args": {},
|
|
1972
|
-
"description": "Permanently commit imported resources into your project.",
|
|
1973
|
-
"flags": {
|
|
1974
|
-
"config": {
|
|
1975
|
-
"char": "c",
|
|
1976
|
-
"description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
|
|
1977
|
-
"name": "config",
|
|
1910
|
+
},
|
|
1911
|
+
"output": {
|
|
1912
|
+
"char": "o",
|
|
1913
|
+
"description": "Output format.",
|
|
1914
|
+
"name": "output",
|
|
1915
|
+
"default": "detail",
|
|
1978
1916
|
"hasDynamicHelp": false,
|
|
1979
1917
|
"multiple": false,
|
|
1918
|
+
"options": [
|
|
1919
|
+
"detail",
|
|
1920
|
+
"json",
|
|
1921
|
+
"md"
|
|
1922
|
+
],
|
|
1980
1923
|
"type": "option"
|
|
1981
1924
|
}
|
|
1982
1925
|
},
|
|
1983
1926
|
"hasDynamicHelp": false,
|
|
1984
1927
|
"hidden": false,
|
|
1985
1928
|
"hiddenAliases": [],
|
|
1986
|
-
"id": "
|
|
1929
|
+
"id": "rca:get",
|
|
1987
1930
|
"pluginAlias": "checkly",
|
|
1988
1931
|
"pluginName": "checkly",
|
|
1989
1932
|
"pluginType": "core",
|
|
1990
1933
|
"strict": true,
|
|
1991
1934
|
"enableJsonFlag": false,
|
|
1992
1935
|
"coreCommand": false,
|
|
1993
|
-
"readOnly":
|
|
1936
|
+
"readOnly": true,
|
|
1994
1937
|
"destructive": false,
|
|
1995
|
-
"idempotent":
|
|
1938
|
+
"idempotent": true,
|
|
1996
1939
|
"isESM": true,
|
|
1997
1940
|
"relativePath": [
|
|
1998
1941
|
"dist",
|
|
1999
1942
|
"commands",
|
|
2000
|
-
"
|
|
2001
|
-
"
|
|
1943
|
+
"rca",
|
|
1944
|
+
"get.js"
|
|
2002
1945
|
]
|
|
2003
1946
|
},
|
|
2004
|
-
"
|
|
1947
|
+
"rca:run": {
|
|
2005
1948
|
"aliases": [],
|
|
2006
|
-
"args": {
|
|
2007
|
-
|
|
2008
|
-
"description": "A specific resource to import.",
|
|
2009
|
-
"name": "resource",
|
|
2010
|
-
"required": false
|
|
2011
|
-
}
|
|
2012
|
-
},
|
|
2013
|
-
"description": "Import existing resources from your Checkly account to your project.\n\nBy default, all resources that can be imported will be imported. However, you\nmay fine-tune the process by including or excluding any combination of\nresources.\n\nThe import process consists of three steps:\n\n1. Creating a plan, which generates the appropriate code for your resources\n2. Applying the plan, which links your resources to the generated code\n3. Committing the plan, which finalizes the import session\n\nCREATING A PLAN\n\nCreating a plan carries no risk as no concrete links to your Checkly resources\nare made at this point. However, if you accidentally deploy the generated code\nbefore applying the plan, you will end up with duplicate resources and will\nnot be able to complete the import session without first deleting the\nduplicates.\n\nFor the curious, you may also preview the generated code with the '--preview'\noption. No plan will be created, allowing you to leisurely inspect the\ngenerated code. However keep in mind that you will need to create a plan to\nactually import any resources, at which point the code will be generated\nagain.\n\nYou may cancel any plan you've created without affecting any of the\nunderlying resources.\n\nAPPLYING A PLAN\n\nApplying a plan links your existing resources to the generated code. You\nshould carefully review the generated code to make sure that it contains the\nresources you expect before applying a plan. After a plan has been applied,\nany deployments of those resources will irreversibly modify the underlying\nCheckly resources. However, as a fail safe against concurrent use, any\ndeployments not including the imported resources will not delete the\nunderlying resources (or the links to the resources). This means that there\nis no need to block deployments while working on an import session.\n\nEven after you've applied a plan, you may still cancel it, which will unlink\nthe underlying resources from your project once more. However, keep in mind\nthat any changes to the resources that you've already deployed cannot be\nundone.\n\nCOMMITTING A PLAN\n\nFinally, committing a plan removes all fail safes and permanently links the\nimported resources to your project. Any resources you remove from your code\nwill result in the underlying resources also getting irrevocably deleted on\nthe next deploy. You should only commit your plan once you are sure that all\nfuture deployments include the imported resources.",
|
|
1949
|
+
"args": {},
|
|
1950
|
+
"description": "Trigger a root cause analysis for a check or test session error group.",
|
|
2014
1951
|
"flags": {
|
|
2015
|
-
"
|
|
2016
|
-
"char": "
|
|
2017
|
-
"description": "The
|
|
2018
|
-
"
|
|
1952
|
+
"error-group": {
|
|
1953
|
+
"char": "e",
|
|
1954
|
+
"description": "The error group ID to analyze.",
|
|
1955
|
+
"exclusive": [
|
|
1956
|
+
"test-session-error-group"
|
|
1957
|
+
],
|
|
1958
|
+
"name": "error-group",
|
|
2019
1959
|
"hasDynamicHelp": false,
|
|
2020
1960
|
"multiple": false,
|
|
2021
1961
|
"type": "option"
|
|
2022
1962
|
},
|
|
2023
|
-
"
|
|
2024
|
-
"description": "The
|
|
2025
|
-
"
|
|
2026
|
-
"
|
|
1963
|
+
"test-session-error-group": {
|
|
1964
|
+
"description": "The test session error group ID to analyze.",
|
|
1965
|
+
"helpLabel": "-te, --test-session-error-group",
|
|
1966
|
+
"name": "test-session-error-group",
|
|
2027
1967
|
"hasDynamicHelp": false,
|
|
2028
1968
|
"multiple": false,
|
|
2029
1969
|
"type": "option"
|
|
2030
1970
|
},
|
|
2031
|
-
"
|
|
2032
|
-
"
|
|
2033
|
-
"
|
|
2034
|
-
"
|
|
2035
|
-
"type": "boolean"
|
|
2036
|
-
},
|
|
2037
|
-
"debug-import-plan": {
|
|
2038
|
-
"description": "Output the import plan to a file.",
|
|
2039
|
-
"hidden": true,
|
|
2040
|
-
"name": "debug-import-plan",
|
|
1971
|
+
"watch": {
|
|
1972
|
+
"char": "w",
|
|
1973
|
+
"description": "Wait for the analysis to complete and display the result.",
|
|
1974
|
+
"name": "watch",
|
|
2041
1975
|
"allowNo": false,
|
|
2042
1976
|
"type": "boolean"
|
|
2043
1977
|
},
|
|
2044
|
-
"
|
|
2045
|
-
"
|
|
2046
|
-
"
|
|
2047
|
-
"name": "
|
|
2048
|
-
"
|
|
2049
|
-
"multiple": false,
|
|
2050
|
-
"type": "option"
|
|
2051
|
-
},
|
|
2052
|
-
"debug-import-plan-output-file": {
|
|
2053
|
-
"description": "The file to output the import plan to.",
|
|
2054
|
-
"hidden": true,
|
|
2055
|
-
"name": "debug-import-plan-output-file",
|
|
2056
|
-
"default": "./debug-import-plan.json",
|
|
1978
|
+
"output": {
|
|
1979
|
+
"char": "o",
|
|
1980
|
+
"description": "Output format.",
|
|
1981
|
+
"name": "output",
|
|
1982
|
+
"default": "detail",
|
|
2057
1983
|
"hasDynamicHelp": false,
|
|
2058
1984
|
"multiple": false,
|
|
1985
|
+
"options": [
|
|
1986
|
+
"detail",
|
|
1987
|
+
"json",
|
|
1988
|
+
"md"
|
|
1989
|
+
],
|
|
2059
1990
|
"type": "option"
|
|
2060
1991
|
}
|
|
2061
1992
|
},
|
|
2062
1993
|
"hasDynamicHelp": false,
|
|
2063
1994
|
"hidden": false,
|
|
2064
|
-
"hiddenAliases": [
|
|
2065
|
-
|
|
2066
|
-
],
|
|
2067
|
-
"id": "import:plan",
|
|
1995
|
+
"hiddenAliases": [],
|
|
1996
|
+
"id": "rca:run",
|
|
2068
1997
|
"pluginAlias": "checkly",
|
|
2069
1998
|
"pluginName": "checkly",
|
|
2070
1999
|
"pluginType": "core",
|
|
2071
|
-
"strict":
|
|
2000
|
+
"strict": true,
|
|
2001
|
+
"usage": "rca run [-e <value> | -te <value>] [-w] [-o detail|json|md]",
|
|
2072
2002
|
"enableJsonFlag": false,
|
|
2073
2003
|
"coreCommand": false,
|
|
2074
|
-
"readOnly":
|
|
2004
|
+
"readOnly": false,
|
|
2075
2005
|
"destructive": false,
|
|
2076
|
-
"idempotent":
|
|
2006
|
+
"idempotent": false,
|
|
2077
2007
|
"isESM": true,
|
|
2078
2008
|
"relativePath": [
|
|
2079
2009
|
"dist",
|
|
2080
2010
|
"commands",
|
|
2081
|
-
"
|
|
2082
|
-
"
|
|
2011
|
+
"rca",
|
|
2012
|
+
"run.js"
|
|
2083
2013
|
]
|
|
2084
2014
|
},
|
|
2085
2015
|
"incidents:create": {
|
|
@@ -2430,115 +2360,121 @@
|
|
|
2430
2360
|
"update.js"
|
|
2431
2361
|
]
|
|
2432
2362
|
},
|
|
2433
|
-
"
|
|
2363
|
+
"skills": {
|
|
2434
2364
|
"aliases": [],
|
|
2435
2365
|
"args": {
|
|
2436
|
-
"
|
|
2437
|
-
"description": "The
|
|
2438
|
-
"name": "
|
|
2439
|
-
"required":
|
|
2440
|
-
}
|
|
2441
|
-
},
|
|
2442
|
-
"description": "Retrieve a root cause analysis by ID.",
|
|
2443
|
-
"flags": {
|
|
2444
|
-
"watch": {
|
|
2445
|
-
"char": "w",
|
|
2446
|
-
"description": "Wait for the analysis to complete if still generating.",
|
|
2447
|
-
"name": "watch",
|
|
2448
|
-
"allowNo": false,
|
|
2449
|
-
"type": "boolean"
|
|
2366
|
+
"action": {
|
|
2367
|
+
"description": "The action name (e.g. \"configure\", \"initialize\").",
|
|
2368
|
+
"name": "action",
|
|
2369
|
+
"required": false
|
|
2450
2370
|
},
|
|
2451
|
-
"
|
|
2452
|
-
"
|
|
2453
|
-
"
|
|
2454
|
-
"
|
|
2455
|
-
"default": "detail",
|
|
2456
|
-
"hasDynamicHelp": false,
|
|
2457
|
-
"multiple": false,
|
|
2458
|
-
"options": [
|
|
2459
|
-
"detail",
|
|
2460
|
-
"json",
|
|
2461
|
-
"md"
|
|
2462
|
-
],
|
|
2463
|
-
"type": "option"
|
|
2371
|
+
"reference": {
|
|
2372
|
+
"description": "A specific reference within the action (e.g. \"api-checks\").",
|
|
2373
|
+
"name": "reference",
|
|
2374
|
+
"required": false
|
|
2464
2375
|
}
|
|
2465
2376
|
},
|
|
2377
|
+
"description": "Show Checkly AI skills, actions and their references.",
|
|
2378
|
+
"flags": {},
|
|
2466
2379
|
"hasDynamicHelp": false,
|
|
2467
2380
|
"hidden": false,
|
|
2468
2381
|
"hiddenAliases": [],
|
|
2469
|
-
"id": "
|
|
2382
|
+
"id": "skills",
|
|
2470
2383
|
"pluginAlias": "checkly",
|
|
2471
2384
|
"pluginName": "checkly",
|
|
2472
2385
|
"pluginType": "core",
|
|
2473
2386
|
"strict": true,
|
|
2474
2387
|
"enableJsonFlag": false,
|
|
2475
2388
|
"coreCommand": false,
|
|
2476
|
-
"readOnly":
|
|
2389
|
+
"readOnly": false,
|
|
2477
2390
|
"destructive": false,
|
|
2478
|
-
"idempotent":
|
|
2391
|
+
"idempotent": false,
|
|
2479
2392
|
"isESM": true,
|
|
2480
2393
|
"relativePath": [
|
|
2481
2394
|
"dist",
|
|
2482
2395
|
"commands",
|
|
2483
|
-
"
|
|
2484
|
-
"
|
|
2396
|
+
"skills",
|
|
2397
|
+
"index.js"
|
|
2485
2398
|
]
|
|
2486
2399
|
},
|
|
2487
|
-
"
|
|
2400
|
+
"skills:install": {
|
|
2488
2401
|
"aliases": [],
|
|
2489
2402
|
"args": {},
|
|
2490
|
-
"description": "
|
|
2403
|
+
"description": "Install the Checkly agent skill (SKILL.md) into your project.",
|
|
2491
2404
|
"flags": {
|
|
2492
|
-
"
|
|
2493
|
-
"char": "
|
|
2494
|
-
"description": "
|
|
2405
|
+
"target": {
|
|
2406
|
+
"char": "t",
|
|
2407
|
+
"description": "Platform to install the skill for (amp, claude, cline, codex, continue, cursor, gemini-cli, github-copilot, goose, opencode, roo, windsurf).",
|
|
2495
2408
|
"exclusive": [
|
|
2496
|
-
"
|
|
2409
|
+
"path"
|
|
2497
2410
|
],
|
|
2498
|
-
"name": "
|
|
2411
|
+
"name": "target",
|
|
2499
2412
|
"hasDynamicHelp": false,
|
|
2500
2413
|
"multiple": false,
|
|
2501
2414
|
"type": "option"
|
|
2502
2415
|
},
|
|
2503
|
-
"
|
|
2504
|
-
"
|
|
2505
|
-
"
|
|
2506
|
-
"
|
|
2416
|
+
"path": {
|
|
2417
|
+
"char": "p",
|
|
2418
|
+
"description": "Custom target directory to install the skill into.",
|
|
2419
|
+
"exclusive": [
|
|
2420
|
+
"target"
|
|
2421
|
+
],
|
|
2422
|
+
"name": "path",
|
|
2507
2423
|
"hasDynamicHelp": false,
|
|
2508
2424
|
"multiple": false,
|
|
2509
2425
|
"type": "option"
|
|
2510
2426
|
},
|
|
2511
|
-
"
|
|
2512
|
-
"char": "
|
|
2513
|
-
"description": "
|
|
2514
|
-
"name": "
|
|
2427
|
+
"force": {
|
|
2428
|
+
"char": "f",
|
|
2429
|
+
"description": "Overwrite existing SKILL.md without confirmation.",
|
|
2430
|
+
"name": "force",
|
|
2515
2431
|
"allowNo": false,
|
|
2516
2432
|
"type": "boolean"
|
|
2517
|
-
}
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2433
|
+
}
|
|
2434
|
+
},
|
|
2435
|
+
"hasDynamicHelp": false,
|
|
2436
|
+
"hidden": false,
|
|
2437
|
+
"hiddenAliases": [],
|
|
2438
|
+
"id": "skills:install",
|
|
2439
|
+
"pluginAlias": "checkly",
|
|
2440
|
+
"pluginName": "checkly",
|
|
2441
|
+
"pluginType": "core",
|
|
2442
|
+
"strict": true,
|
|
2443
|
+
"enableJsonFlag": false,
|
|
2444
|
+
"coreCommand": false,
|
|
2445
|
+
"readOnly": false,
|
|
2446
|
+
"destructive": false,
|
|
2447
|
+
"idempotent": true,
|
|
2448
|
+
"isESM": true,
|
|
2449
|
+
"relativePath": [
|
|
2450
|
+
"dist",
|
|
2451
|
+
"commands",
|
|
2452
|
+
"skills",
|
|
2453
|
+
"install.js"
|
|
2454
|
+
]
|
|
2455
|
+
},
|
|
2456
|
+
"import:apply": {
|
|
2457
|
+
"aliases": [],
|
|
2458
|
+
"args": {},
|
|
2459
|
+
"description": "Attach imported resources into your project in a pending state.",
|
|
2460
|
+
"flags": {
|
|
2461
|
+
"config": {
|
|
2462
|
+
"char": "c",
|
|
2463
|
+
"description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
|
|
2464
|
+
"name": "config",
|
|
2523
2465
|
"hasDynamicHelp": false,
|
|
2524
2466
|
"multiple": false,
|
|
2525
|
-
"options": [
|
|
2526
|
-
"detail",
|
|
2527
|
-
"json",
|
|
2528
|
-
"md"
|
|
2529
|
-
],
|
|
2530
2467
|
"type": "option"
|
|
2531
2468
|
}
|
|
2532
2469
|
},
|
|
2533
2470
|
"hasDynamicHelp": false,
|
|
2534
2471
|
"hidden": false,
|
|
2535
2472
|
"hiddenAliases": [],
|
|
2536
|
-
"id": "
|
|
2473
|
+
"id": "import:apply",
|
|
2537
2474
|
"pluginAlias": "checkly",
|
|
2538
2475
|
"pluginName": "checkly",
|
|
2539
2476
|
"pluginType": "core",
|
|
2540
2477
|
"strict": true,
|
|
2541
|
-
"usage": "rca run [-e <value> | -te <value>] [-w] [-o detail|json|md]",
|
|
2542
2478
|
"enableJsonFlag": false,
|
|
2543
2479
|
"coreCommand": false,
|
|
2544
2480
|
"readOnly": false,
|
|
@@ -2548,30 +2484,34 @@
|
|
|
2548
2484
|
"relativePath": [
|
|
2549
2485
|
"dist",
|
|
2550
2486
|
"commands",
|
|
2551
|
-
"
|
|
2552
|
-
"
|
|
2487
|
+
"import",
|
|
2488
|
+
"apply.js"
|
|
2553
2489
|
]
|
|
2554
2490
|
},
|
|
2555
|
-
"
|
|
2491
|
+
"import:cancel": {
|
|
2556
2492
|
"aliases": [],
|
|
2557
|
-
"args": {
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
"
|
|
2493
|
+
"args": {},
|
|
2494
|
+
"description": "Cancels an ongoing import plan that has not been committed yet.",
|
|
2495
|
+
"flags": {
|
|
2496
|
+
"config": {
|
|
2497
|
+
"char": "c",
|
|
2498
|
+
"description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
|
|
2499
|
+
"name": "config",
|
|
2500
|
+
"hasDynamicHelp": false,
|
|
2501
|
+
"multiple": false,
|
|
2502
|
+
"type": "option"
|
|
2562
2503
|
},
|
|
2563
|
-
"
|
|
2564
|
-
"description": "
|
|
2565
|
-
"name": "
|
|
2566
|
-
"
|
|
2504
|
+
"all": {
|
|
2505
|
+
"description": "Cancel all plans.",
|
|
2506
|
+
"name": "all",
|
|
2507
|
+
"allowNo": false,
|
|
2508
|
+
"type": "boolean"
|
|
2567
2509
|
}
|
|
2568
2510
|
},
|
|
2569
|
-
"description": "Show Checkly AI skills, actions and their references.",
|
|
2570
|
-
"flags": {},
|
|
2571
2511
|
"hasDynamicHelp": false,
|
|
2572
2512
|
"hidden": false,
|
|
2573
2513
|
"hiddenAliases": [],
|
|
2574
|
-
"id": "
|
|
2514
|
+
"id": "import:cancel",
|
|
2575
2515
|
"pluginAlias": "checkly",
|
|
2576
2516
|
"pluginName": "checkly",
|
|
2577
2517
|
"pluginType": "core",
|
|
@@ -2580,69 +2520,129 @@
|
|
|
2580
2520
|
"coreCommand": false,
|
|
2581
2521
|
"readOnly": false,
|
|
2582
2522
|
"destructive": false,
|
|
2583
|
-
"idempotent":
|
|
2523
|
+
"idempotent": true,
|
|
2584
2524
|
"isESM": true,
|
|
2585
2525
|
"relativePath": [
|
|
2586
2526
|
"dist",
|
|
2587
2527
|
"commands",
|
|
2588
|
-
"
|
|
2589
|
-
"
|
|
2528
|
+
"import",
|
|
2529
|
+
"cancel.js"
|
|
2590
2530
|
]
|
|
2591
2531
|
},
|
|
2592
|
-
"
|
|
2532
|
+
"import:commit": {
|
|
2593
2533
|
"aliases": [],
|
|
2594
2534
|
"args": {},
|
|
2595
|
-
"description": "
|
|
2535
|
+
"description": "Permanently commit imported resources into your project.",
|
|
2596
2536
|
"flags": {
|
|
2597
|
-
"
|
|
2598
|
-
"char": "
|
|
2599
|
-
"description": "
|
|
2600
|
-
"
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
"
|
|
2537
|
+
"config": {
|
|
2538
|
+
"char": "c",
|
|
2539
|
+
"description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
|
|
2540
|
+
"name": "config",
|
|
2541
|
+
"hasDynamicHelp": false,
|
|
2542
|
+
"multiple": false,
|
|
2543
|
+
"type": "option"
|
|
2544
|
+
}
|
|
2545
|
+
},
|
|
2546
|
+
"hasDynamicHelp": false,
|
|
2547
|
+
"hidden": false,
|
|
2548
|
+
"hiddenAliases": [],
|
|
2549
|
+
"id": "import:commit",
|
|
2550
|
+
"pluginAlias": "checkly",
|
|
2551
|
+
"pluginName": "checkly",
|
|
2552
|
+
"pluginType": "core",
|
|
2553
|
+
"strict": true,
|
|
2554
|
+
"enableJsonFlag": false,
|
|
2555
|
+
"coreCommand": false,
|
|
2556
|
+
"readOnly": false,
|
|
2557
|
+
"destructive": false,
|
|
2558
|
+
"idempotent": false,
|
|
2559
|
+
"isESM": true,
|
|
2560
|
+
"relativePath": [
|
|
2561
|
+
"dist",
|
|
2562
|
+
"commands",
|
|
2563
|
+
"import",
|
|
2564
|
+
"commit.js"
|
|
2565
|
+
]
|
|
2566
|
+
},
|
|
2567
|
+
"import:plan": {
|
|
2568
|
+
"aliases": [],
|
|
2569
|
+
"args": {
|
|
2570
|
+
"resource": {
|
|
2571
|
+
"description": "A specific resource to import.",
|
|
2572
|
+
"name": "resource",
|
|
2573
|
+
"required": false
|
|
2574
|
+
}
|
|
2575
|
+
},
|
|
2576
|
+
"description": "Import existing resources from your Checkly account to your project.\n\nBy default, all resources that can be imported will be imported. However, you\nmay fine-tune the process by including or excluding any combination of\nresources.\n\nThe import process consists of three steps:\n\n1. Creating a plan, which generates the appropriate code for your resources\n2. Applying the plan, which links your resources to the generated code\n3. Committing the plan, which finalizes the import session\n\nCREATING A PLAN\n\nCreating a plan carries no risk as no concrete links to your Checkly resources\nare made at this point. However, if you accidentally deploy the generated code\nbefore applying the plan, you will end up with duplicate resources and will\nnot be able to complete the import session without first deleting the\nduplicates.\n\nFor the curious, you may also preview the generated code with the '--preview'\noption. No plan will be created, allowing you to leisurely inspect the\ngenerated code. However keep in mind that you will need to create a plan to\nactually import any resources, at which point the code will be generated\nagain.\n\nYou may cancel any plan you've created without affecting any of the\nunderlying resources.\n\nAPPLYING A PLAN\n\nApplying a plan links your existing resources to the generated code. You\nshould carefully review the generated code to make sure that it contains the\nresources you expect before applying a plan. After a plan has been applied,\nany deployments of those resources will irreversibly modify the underlying\nCheckly resources. However, as a fail safe against concurrent use, any\ndeployments not including the imported resources will not delete the\nunderlying resources (or the links to the resources). This means that there\nis no need to block deployments while working on an import session.\n\nEven after you've applied a plan, you may still cancel it, which will unlink\nthe underlying resources from your project once more. However, keep in mind\nthat any changes to the resources that you've already deployed cannot be\nundone.\n\nCOMMITTING A PLAN\n\nFinally, committing a plan removes all fail safes and permanently links the\nimported resources to your project. Any resources you remove from your code\nwill result in the underlying resources also getting irrevocably deleted on\nthe next deploy. You should only commit your plan once you are sure that all\nfuture deployments include the imported resources.",
|
|
2577
|
+
"flags": {
|
|
2578
|
+
"config": {
|
|
2579
|
+
"char": "c",
|
|
2580
|
+
"description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
|
|
2581
|
+
"name": "config",
|
|
2604
2582
|
"hasDynamicHelp": false,
|
|
2605
2583
|
"multiple": false,
|
|
2606
2584
|
"type": "option"
|
|
2607
2585
|
},
|
|
2608
|
-
"
|
|
2609
|
-
"
|
|
2610
|
-
"
|
|
2611
|
-
"
|
|
2612
|
-
"target"
|
|
2613
|
-
],
|
|
2614
|
-
"name": "path",
|
|
2586
|
+
"root": {
|
|
2587
|
+
"description": "The root folder in which to write generated code files.",
|
|
2588
|
+
"name": "root",
|
|
2589
|
+
"default": "__checks__",
|
|
2615
2590
|
"hasDynamicHelp": false,
|
|
2616
2591
|
"multiple": false,
|
|
2617
2592
|
"type": "option"
|
|
2618
2593
|
},
|
|
2619
|
-
"
|
|
2620
|
-
"
|
|
2621
|
-
"
|
|
2622
|
-
"name": "force",
|
|
2594
|
+
"preview": {
|
|
2595
|
+
"description": "Preview generated code without creating an actual import plan.",
|
|
2596
|
+
"name": "preview",
|
|
2623
2597
|
"allowNo": false,
|
|
2624
2598
|
"type": "boolean"
|
|
2599
|
+
},
|
|
2600
|
+
"debug-import-plan": {
|
|
2601
|
+
"description": "Output the import plan to a file.",
|
|
2602
|
+
"hidden": true,
|
|
2603
|
+
"name": "debug-import-plan",
|
|
2604
|
+
"allowNo": false,
|
|
2605
|
+
"type": "boolean"
|
|
2606
|
+
},
|
|
2607
|
+
"debug-import-plan-input-file": {
|
|
2608
|
+
"description": "A file to load an import plan from.",
|
|
2609
|
+
"hidden": true,
|
|
2610
|
+
"name": "debug-import-plan-input-file",
|
|
2611
|
+
"hasDynamicHelp": false,
|
|
2612
|
+
"multiple": false,
|
|
2613
|
+
"type": "option"
|
|
2614
|
+
},
|
|
2615
|
+
"debug-import-plan-output-file": {
|
|
2616
|
+
"description": "The file to output the import plan to.",
|
|
2617
|
+
"hidden": true,
|
|
2618
|
+
"name": "debug-import-plan-output-file",
|
|
2619
|
+
"default": "./debug-import-plan.json",
|
|
2620
|
+
"hasDynamicHelp": false,
|
|
2621
|
+
"multiple": false,
|
|
2622
|
+
"type": "option"
|
|
2625
2623
|
}
|
|
2626
2624
|
},
|
|
2627
2625
|
"hasDynamicHelp": false,
|
|
2628
2626
|
"hidden": false,
|
|
2629
|
-
"hiddenAliases": [
|
|
2630
|
-
|
|
2627
|
+
"hiddenAliases": [
|
|
2628
|
+
"import"
|
|
2629
|
+
],
|
|
2630
|
+
"id": "import:plan",
|
|
2631
2631
|
"pluginAlias": "checkly",
|
|
2632
2632
|
"pluginName": "checkly",
|
|
2633
2633
|
"pluginType": "core",
|
|
2634
|
-
"strict":
|
|
2634
|
+
"strict": false,
|
|
2635
2635
|
"enableJsonFlag": false,
|
|
2636
2636
|
"coreCommand": false,
|
|
2637
|
-
"readOnly":
|
|
2637
|
+
"readOnly": true,
|
|
2638
2638
|
"destructive": false,
|
|
2639
2639
|
"idempotent": true,
|
|
2640
2640
|
"isESM": true,
|
|
2641
2641
|
"relativePath": [
|
|
2642
2642
|
"dist",
|
|
2643
2643
|
"commands",
|
|
2644
|
-
"
|
|
2645
|
-
"
|
|
2644
|
+
"import",
|
|
2645
|
+
"plan.js"
|
|
2646
2646
|
]
|
|
2647
2647
|
},
|
|
2648
2648
|
"status-pages:get": {
|
|
@@ -2756,5 +2756,5 @@
|
|
|
2756
2756
|
]
|
|
2757
2757
|
}
|
|
2758
2758
|
},
|
|
2759
|
-
"version": "8.
|
|
2759
|
+
"version": "8.2.0-prerelease-169e1f4"
|
|
2760
2760
|
}
|