checkly 0.0.0-pr.1006.b6b3be2
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 +102 -0
- package/bin/run +5 -0
- package/bin/run.cmd +3 -0
- package/constructs.d.ts +1 -0
- package/constructs.js +2 -0
- package/dist/auth/index.d.ts +15 -0
- package/dist/auth/index.js +262 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/commands/authCommand.d.ts +5 -0
- package/dist/commands/authCommand.js +37 -0
- package/dist/commands/authCommand.js.map +1 -0
- package/dist/commands/baseCommand.d.ts +13 -0
- package/dist/commands/baseCommand.js +48 -0
- package/dist/commands/baseCommand.js.map +1 -0
- package/dist/commands/deploy.d.ts +18 -0
- package/dist/commands/deploy.js +289 -0
- package/dist/commands/deploy.js.map +1 -0
- package/dist/commands/destroy.d.ts +10 -0
- package/dist/commands/destroy.js +84 -0
- package/dist/commands/destroy.js.map +1 -0
- package/dist/commands/env/add.d.ts +14 -0
- package/dist/commands/env/add.js +85 -0
- package/dist/commands/env/add.js.map +1 -0
- package/dist/commands/env/ls.d.ts +6 -0
- package/dist/commands/env/ls.js +44 -0
- package/dist/commands/env/ls.js.map +1 -0
- package/dist/commands/env/pull.d.ts +12 -0
- package/dist/commands/env/pull.js +99 -0
- package/dist/commands/env/pull.js.map +1 -0
- package/dist/commands/env/rm.d.ts +12 -0
- package/dist/commands/env/rm.js +82 -0
- package/dist/commands/env/rm.js.map +1 -0
- package/dist/commands/env/update.d.ts +14 -0
- package/dist/commands/env/update.js +88 -0
- package/dist/commands/env/update.js.map +1 -0
- package/dist/commands/help.d.ts +6 -0
- package/dist/commands/help.js +17 -0
- package/dist/commands/help.js.map +1 -0
- package/dist/commands/login.d.ts +13 -0
- package/dist/commands/login.js +134 -0
- package/dist/commands/login.js.map +1 -0
- package/dist/commands/logout.d.ts +9 -0
- package/dist/commands/logout.js +43 -0
- package/dist/commands/logout.js.map +1 -0
- package/dist/commands/runtimes.d.ts +6 -0
- package/dist/commands/runtimes.js +49 -0
- package/dist/commands/runtimes.js.map +1 -0
- package/dist/commands/switch.d.ts +9 -0
- package/dist/commands/switch.js +81 -0
- package/dist/commands/switch.js.map +1 -0
- package/dist/commands/sync-playwright.d.ts +10 -0
- package/dist/commands/sync-playwright.js +98 -0
- package/dist/commands/sync-playwright.js.map +1 -0
- package/dist/commands/test.d.ts +45 -0
- package/dist/commands/test.js +366 -0
- package/dist/commands/test.js.map +1 -0
- package/dist/commands/trigger.d.ts +37 -0
- package/dist/commands/trigger.js +242 -0
- package/dist/commands/trigger.js.map +1 -0
- package/dist/commands/whoami.d.ts +6 -0
- package/dist/commands/whoami.js +42 -0
- package/dist/commands/whoami.js.map +1 -0
- package/dist/config.d.ts +31 -0
- package/dist/config.js +8 -0
- package/dist/config.js.map +1 -0
- package/dist/constants.d.ts +7 -0
- package/dist/constants.js +10 -0
- package/dist/constants.js.map +1 -0
- package/dist/constructs/alert-channel-subscription.d.ts +44 -0
- package/dist/constructs/alert-channel-subscription.js +39 -0
- package/dist/constructs/alert-channel-subscription.js.map +1 -0
- package/dist/constructs/alert-channel.d.ts +53 -0
- package/dist/constructs/alert-channel.js +55 -0
- package/dist/constructs/alert-channel.js.map +1 -0
- package/dist/constructs/alert-escalation-policy.d.ts +34 -0
- package/dist/constructs/alert-escalation-policy.js +47 -0
- package/dist/constructs/alert-escalation-policy.js.map +1 -0
- package/dist/constructs/api-check.d.ts +187 -0
- package/dist/constructs/api-check.js +279 -0
- package/dist/constructs/api-check.js.map +1 -0
- package/dist/constructs/browser-check.d.ts +90 -0
- package/dist/constructs/browser-check.js +151 -0
- package/dist/constructs/browser-check.js.map +1 -0
- package/dist/constructs/check-group.d.ts +162 -0
- package/dist/constructs/check-group.js +208 -0
- package/dist/constructs/check-group.js.map +1 -0
- package/dist/constructs/check.d.ts +144 -0
- package/dist/constructs/check.js +133 -0
- package/dist/constructs/check.js.map +1 -0
- package/dist/constructs/construct.d.ts +17 -0
- package/dist/constructs/construct.js +22 -0
- package/dist/constructs/construct.js.map +1 -0
- package/dist/constructs/dashboard.d.ts +138 -0
- package/dist/constructs/dashboard.js +126 -0
- package/dist/constructs/dashboard.js.map +1 -0
- package/dist/constructs/email-alert-channel.d.ts +26 -0
- package/dist/constructs/email-alert-channel.js +37 -0
- package/dist/constructs/email-alert-channel.js.map +1 -0
- package/dist/constructs/environment-variable.d.ts +2 -0
- package/dist/constructs/environment-variable.js +3 -0
- package/dist/constructs/environment-variable.js.map +1 -0
- package/dist/constructs/frequency.d.ts +20 -0
- package/dist/constructs/frequency.js +26 -0
- package/dist/constructs/frequency.js.map +1 -0
- package/dist/constructs/heartbeat-check.d.ts +43 -0
- package/dist/constructs/heartbeat-check.js +61 -0
- package/dist/constructs/heartbeat-check.js.map +1 -0
- package/dist/constructs/http-header.d.ts +2 -0
- package/dist/constructs/http-header.js +3 -0
- package/dist/constructs/http-header.js.map +1 -0
- package/dist/constructs/index.d.ts +27 -0
- package/dist/constructs/index.js +44 -0
- package/dist/constructs/index.js.map +1 -0
- package/dist/constructs/key-value-pair.d.ts +6 -0
- package/dist/constructs/key-value-pair.js +3 -0
- package/dist/constructs/key-value-pair.js.map +1 -0
- package/dist/constructs/maintenance-window.d.ts +61 -0
- package/dist/constructs/maintenance-window.js +47 -0
- package/dist/constructs/maintenance-window.js.map +1 -0
- package/dist/constructs/multi-step-check.d.ts +65 -0
- package/dist/constructs/multi-step-check.js +153 -0
- package/dist/constructs/multi-step-check.js.map +1 -0
- package/dist/constructs/opsgenie-alert-channel.d.ts +45 -0
- package/dist/constructs/opsgenie-alert-channel.js +44 -0
- package/dist/constructs/opsgenie-alert-channel.js.map +1 -0
- package/dist/constructs/pagerduty-alert-channel.d.ts +39 -0
- package/dist/constructs/pagerduty-alert-channel.js +42 -0
- package/dist/constructs/pagerduty-alert-channel.js.map +1 -0
- package/dist/constructs/phone-call-alert-channel.d.ts +34 -0
- package/dist/constructs/phone-call-alert-channel.js +42 -0
- package/dist/constructs/phone-call-alert-channel.js.map +1 -0
- package/dist/constructs/playwright-config.d.ts +52 -0
- package/dist/constructs/playwright-config.js +3 -0
- package/dist/constructs/playwright-config.js.map +1 -0
- package/dist/constructs/private-location-check-assignment.d.ts +29 -0
- package/dist/constructs/private-location-check-assignment.js +35 -0
- package/dist/constructs/private-location-check-assignment.js.map +1 -0
- package/dist/constructs/private-location-group-assignment.d.ts +29 -0
- package/dist/constructs/private-location-group-assignment.js +35 -0
- package/dist/constructs/private-location-group-assignment.js.map +1 -0
- package/dist/constructs/private-location.d.ts +51 -0
- package/dist/constructs/private-location.js +61 -0
- package/dist/constructs/private-location.js.map +1 -0
- package/dist/constructs/project.d.ts +66 -0
- package/dist/constructs/project.js +155 -0
- package/dist/constructs/project.js.map +1 -0
- package/dist/constructs/query-param.d.ts +2 -0
- package/dist/constructs/query-param.js +3 -0
- package/dist/constructs/query-param.js.map +1 -0
- package/dist/constructs/ref.d.ts +5 -0
- package/dist/constructs/ref.js +13 -0
- package/dist/constructs/ref.js.map +1 -0
- package/dist/constructs/retry-strategy.d.ts +50 -0
- package/dist/constructs/retry-strategy.js +51 -0
- package/dist/constructs/retry-strategy.js.map +1 -0
- package/dist/constructs/slack-alert-channel.d.ts +26 -0
- package/dist/constructs/slack-alert-channel.js +40 -0
- package/dist/constructs/slack-alert-channel.js.map +1 -0
- package/dist/constructs/sms-alert-channel.d.ts +32 -0
- package/dist/constructs/sms-alert-channel.js +40 -0
- package/dist/constructs/sms-alert-channel.js.map +1 -0
- package/dist/constructs/validator-error.d.ts +2 -0
- package/dist/constructs/validator-error.js +7 -0
- package/dist/constructs/validator-error.js.map +1 -0
- package/dist/constructs/webhook-alert-channel.d.ts +67 -0
- package/dist/constructs/webhook-alert-channel.js +52 -0
- package/dist/constructs/webhook-alert-channel.js.map +1 -0
- package/dist/help/examples.d.ts +6 -0
- package/dist/help/examples.js +22 -0
- package/dist/help/examples.js.map +1 -0
- package/dist/help/help-extension.d.ts +7 -0
- package/dist/help/help-extension.js +59 -0
- package/dist/help/help-extension.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +30 -0
- package/dist/index.js.map +1 -0
- package/dist/messages/common-messages.d.ts +5 -0
- package/dist/messages/common-messages.js +9 -0
- package/dist/messages/common-messages.js.map +1 -0
- package/dist/playwright/playwright-config-loader.d.ts +1 -0
- package/dist/playwright/playwright-config-loader.js +26 -0
- package/dist/playwright/playwright-config-loader.js.map +1 -0
- package/dist/playwright/playwright-config-template.d.ts +8 -0
- package/dist/playwright/playwright-config-template.js +78 -0
- package/dist/playwright/playwright-config-template.js.map +1 -0
- package/dist/reporters/abstract-list.d.ts +41 -0
- package/dist/reporters/abstract-list.js +171 -0
- package/dist/reporters/abstract-list.js.map +1 -0
- package/dist/reporters/ci.d.ts +12 -0
- package/dist/reporters/ci.js +34 -0
- package/dist/reporters/ci.js.map +1 -0
- package/dist/reporters/dot.d.ts +10 -0
- package/dist/reporters/dot.js +29 -0
- package/dist/reporters/dot.js.map +1 -0
- package/dist/reporters/github.d.ts +32 -0
- package/dist/reporters/github.js +119 -0
- package/dist/reporters/github.js.map +1 -0
- package/dist/reporters/json.d.ts +26 -0
- package/dist/reporters/json.js +101 -0
- package/dist/reporters/json.js.map +1 -0
- package/dist/reporters/list.d.ts +15 -0
- package/dist/reporters/list.js +85 -0
- package/dist/reporters/list.js.map +1 -0
- package/dist/reporters/reporter.d.ts +16 -0
- package/dist/reporters/reporter.js +29 -0
- package/dist/reporters/reporter.js.map +1 -0
- package/dist/reporters/util.d.ts +18 -0
- package/dist/reporters/util.js +325 -0
- package/dist/reporters/util.js.map +1 -0
- package/dist/rest/accounts.d.ts +12 -0
- package/dist/rest/accounts.js +15 -0
- package/dist/rest/accounts.js.map +1 -0
- package/dist/rest/api.d.ts +33 -0
- package/dist/rest/api.js +98 -0
- package/dist/rest/api.js.map +1 -0
- package/dist/rest/assets.d.ts +13 -0
- package/dist/rest/assets.js +30 -0
- package/dist/rest/assets.js.map +1 -0
- package/dist/rest/checkly-storage.d.ts +12 -0
- package/dist/rest/checkly-storage.js +15 -0
- package/dist/rest/checkly-storage.js.map +1 -0
- package/dist/rest/environment-variables.d.ts +17 -0
- package/dist/rest/environment-variables.js +25 -0
- package/dist/rest/environment-variables.js.map +1 -0
- package/dist/rest/heartbeat-checks.d.ts +11 -0
- package/dist/rest/heartbeat-checks.js +17 -0
- package/dist/rest/heartbeat-checks.js.map +1 -0
- package/dist/rest/locations.d.ts +11 -0
- package/dist/rest/locations.js +12 -0
- package/dist/rest/locations.js.map +1 -0
- package/dist/rest/private-locations.d.ts +10 -0
- package/dist/rest/private-locations.js +12 -0
- package/dist/rest/private-locations.js.map +1 -0
- package/dist/rest/projects.d.ts +46 -0
- package/dist/rest/projects.js +25 -0
- package/dist/rest/projects.js.map +1 -0
- package/dist/rest/runtimes.d.ts +16 -0
- package/dist/rest/runtimes.js +15 -0
- package/dist/rest/runtimes.js.map +1 -0
- package/dist/rest/test-sessions.d.ts +59 -0
- package/dist/rest/test-sessions.js +24 -0
- package/dist/rest/test-sessions.js.map +1 -0
- package/dist/rest/users.d.ts +12 -0
- package/dist/rest/users.js +12 -0
- package/dist/rest/users.js.map +1 -0
- package/dist/rest/util.d.ts +4 -0
- package/dist/rest/util.js +17 -0
- package/dist/rest/util.js.map +1 -0
- package/dist/services/abstract-check-runner.d.ts +60 -0
- package/dist/services/abstract-check-runner.js +225 -0
- package/dist/services/abstract-check-runner.js.map +1 -0
- package/dist/services/check-parser/collector.d.ts +33 -0
- package/dist/services/check-parser/collector.js +48 -0
- package/dist/services/check-parser/collector.js.map +1 -0
- package/dist/services/check-parser/errors.d.ts +8 -0
- package/dist/services/check-parser/errors.js +45 -0
- package/dist/services/check-parser/errors.js.map +1 -0
- package/dist/services/check-parser/package-files/index.d.ts +1 -0
- package/dist/services/check-parser/package-files/index.js +6 -0
- package/dist/services/check-parser/package-files/index.js.map +1 -0
- package/dist/services/check-parser/package-files/json-source-file.d.ts +13 -0
- package/dist/services/check-parser/package-files/json-source-file.js +34 -0
- package/dist/services/check-parser/package-files/json-source-file.js.map +1 -0
- package/dist/services/check-parser/package-files/loader.d.ts +7 -0
- package/dist/services/check-parser/package-files/loader.js +19 -0
- package/dist/services/check-parser/package-files/loader.js.map +1 -0
- package/dist/services/check-parser/package-files/package-json-file.d.ts +23 -0
- package/dist/services/check-parser/package-files/package-json-file.js +44 -0
- package/dist/services/check-parser/package-files/package-json-file.js.map +1 -0
- package/dist/services/check-parser/package-files/paths.d.ts +22 -0
- package/dist/services/check-parser/package-files/paths.js +108 -0
- package/dist/services/check-parser/package-files/paths.js.map +1 -0
- package/dist/services/check-parser/package-files/resolver.d.ts +32 -0
- package/dist/services/check-parser/package-files/resolver.js +186 -0
- package/dist/services/check-parser/package-files/resolver.js.map +1 -0
- package/dist/services/check-parser/package-files/source-file.d.ts +13 -0
- package/dist/services/check-parser/package-files/source-file.js +41 -0
- package/dist/services/check-parser/package-files/source-file.js.map +1 -0
- package/dist/services/check-parser/package-files/tsconfig-json-file.d.ts +68 -0
- package/dist/services/check-parser/package-files/tsconfig-json-file.js +119 -0
- package/dist/services/check-parser/package-files/tsconfig-json-file.js.map +1 -0
- package/dist/services/check-parser/parser.d.ts +32 -0
- package/dist/services/check-parser/parser.js +303 -0
- package/dist/services/check-parser/parser.js.map +1 -0
- package/dist/services/checkly-config-loader.d.ts +72 -0
- package/dist/services/checkly-config-loader.js +103 -0
- package/dist/services/checkly-config-loader.js.map +1 -0
- package/dist/services/config.d.ts +28 -0
- package/dist/services/config.js +99 -0
- package/dist/services/config.js.map +1 -0
- package/dist/services/project-parser.d.ts +21 -0
- package/dist/services/project-parser.js +192 -0
- package/dist/services/project-parser.js.map +1 -0
- package/dist/services/snapshot-service.d.ts +13 -0
- package/dist/services/snapshot-service.js +85 -0
- package/dist/services/snapshot-service.js.map +1 -0
- package/dist/services/socket-client.d.ts +4 -0
- package/dist/services/socket-client.js +88 -0
- package/dist/services/socket-client.js.map +1 -0
- package/dist/services/test-filters.d.ts +3 -0
- package/dist/services/test-filters.js +27 -0
- package/dist/services/test-filters.js.map +1 -0
- package/dist/services/test-runner.d.ts +24 -0
- package/dist/services/test-runner.js +91 -0
- package/dist/services/test-runner.js.map +1 -0
- package/dist/services/trigger-runner.d.ts +29 -0
- package/dist/services/trigger-runner.js +59 -0
- package/dist/services/trigger-runner.js.map +1 -0
- package/dist/services/util.d.ts +32 -0
- package/dist/services/util.js +244 -0
- package/dist/services/util.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/oclif.manifest.json +635 -0
- package/package.json +151 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { AlertChannel, AlertChannelProps } from './alert-channel';
|
|
2
|
+
export type OpsgeniePriority = 'P1' | 'P2' | 'P3' | 'P4' | 'P5';
|
|
3
|
+
export type OpsgenieRegion = 'EU' | 'US';
|
|
4
|
+
export interface OpsgenieAlertChannelProps extends AlertChannelProps {
|
|
5
|
+
/**
|
|
6
|
+
* Friendly name to recognise the integration.
|
|
7
|
+
*/
|
|
8
|
+
name: string;
|
|
9
|
+
/**
|
|
10
|
+
* An API key for your Opsgenie account. See our
|
|
11
|
+
* {@link https://www.checklyhq.com/docs/integrations/opsgenie/ docs} on where to create this API key
|
|
12
|
+
*/
|
|
13
|
+
apiKey: string;
|
|
14
|
+
/**
|
|
15
|
+
* Configure the Opsgenie location, either `EU` or `US`.
|
|
16
|
+
*/
|
|
17
|
+
region: OpsgenieRegion;
|
|
18
|
+
/**
|
|
19
|
+
* Configure the severity level, `P1` to `P5`.
|
|
20
|
+
*/
|
|
21
|
+
priority: OpsgeniePriority;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Creates an Opsgenie Alert Channel
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
*
|
|
28
|
+
* This class make use of the Alert Channel endpoints.
|
|
29
|
+
*/
|
|
30
|
+
export declare class OpsgenieAlertChannel extends AlertChannel {
|
|
31
|
+
name: string;
|
|
32
|
+
apiKey: string;
|
|
33
|
+
region: OpsgenieRegion;
|
|
34
|
+
priority: OpsgeniePriority;
|
|
35
|
+
/**
|
|
36
|
+
* Constructs the Opsgenie Alert Channel instance
|
|
37
|
+
*
|
|
38
|
+
* @param logicalId unique project-scoped resource name identification
|
|
39
|
+
* @param props Opsgenie alert channel configuration properties
|
|
40
|
+
*
|
|
41
|
+
* {@link https://checklyhq.com/docs/cli/constructs-reference/#opsgeniealertchannel Read more in the docs}
|
|
42
|
+
*/
|
|
43
|
+
constructor(logicalId: string, props: OpsgenieAlertChannelProps);
|
|
44
|
+
synthesize(): any;
|
|
45
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OpsgenieAlertChannel = void 0;
|
|
4
|
+
const alert_channel_1 = require("./alert-channel");
|
|
5
|
+
const project_1 = require("./project");
|
|
6
|
+
/**
|
|
7
|
+
* Creates an Opsgenie Alert Channel
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
*
|
|
11
|
+
* This class make use of the Alert Channel endpoints.
|
|
12
|
+
*/
|
|
13
|
+
class OpsgenieAlertChannel extends alert_channel_1.AlertChannel {
|
|
14
|
+
/**
|
|
15
|
+
* Constructs the Opsgenie Alert Channel instance
|
|
16
|
+
*
|
|
17
|
+
* @param logicalId unique project-scoped resource name identification
|
|
18
|
+
* @param props Opsgenie alert channel configuration properties
|
|
19
|
+
*
|
|
20
|
+
* {@link https://checklyhq.com/docs/cli/constructs-reference/#opsgeniealertchannel Read more in the docs}
|
|
21
|
+
*/
|
|
22
|
+
constructor(logicalId, props) {
|
|
23
|
+
super(logicalId, props);
|
|
24
|
+
this.name = props.name;
|
|
25
|
+
this.apiKey = props.apiKey;
|
|
26
|
+
this.region = props.region;
|
|
27
|
+
this.priority = props.priority;
|
|
28
|
+
project_1.Session.registerConstruct(this);
|
|
29
|
+
}
|
|
30
|
+
synthesize() {
|
|
31
|
+
return {
|
|
32
|
+
...super.synthesize(),
|
|
33
|
+
type: 'OPSGENIE',
|
|
34
|
+
config: {
|
|
35
|
+
name: this.name,
|
|
36
|
+
apiKey: this.apiKey,
|
|
37
|
+
region: this.region,
|
|
38
|
+
priority: this.priority,
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.OpsgenieAlertChannel = OpsgenieAlertChannel;
|
|
44
|
+
//# sourceMappingURL=opsgenie-alert-channel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"opsgenie-alert-channel.js","sourceRoot":"","sources":["../../src/constructs/opsgenie-alert-channel.ts"],"names":[],"mappings":";;;AAAA,mDAAiE;AACjE,uCAAmC;AA0BnC;;;;;;GAMG;AACH,MAAa,oBAAqB,SAAQ,4BAAY;IAKpD;;;;;;;OAOG;IACH,YAAa,SAAiB,EAAE,KAAgC;QAC9D,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;QACvB,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;QACtB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAA;QAC1B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAA;QAC1B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAA;QAC9B,iBAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAA;IACjC,CAAC;IAED,UAAU;QACR,OAAO;YACL,GAAG,KAAK,CAAC,UAAU,EAAE;YACrB,IAAI,EAAE,UAAU;YAChB,MAAM,EAAE;gBACN,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,QAAQ,EAAE,IAAI,CAAC,QAAQ;aACxB;SACF,CAAA;IACH,CAAC;CACF;AAlCD,oDAkCC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { AlertChannel, AlertChannelProps } from './alert-channel';
|
|
2
|
+
export interface PagerdutyAlertChannelProps extends AlertChannelProps {
|
|
3
|
+
/**
|
|
4
|
+
* The name of your Pagerduty account.
|
|
5
|
+
*/
|
|
6
|
+
account?: string;
|
|
7
|
+
/**
|
|
8
|
+
* The name of your service defined in Pagerduty under which the alerts should be nested.
|
|
9
|
+
*/
|
|
10
|
+
serviceName?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The API key created by installing the Checkly integration in Pagerduty. You
|
|
13
|
+
* can {@link https://app.checklyhq.com/alerts/settings/channels/new/pagerduty install the Pagerduty alert channel}
|
|
14
|
+
* first from our UI to grab the `serviceKey`
|
|
15
|
+
*/
|
|
16
|
+
serviceKey: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Creates an Pagerduty Alert Channel
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
*
|
|
23
|
+
* This class make use of the Alert Channel endpoints.
|
|
24
|
+
*/
|
|
25
|
+
export declare class PagerdutyAlertChannel extends AlertChannel {
|
|
26
|
+
account?: string;
|
|
27
|
+
serviceName?: string;
|
|
28
|
+
serviceKey: string;
|
|
29
|
+
/**
|
|
30
|
+
* Constructs the Pagerduty Alert Channel instance
|
|
31
|
+
*
|
|
32
|
+
* @param logicalId unique project-scoped resource name identification
|
|
33
|
+
* @param props Pagerduty alert channel configuration properties
|
|
34
|
+
*
|
|
35
|
+
* {@link https://checklyhq.com/docs/cli/constructs-reference/#pagerdutyalertchannel Read more in the docs}
|
|
36
|
+
*/
|
|
37
|
+
constructor(logicalId: string, props: PagerdutyAlertChannelProps);
|
|
38
|
+
synthesize(): any;
|
|
39
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PagerdutyAlertChannel = void 0;
|
|
4
|
+
const alert_channel_1 = require("./alert-channel");
|
|
5
|
+
const project_1 = require("./project");
|
|
6
|
+
/**
|
|
7
|
+
* Creates an Pagerduty Alert Channel
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
*
|
|
11
|
+
* This class make use of the Alert Channel endpoints.
|
|
12
|
+
*/
|
|
13
|
+
class PagerdutyAlertChannel extends alert_channel_1.AlertChannel {
|
|
14
|
+
/**
|
|
15
|
+
* Constructs the Pagerduty Alert Channel instance
|
|
16
|
+
*
|
|
17
|
+
* @param logicalId unique project-scoped resource name identification
|
|
18
|
+
* @param props Pagerduty alert channel configuration properties
|
|
19
|
+
*
|
|
20
|
+
* {@link https://checklyhq.com/docs/cli/constructs-reference/#pagerdutyalertchannel Read more in the docs}
|
|
21
|
+
*/
|
|
22
|
+
constructor(logicalId, props) {
|
|
23
|
+
super(logicalId, props);
|
|
24
|
+
this.account = props.account;
|
|
25
|
+
this.serviceName = props.serviceName;
|
|
26
|
+
this.serviceKey = props.serviceKey;
|
|
27
|
+
project_1.Session.registerConstruct(this);
|
|
28
|
+
}
|
|
29
|
+
synthesize() {
|
|
30
|
+
return {
|
|
31
|
+
...super.synthesize(),
|
|
32
|
+
type: 'PAGERDUTY',
|
|
33
|
+
config: {
|
|
34
|
+
account: this.account,
|
|
35
|
+
serviceName: this.serviceName,
|
|
36
|
+
serviceKey: this.serviceKey,
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.PagerdutyAlertChannel = PagerdutyAlertChannel;
|
|
42
|
+
//# sourceMappingURL=pagerduty-alert-channel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagerduty-alert-channel.js","sourceRoot":"","sources":["../../src/constructs/pagerduty-alert-channel.ts"],"names":[],"mappings":";;;AAAA,mDAAiE;AACjE,uCAAmC;AAmBnC;;;;;;GAMG;AACH,MAAa,qBAAsB,SAAQ,4BAAY;IAIrD;;;;;;;OAOG;IACH,YAAa,SAAiB,EAAE,KAAiC;QAC/D,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;QACvB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAA;QAC5B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAA;QACpC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,CAAA;QAClC,iBAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAA;IACjC,CAAC;IAED,UAAU;QACR,OAAO;YACL,GAAG,KAAK,CAAC,UAAU,EAAE;YACrB,IAAI,EAAE,WAAW;YACjB,MAAM,EAAE;gBACN,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,WAAW,EAAE,IAAI,CAAC,WAAW;gBAC7B,UAAU,EAAE,IAAI,CAAC,UAAU;aAC5B;SACF,CAAA;IACH,CAAC;CACF;AA/BD,sDA+BC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { AlertChannel, AlertChannelProps } from './alert-channel';
|
|
2
|
+
export interface PhoneCallAlertChannelProps extends AlertChannelProps {
|
|
3
|
+
/**
|
|
4
|
+
* The phone number where to send the alert notifications.
|
|
5
|
+
*/
|
|
6
|
+
phoneNumber: string;
|
|
7
|
+
/**
|
|
8
|
+
* The name of the alert channel.
|
|
9
|
+
*/
|
|
10
|
+
name?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Creates a Phone Call Alert Channel
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
*
|
|
17
|
+
* This class make use of the Alert Channel endpoints.
|
|
18
|
+
*/
|
|
19
|
+
export declare class PhoneCallAlertChannel extends AlertChannel {
|
|
20
|
+
phoneNumber: string;
|
|
21
|
+
name?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Constructs the Phone Call Alert Channel instance
|
|
24
|
+
*
|
|
25
|
+
* @param logicalId unique project-scoped resource name identification
|
|
26
|
+
* @param props Phone Call alert channel configuration properties
|
|
27
|
+
*
|
|
28
|
+
* {@link https://checklyhq.com/docs/cli/constructs-reference/#phonecallalertchannel Read more in the docs}
|
|
29
|
+
* {@link https://checklyhq.com/docs/alerting/phone-calls/#supported-countries-and-regions
|
|
30
|
+
* List of supported countries}
|
|
31
|
+
*/
|
|
32
|
+
constructor(logicalId: string, props: PhoneCallAlertChannelProps);
|
|
33
|
+
synthesize(): any;
|
|
34
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PhoneCallAlertChannel = void 0;
|
|
4
|
+
const alert_channel_1 = require("./alert-channel");
|
|
5
|
+
const project_1 = require("./project");
|
|
6
|
+
/**
|
|
7
|
+
* Creates a Phone Call Alert Channel
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
*
|
|
11
|
+
* This class make use of the Alert Channel endpoints.
|
|
12
|
+
*/
|
|
13
|
+
class PhoneCallAlertChannel extends alert_channel_1.AlertChannel {
|
|
14
|
+
/**
|
|
15
|
+
* Constructs the Phone Call Alert Channel instance
|
|
16
|
+
*
|
|
17
|
+
* @param logicalId unique project-scoped resource name identification
|
|
18
|
+
* @param props Phone Call alert channel configuration properties
|
|
19
|
+
*
|
|
20
|
+
* {@link https://checklyhq.com/docs/cli/constructs-reference/#phonecallalertchannel Read more in the docs}
|
|
21
|
+
* {@link https://checklyhq.com/docs/alerting/phone-calls/#supported-countries-and-regions
|
|
22
|
+
* List of supported countries}
|
|
23
|
+
*/
|
|
24
|
+
constructor(logicalId, props) {
|
|
25
|
+
super(logicalId, props);
|
|
26
|
+
this.phoneNumber = props.phoneNumber;
|
|
27
|
+
this.name = props.name;
|
|
28
|
+
project_1.Session.registerConstruct(this);
|
|
29
|
+
}
|
|
30
|
+
synthesize() {
|
|
31
|
+
return {
|
|
32
|
+
...super.synthesize(),
|
|
33
|
+
type: 'CALL',
|
|
34
|
+
config: {
|
|
35
|
+
number: this.phoneNumber,
|
|
36
|
+
name: this.name,
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.PhoneCallAlertChannel = PhoneCallAlertChannel;
|
|
42
|
+
//# sourceMappingURL=phone-call-alert-channel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"phone-call-alert-channel.js","sourceRoot":"","sources":["../../src/constructs/phone-call-alert-channel.ts"],"names":[],"mappings":";;;AAAA,mDAAiE;AACjE,uCAAmC;AAanC;;;;;;GAMG;AACH,MAAa,qBAAsB,SAAQ,4BAAY;IAGrD;;;;;;;;;OASG;IACH,YAAa,SAAiB,EAAE,KAAiC;QAC/D,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;QACvB,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAA;QACpC,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;QACtB,iBAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAA;IACjC,CAAC;IAED,UAAU;QACR,OAAO;YACL,GAAG,KAAK,CAAC,UAAU,EAAE;YACrB,IAAI,EAAE,MAAM;YACZ,MAAM,EAAE;gBACN,MAAM,EAAE,IAAI,CAAC,WAAW;gBACxB,IAAI,EAAE,IAAI,CAAC,IAAI;aAChB;SACF,CAAA;IACH,CAAC;CACF;AA9BD,sDA8BC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ref: https://playwright.dev/docs/network#http-proxy
|
|
3
|
+
*/
|
|
4
|
+
type HttpProxy = {
|
|
5
|
+
server: string;
|
|
6
|
+
username?: string;
|
|
7
|
+
password?: string;
|
|
8
|
+
};
|
|
9
|
+
export type Use = {
|
|
10
|
+
baseURL?: string;
|
|
11
|
+
colorScheme?: string;
|
|
12
|
+
geolocation?: {
|
|
13
|
+
longitude?: number;
|
|
14
|
+
latitude?: number;
|
|
15
|
+
accuracy?: number;
|
|
16
|
+
};
|
|
17
|
+
locale?: string;
|
|
18
|
+
permissions?: string[];
|
|
19
|
+
timezoneId?: string;
|
|
20
|
+
viewport?: {
|
|
21
|
+
width?: number;
|
|
22
|
+
height?: number;
|
|
23
|
+
};
|
|
24
|
+
deviceScaleFactor?: number;
|
|
25
|
+
hasTouch?: boolean;
|
|
26
|
+
isMobile?: boolean;
|
|
27
|
+
javaScriptEnabled?: boolean;
|
|
28
|
+
acceptDownloads?: boolean;
|
|
29
|
+
extraHTTPHeaders?: object;
|
|
30
|
+
httpCredentials?: object;
|
|
31
|
+
ignoreHTTPSErrors?: boolean;
|
|
32
|
+
offline?: boolean;
|
|
33
|
+
actionTimeout?: number;
|
|
34
|
+
navigationTimeout?: number;
|
|
35
|
+
testIdAttribute?: string;
|
|
36
|
+
launchOptions?: object;
|
|
37
|
+
contextOptions?: object;
|
|
38
|
+
bypassCSP?: boolean;
|
|
39
|
+
userAgent?: string;
|
|
40
|
+
proxy?: HttpProxy;
|
|
41
|
+
};
|
|
42
|
+
export type Expect = {
|
|
43
|
+
timeout?: number;
|
|
44
|
+
toHaveScreenshot?: object;
|
|
45
|
+
toMatchSnapshot?: object;
|
|
46
|
+
};
|
|
47
|
+
export type PlaywrightConfig = {
|
|
48
|
+
use?: Use;
|
|
49
|
+
expect?: Expect;
|
|
50
|
+
timeout?: number;
|
|
51
|
+
};
|
|
52
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"playwright-config.js","sourceRoot":"","sources":["../../src/constructs/playwright-config.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Ref } from './ref';
|
|
2
|
+
import { Construct } from './construct';
|
|
3
|
+
export interface PrivateLocationCheckAssignmentProps {
|
|
4
|
+
privateLocationId: Ref;
|
|
5
|
+
checkId?: Ref;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Creates an Private Location Assignment
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
*
|
|
12
|
+
* This class make use of the Private Location Assignment endpoints.
|
|
13
|
+
*/
|
|
14
|
+
export declare class PrivateLocationCheckAssignment extends Construct {
|
|
15
|
+
privateLocationId: Ref;
|
|
16
|
+
checkId?: Ref;
|
|
17
|
+
static readonly __checklyType = "private-location-check-assignment";
|
|
18
|
+
/**
|
|
19
|
+
* Constructs the Private Location Assignment instance
|
|
20
|
+
*
|
|
21
|
+
* @param logicalId unique project-scoped resource name identification
|
|
22
|
+
* @param props private location assignment configuration properties
|
|
23
|
+
*/
|
|
24
|
+
constructor(logicalId: string, props: PrivateLocationCheckAssignmentProps);
|
|
25
|
+
synthesize(): {
|
|
26
|
+
privateLocationId: Ref;
|
|
27
|
+
checkId: Ref | undefined;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PrivateLocationCheckAssignment = void 0;
|
|
4
|
+
const construct_1 = require("./construct");
|
|
5
|
+
const project_1 = require("./project");
|
|
6
|
+
/**
|
|
7
|
+
* Creates an Private Location Assignment
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
*
|
|
11
|
+
* This class make use of the Private Location Assignment endpoints.
|
|
12
|
+
*/
|
|
13
|
+
class PrivateLocationCheckAssignment extends construct_1.Construct {
|
|
14
|
+
/**
|
|
15
|
+
* Constructs the Private Location Assignment instance
|
|
16
|
+
*
|
|
17
|
+
* @param logicalId unique project-scoped resource name identification
|
|
18
|
+
* @param props private location assignment configuration properties
|
|
19
|
+
*/
|
|
20
|
+
constructor(logicalId, props) {
|
|
21
|
+
super(PrivateLocationCheckAssignment.__checklyType, logicalId);
|
|
22
|
+
this.privateLocationId = props.privateLocationId;
|
|
23
|
+
this.checkId = props.checkId;
|
|
24
|
+
project_1.Session.registerConstruct(this);
|
|
25
|
+
}
|
|
26
|
+
synthesize() {
|
|
27
|
+
return {
|
|
28
|
+
privateLocationId: this.privateLocationId,
|
|
29
|
+
checkId: this.checkId,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.PrivateLocationCheckAssignment = PrivateLocationCheckAssignment;
|
|
34
|
+
PrivateLocationCheckAssignment.__checklyType = 'private-location-check-assignment';
|
|
35
|
+
//# sourceMappingURL=private-location-check-assignment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"private-location-check-assignment.js","sourceRoot":"","sources":["../../src/constructs/private-location-check-assignment.ts"],"names":[],"mappings":";;;AACA,2CAAuC;AACvC,uCAAmC;AAOnC;;;;;;GAMG;AACH,MAAa,8BAA+B,SAAQ,qBAAS;IAM3D;;;;;OAKG;IACH,YAAa,SAAiB,EAAE,KAA0C;QACxE,KAAK,CAAC,8BAA8B,CAAC,aAAa,EAAE,SAAS,CAAC,CAAA;QAC9D,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAA;QAChD,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAA;QAC5B,iBAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAA;IACjC,CAAC;IAED,UAAU;QACR,OAAO;YACL,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;YACzC,OAAO,EAAE,IAAI,CAAC,OAAO;SACtB,CAAA;IACH,CAAC;;AAxBH,wEAyBC;AArBiB,4CAAa,GAAG,mCAAmC,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Ref } from './ref';
|
|
2
|
+
import { Construct } from './construct';
|
|
3
|
+
export interface PrivateLocationGroupAssignmentProps {
|
|
4
|
+
privateLocationId: Ref;
|
|
5
|
+
groupId?: Ref;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Creates an Private Location Group Assignment
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
*
|
|
12
|
+
* This class make use of the Private Location Group Assignment endpoints.
|
|
13
|
+
*/
|
|
14
|
+
export declare class PrivateLocationGroupAssignment extends Construct {
|
|
15
|
+
privateLocationId: Ref;
|
|
16
|
+
groupId?: Ref;
|
|
17
|
+
static readonly __checklyType = "private-location-group-assignment";
|
|
18
|
+
/**
|
|
19
|
+
* Constructs the Private Location GroupAssignment instance
|
|
20
|
+
*
|
|
21
|
+
* @param logicalId unique project-scoped resource name identification
|
|
22
|
+
* @param props private location group assignment configuration properties
|
|
23
|
+
*/
|
|
24
|
+
constructor(logicalId: string, props: PrivateLocationGroupAssignmentProps);
|
|
25
|
+
synthesize(): {
|
|
26
|
+
privateLocationId: Ref;
|
|
27
|
+
groupId: Ref | undefined;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PrivateLocationGroupAssignment = void 0;
|
|
4
|
+
const construct_1 = require("./construct");
|
|
5
|
+
const project_1 = require("./project");
|
|
6
|
+
/**
|
|
7
|
+
* Creates an Private Location Group Assignment
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
*
|
|
11
|
+
* This class make use of the Private Location Group Assignment endpoints.
|
|
12
|
+
*/
|
|
13
|
+
class PrivateLocationGroupAssignment extends construct_1.Construct {
|
|
14
|
+
/**
|
|
15
|
+
* Constructs the Private Location GroupAssignment instance
|
|
16
|
+
*
|
|
17
|
+
* @param logicalId unique project-scoped resource name identification
|
|
18
|
+
* @param props private location group assignment configuration properties
|
|
19
|
+
*/
|
|
20
|
+
constructor(logicalId, props) {
|
|
21
|
+
super(PrivateLocationGroupAssignment.__checklyType, logicalId);
|
|
22
|
+
this.privateLocationId = props.privateLocationId;
|
|
23
|
+
this.groupId = props.groupId;
|
|
24
|
+
project_1.Session.registerConstruct(this);
|
|
25
|
+
}
|
|
26
|
+
synthesize() {
|
|
27
|
+
return {
|
|
28
|
+
privateLocationId: this.privateLocationId,
|
|
29
|
+
groupId: this.groupId,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.PrivateLocationGroupAssignment = PrivateLocationGroupAssignment;
|
|
34
|
+
PrivateLocationGroupAssignment.__checklyType = 'private-location-group-assignment';
|
|
35
|
+
//# sourceMappingURL=private-location-group-assignment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"private-location-group-assignment.js","sourceRoot":"","sources":["../../src/constructs/private-location-group-assignment.ts"],"names":[],"mappings":";;;AACA,2CAAuC;AACvC,uCAAmC;AAOnC;;;;;;GAMG;AACH,MAAa,8BAA+B,SAAQ,qBAAS;IAM3D;;;;;OAKG;IACH,YAAa,SAAiB,EAAE,KAA0C;QACxE,KAAK,CAAC,8BAA8B,CAAC,aAAa,EAAE,SAAS,CAAC,CAAA;QAC9D,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAA;QAChD,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAA;QAC5B,iBAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAA;IACjC,CAAC;IAED,UAAU;QACR,OAAO;YACL,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;YACzC,OAAO,EAAE,IAAI,CAAC,OAAO;SACtB,CAAA;IACH,CAAC;;AAxBH,wEAyBC;AArBiB,4CAAa,GAAG,mCAAmC,CAAA"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Construct } from './construct';
|
|
2
|
+
export type PrivateLocationIcon = 'alert' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-small-down' | 'arrow-small-left' | 'arrow-small-right' | 'arrow-small-up' | 'arrow-up' | 'beaker' | 'bell' | 'bold' | 'book' | 'bookmark' | 'briefcase' | 'broadcast' | 'browser' | 'bug' | 'calendar' | 'check' | 'checklist' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'circle-slash' | 'circuit-board' | 'clippy' | 'clock' | 'cloud-download' | 'cloud-upload' | 'code' | 'comment' | 'comment-discussion' | 'credit-card' | 'dash' | 'dashboard' | 'database' | 'desktop-download' | 'device-camera' | 'device-camera-video' | 'device-desktop' | 'device-mobile' | 'diff' | 'diff-added' | 'diff-ignored' | 'diff-modified' | 'diff-removed' | 'diff-renamed' | 'ellipses' | 'ellipsis' | 'eye' | 'file' | 'file-binary' | 'file-code' | 'file-directory' | 'file-media' | 'file-pdf' | 'file-submodule' | 'file-symlink-directory' | 'file-symlink-file' | 'file-text' | 'file-zip' | 'flame' | 'fold' | 'gear' | 'gift' | 'gist' | 'gist-secret' | 'git-branch' | 'git-commit' | 'git-compare' | 'git-merge' | 'git-pull-request' | 'globe' | 'grabber' | 'graph' | 'heart' | 'history' | 'home' | 'horizontal-rule' | 'hubot' | 'inbox' | 'info' | 'issue-closed' | 'issue-opened' | 'issue-reopened' | 'italic' | 'jersey' | 'key' | 'keyboard' | 'law' | 'light-bulb' | 'link' | 'link-external' | 'list-ordered' | 'list-unordered' | 'location' | 'lock' | 'mail' | 'mail-read' | 'mail-reply' | 'markdown' | 'mark-github' | 'megaphone' | 'mention' | 'milestone' | 'mirror' | 'mortar-board' | 'mute' | 'no-newline' | 'octoface' | 'organization' | 'package' | 'paintcan' | 'pencil' | 'person' | 'pin' | 'plug' | 'plus' | 'plus-small' | 'primitive-dot' | 'primitive-square' | 'pulse' | 'question' | 'quote' | 'radio-tower' | 'reply' | 'repo' | 'repo-clone' | 'repo-force-push' | 'repo-forked' | 'repo-pull' | 'repo-push' | 'rocket' | 'rss' | 'ruby' | 'search' | 'server' | 'settings' | 'shield' | 'sign-in' | 'sign-out' | 'smiley' | 'squirrel' | 'star' | 'stop' | 'sync' | 'tag' | 'tasklist' | 'telescope' | 'terminal' | 'text-size' | 'three-bars' | 'thumbsdown' | 'thumbsup' | 'tools' | 'trashcan' | 'triangle-down' | 'triangle-left' | 'triangle-right' | 'triangle-up' | 'unfold' | 'unmute' | 'unverified' | 'verified' | 'versions' | 'watch' | 'x' | 'zap';
|
|
3
|
+
export interface PrivateLocationProps {
|
|
4
|
+
/**
|
|
5
|
+
* The name assigned to the private location.
|
|
6
|
+
*/
|
|
7
|
+
name: string;
|
|
8
|
+
/**
|
|
9
|
+
* A valid slug name.
|
|
10
|
+
*/
|
|
11
|
+
slugName: string;
|
|
12
|
+
/**
|
|
13
|
+
* An icon
|
|
14
|
+
*/
|
|
15
|
+
icon?: PrivateLocationIcon;
|
|
16
|
+
/**
|
|
17
|
+
* Define a proxy for outgoing API check HTTP calls from your private location.
|
|
18
|
+
*/
|
|
19
|
+
proxyUrl?: string;
|
|
20
|
+
}
|
|
21
|
+
declare class PrivateLocationWrapper extends Construct {
|
|
22
|
+
constructor(logicalId: string, physicalId: string | number);
|
|
23
|
+
synthesize(): null;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Creates a Private Location
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
*
|
|
30
|
+
* This class make use of the Private Location endpoints.
|
|
31
|
+
*
|
|
32
|
+
* {@link https://www.checklyhq.com/docs/cli/constructs-reference/#privatelocation Read more in the docs}
|
|
33
|
+
*/
|
|
34
|
+
export declare class PrivateLocation extends Construct {
|
|
35
|
+
name: string;
|
|
36
|
+
slugName: string;
|
|
37
|
+
icon?: string;
|
|
38
|
+
proxyUrl?: string;
|
|
39
|
+
static readonly __checklyType = "private-location";
|
|
40
|
+
/**
|
|
41
|
+
* Constructs the Private Location instance
|
|
42
|
+
*
|
|
43
|
+
* @param logicalId unique project-scoped resource name identification
|
|
44
|
+
* @param props private location configuration properties
|
|
45
|
+
*/
|
|
46
|
+
constructor(logicalId: string, props: PrivateLocationProps);
|
|
47
|
+
static fromId(id: string): PrivateLocationWrapper;
|
|
48
|
+
allowInChecklyConfig(): boolean;
|
|
49
|
+
synthesize(): any | null;
|
|
50
|
+
}
|
|
51
|
+
export {};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PrivateLocation = void 0;
|
|
4
|
+
const construct_1 = require("./construct");
|
|
5
|
+
const project_1 = require("./project");
|
|
6
|
+
const validator_error_1 = require("./validator-error");
|
|
7
|
+
class PrivateLocationWrapper extends construct_1.Construct {
|
|
8
|
+
constructor(logicalId, physicalId) {
|
|
9
|
+
super(PrivateLocation.__checklyType, logicalId, physicalId, false);
|
|
10
|
+
project_1.Session.registerConstruct(this);
|
|
11
|
+
}
|
|
12
|
+
synthesize() {
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Creates a Private Location
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
*
|
|
21
|
+
* This class make use of the Private Location endpoints.
|
|
22
|
+
*
|
|
23
|
+
* {@link https://www.checklyhq.com/docs/cli/constructs-reference/#privatelocation Read more in the docs}
|
|
24
|
+
*/
|
|
25
|
+
class PrivateLocation extends construct_1.Construct {
|
|
26
|
+
/**
|
|
27
|
+
* Constructs the Private Location instance
|
|
28
|
+
*
|
|
29
|
+
* @param logicalId unique project-scoped resource name identification
|
|
30
|
+
* @param props private location configuration properties
|
|
31
|
+
*/
|
|
32
|
+
constructor(logicalId, props) {
|
|
33
|
+
super(PrivateLocation.__checklyType, logicalId);
|
|
34
|
+
this.name = props.name;
|
|
35
|
+
this.slugName = props.slugName;
|
|
36
|
+
this.icon = props.icon;
|
|
37
|
+
this.proxyUrl = props.proxyUrl;
|
|
38
|
+
if (!/^((?!((us(-gov)?|ap|ca|cn|eu|sa|af|me)-(central|(north|south)?(east|west)?)-\d+))[a-zA-Z0-9-]{1,30})$/
|
|
39
|
+
.test(this.slugName)) {
|
|
40
|
+
throw new validator_error_1.ValidationError(`The "slugName" must differ from all AWS locations. (slugName='${this.slugName}')`);
|
|
41
|
+
}
|
|
42
|
+
project_1.Session.registerConstruct(this);
|
|
43
|
+
}
|
|
44
|
+
static fromId(id) {
|
|
45
|
+
return new PrivateLocationWrapper(`private-location-${id}`, id);
|
|
46
|
+
}
|
|
47
|
+
allowInChecklyConfig() {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
synthesize() {
|
|
51
|
+
return {
|
|
52
|
+
name: this.name,
|
|
53
|
+
slugName: this.slugName,
|
|
54
|
+
icon: this.icon,
|
|
55
|
+
proxyUrl: this.proxyUrl,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.PrivateLocation = PrivateLocation;
|
|
60
|
+
PrivateLocation.__checklyType = 'private-location';
|
|
61
|
+
//# sourceMappingURL=private-location.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"private-location.js","sourceRoot":"","sources":["../../src/constructs/private-location.ts"],"names":[],"mappings":";;;AAAA,2CAAuC;AACvC,uCAAmC;AACnC,uDAAmD;AA4CnD,MAAM,sBAAuB,SAAQ,qBAAS;IAC5C,YAAa,SAAiB,EAAE,UAAyB;QACvD,KAAK,CAAC,eAAe,CAAC,aAAa,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,CAAC,CAAA;QAClE,iBAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAA;IACjC,CAAC;IAED,UAAU;QACR,OAAO,IAAI,CAAA;IACb,CAAC;CACF;AAED;;;;;;;;GAQG;AACH,MAAa,eAAgB,SAAQ,qBAAS;IAQ5C;;;;;OAKG;IACH,YAAa,SAAiB,EAAE,KAA2B;QACzD,KAAK,CAAC,eAAe,CAAC,aAAa,EAAE,SAAS,CAAC,CAAA;QAC/C,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;QACtB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAA;QAC9B,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;QACtB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAA;QAE9B,IAAI,CAAC,uGAAuG;aACzG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;YACvB,MAAM,IAAI,iCAAe,CAAC,iEAAiE,IAAI,CAAC,QAAQ,IAAI,CAAC,CAAA;QAC/G,CAAC;QAED,iBAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAA;IACjC,CAAC;IAED,MAAM,CAAC,MAAM,CAAE,EAAU;QACvB,OAAO,IAAI,sBAAsB,CAAC,oBAAoB,EAAE,EAAE,EAAE,EAAE,CAAC,CAAA;IACjE,CAAC;IAED,oBAAoB;QAClB,OAAO,IAAI,CAAA;IACb,CAAC;IAED,UAAU;QACR,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;SACxB,CAAA;IACH,CAAC;;AA5CH,0CA6CC;AAvCiB,6BAAa,GAAG,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { CheckConfigDefaults } from '../services/checkly-config-loader';
|
|
2
|
+
import { Construct } from './construct';
|
|
3
|
+
import type { Runtime } from '../rest/runtimes';
|
|
4
|
+
import { Check, AlertChannelSubscription, AlertChannel, CheckGroup, MaintenanceWindow, Dashboard, PrivateLocation, PrivateLocationCheckAssignment, PrivateLocationGroupAssignment } from './';
|
|
5
|
+
import { ResourceSync } from '../rest/projects';
|
|
6
|
+
import { PrivateLocationApi } from '../rest/private-locations';
|
|
7
|
+
export interface ProjectProps {
|
|
8
|
+
/**
|
|
9
|
+
* Friendly name for your project.
|
|
10
|
+
*/
|
|
11
|
+
name: string;
|
|
12
|
+
/**
|
|
13
|
+
* Git repository URL.
|
|
14
|
+
*/
|
|
15
|
+
repoUrl?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface ProjectData {
|
|
18
|
+
check: Record<string, Check>;
|
|
19
|
+
'check-group': Record<string, CheckGroup>;
|
|
20
|
+
'alert-channel': Record<string, AlertChannel>;
|
|
21
|
+
'alert-channel-subscription': Record<string, AlertChannelSubscription>;
|
|
22
|
+
'maintenance-window': Record<string, MaintenanceWindow>;
|
|
23
|
+
'private-location': Record<string, PrivateLocation>;
|
|
24
|
+
'private-location-check-assignment': Record<string, PrivateLocationCheckAssignment>;
|
|
25
|
+
'private-location-group-assignment': Record<string, PrivateLocationGroupAssignment>;
|
|
26
|
+
dashboard: Record<string, Dashboard>;
|
|
27
|
+
}
|
|
28
|
+
export declare class Project extends Construct {
|
|
29
|
+
name: string;
|
|
30
|
+
repoUrl?: string;
|
|
31
|
+
logicalId: string;
|
|
32
|
+
data: ProjectData;
|
|
33
|
+
static readonly __checklyType = "project";
|
|
34
|
+
/**
|
|
35
|
+
* Constructs the Project instance
|
|
36
|
+
*
|
|
37
|
+
* @param logicalId unique project identifier
|
|
38
|
+
* @param props project configuration properties
|
|
39
|
+
*/
|
|
40
|
+
constructor(logicalId: string, props: ProjectProps);
|
|
41
|
+
addResource(type: string, logicalId: string, resource: Construct): void;
|
|
42
|
+
synthesize(addTestOnly?: boolean): {
|
|
43
|
+
project: Pick<Project, 'logicalId' | 'name' | 'repoUrl'>;
|
|
44
|
+
resources: Array<ResourceSync>;
|
|
45
|
+
};
|
|
46
|
+
getTestOnlyConstructs(): Construct[];
|
|
47
|
+
getHeartbeatLogicalIds(): string[];
|
|
48
|
+
private synthesizeRecord;
|
|
49
|
+
}
|
|
50
|
+
export declare class Session {
|
|
51
|
+
static project?: Project;
|
|
52
|
+
static basePath?: string;
|
|
53
|
+
static checkDefaults?: CheckConfigDefaults;
|
|
54
|
+
static browserCheckDefaults?: CheckConfigDefaults;
|
|
55
|
+
static multiStepCheckDefaults?: CheckConfigDefaults;
|
|
56
|
+
static checkFilePath?: string;
|
|
57
|
+
static checkFileAbsolutePath?: string;
|
|
58
|
+
static availableRuntimes: Record<string, Runtime>;
|
|
59
|
+
static verifyRuntimeDependencies: boolean;
|
|
60
|
+
static loadingChecklyConfigFile: boolean;
|
|
61
|
+
static checklyConfigFileConstructs?: Construct[];
|
|
62
|
+
static privateLocations: PrivateLocationApi[];
|
|
63
|
+
static registerConstruct(construct: Construct): void;
|
|
64
|
+
static validateCreateConstruct(construct: Construct): void;
|
|
65
|
+
static getPrivateLocations(): Promise<PrivateLocationApi[]>;
|
|
66
|
+
}
|