checkly 6.0.1 → 6.1.0-prerelease-d4c1886
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/commands/import/plan.d.ts +1 -0
- package/dist/commands/import/plan.js +92 -43
- package/dist/commands/import/plan.js.map +1 -1
- package/dist/commands/pw-test.d.ts +27 -0
- package/dist/commands/pw-test.js +316 -0
- package/dist/commands/pw-test.js.map +1 -0
- package/dist/commands/rules.d.ts +9 -0
- package/dist/commands/rules.js +126 -0
- package/dist/commands/rules.js.map +1 -0
- package/dist/commands/sync-playwright.d.ts +0 -3
- package/dist/commands/sync-playwright.js +5 -29
- package/dist/commands/sync-playwright.js.map +1 -1
- package/dist/commands/test.d.ts +0 -12
- package/dist/commands/test.js +15 -62
- package/dist/commands/test.js.map +1 -1
- package/dist/commands/trigger.js +2 -2
- package/dist/commands/trigger.js.map +1 -1
- package/dist/constructs/alert-channel.d.ts +67 -12
- package/dist/constructs/alert-channel.js +30 -3
- package/dist/constructs/alert-channel.js.map +1 -1
- package/dist/constructs/alert-escalation-policy.d.ts +80 -0
- package/dist/constructs/alert-escalation-policy.js +20 -0
- package/dist/constructs/alert-escalation-policy.js.map +1 -1
- package/dist/constructs/api-assertion-codegen.d.ts +3 -0
- package/dist/constructs/api-assertion-codegen.js +23 -0
- package/dist/constructs/api-assertion-codegen.js.map +1 -0
- package/dist/constructs/api-assertion.d.ts +74 -0
- package/dist/constructs/api-assertion.js +85 -0
- package/dist/constructs/api-assertion.js.map +1 -0
- package/dist/constructs/api-check-bundle.d.ts +4 -4
- package/dist/constructs/api-check-codegen.d.ts +3 -5
- package/dist/constructs/api-check-codegen.js +4 -80
- package/dist/constructs/api-check-codegen.js.map +1 -1
- package/dist/constructs/api-check.d.ts +147 -46
- package/dist/constructs/api-check.js +114 -28
- package/dist/constructs/api-check.js.map +1 -1
- package/dist/constructs/api-request-codegen.d.ts +4 -0
- package/dist/constructs/api-request-codegen.js +68 -0
- package/dist/constructs/api-request-codegen.js.map +1 -0
- package/dist/constructs/api-request.d.ts +67 -0
- package/dist/constructs/api-request.js +3 -0
- package/dist/constructs/api-request.js.map +1 -0
- package/dist/constructs/browser-check-bundle.d.ts +3 -3
- package/dist/constructs/browser-check-codegen.d.ts +2 -2
- package/dist/constructs/browser-check-codegen.js +1 -1
- package/dist/constructs/browser-check-codegen.js.map +1 -1
- package/dist/constructs/browser-check.d.ts +50 -11
- package/dist/constructs/browser-check.js +47 -25
- package/dist/constructs/browser-check.js.map +1 -1
- package/dist/constructs/check-codegen.d.ts +11 -6
- package/dist/constructs/check-codegen.js +36 -24
- package/dist/constructs/check-codegen.js.map +1 -1
- package/dist/constructs/check-config.d.ts +3 -0
- package/dist/constructs/check-config.js +21 -0
- package/dist/constructs/check-config.js.map +1 -0
- package/dist/constructs/check-group-codegen.js +2 -2
- package/dist/constructs/check-group-codegen.js.map +1 -1
- package/dist/constructs/check-group-v1.js +2 -22
- package/dist/constructs/check-group-v1.js.map +1 -1
- package/dist/constructs/check-group-v2.js +2 -20
- package/dist/constructs/check-group-v2.js.map +1 -1
- package/dist/constructs/check.d.ts +190 -30
- package/dist/constructs/check.js +94 -48
- package/dist/constructs/check.js.map +1 -1
- package/dist/constructs/construct.d.ts +86 -0
- package/dist/constructs/construct.js +51 -0
- package/dist/constructs/construct.js.map +1 -1
- package/dist/constructs/dashboard.d.ts +98 -16
- package/dist/constructs/dashboard.js.map +1 -1
- package/dist/constructs/diagnostics.d.ts +23 -0
- package/dist/constructs/diagnostics.js +10 -0
- package/dist/constructs/diagnostics.js.map +1 -1
- package/dist/constructs/environment-variable.d.ts +19 -0
- package/dist/constructs/frequency.d.ts +42 -0
- package/dist/constructs/frequency.js +42 -0
- package/dist/constructs/frequency.js.map +1 -1
- package/dist/constructs/heartbeat-monitor-codegen.d.ts +11 -0
- package/dist/constructs/{heartbeat-check-codegen.js → heartbeat-monitor-codegen.js} +10 -10
- package/dist/constructs/heartbeat-monitor-codegen.js.map +1 -0
- package/dist/constructs/{heartbeat-check.d.ts → heartbeat-monitor.d.ts} +9 -13
- package/dist/constructs/{heartbeat-check.js → heartbeat-monitor.js} +10 -13
- package/dist/constructs/heartbeat-monitor.js.map +1 -0
- package/dist/constructs/http-header.d.ts +16 -0
- package/dist/constructs/http-request.d.ts +2 -0
- package/dist/constructs/http-request.js +3 -0
- package/dist/constructs/http-request.js.map +1 -0
- package/dist/constructs/index.d.ts +10 -2
- package/dist/constructs/index.js +10 -2
- package/dist/constructs/index.js.map +1 -1
- package/dist/constructs/internal/common-diagnostics.d.ts +9 -0
- package/dist/constructs/internal/common-diagnostics.js +39 -0
- package/dist/constructs/internal/common-diagnostics.js.map +1 -0
- package/dist/constructs/ip.d.ts +2 -0
- package/dist/constructs/ip.js +3 -0
- package/dist/constructs/ip.js.map +1 -0
- package/dist/constructs/key-value-pair.d.ts +35 -0
- package/dist/constructs/monitor-codegen.d.ts +1 -0
- package/dist/constructs/monitor-codegen.js +6 -0
- package/dist/constructs/monitor-codegen.js.map +1 -0
- package/dist/constructs/monitor.d.ts +113 -0
- package/dist/constructs/monitor.js +21 -0
- package/dist/constructs/monitor.js.map +1 -0
- package/dist/constructs/multi-step-check-bundle.d.ts +3 -3
- package/dist/constructs/multi-step-check-codegen.d.ts +2 -2
- package/dist/constructs/multi-step-check-codegen.js +1 -1
- package/dist/constructs/multi-step-check-codegen.js.map +1 -1
- package/dist/constructs/multi-step-check.d.ts +8 -8
- package/dist/constructs/multi-step-check.js +4 -21
- package/dist/constructs/multi-step-check.js.map +1 -1
- package/dist/constructs/playwright-check-bundle.d.ts +2 -2
- package/dist/constructs/playwright-check.d.ts +6 -6
- package/dist/constructs/playwright-check.js +1 -1
- package/dist/constructs/playwright-check.js.map +1 -1
- package/dist/constructs/project.js +1 -1
- package/dist/constructs/project.js.map +1 -1
- package/dist/constructs/query-param.d.ts +16 -0
- package/dist/constructs/ref.d.ts +44 -0
- package/dist/constructs/ref.js +44 -0
- package/dist/constructs/ref.js.map +1 -1
- package/dist/constructs/retry-strategy.d.ts +78 -8
- package/dist/constructs/retry-strategy.js +33 -0
- package/dist/constructs/retry-strategy.js.map +1 -1
- package/dist/constructs/tcp-monitor-codegen.d.ts +15 -0
- package/dist/constructs/{tcp-check-codegen.js → tcp-monitor-codegen.js} +9 -9
- package/dist/constructs/tcp-monitor-codegen.js.map +1 -0
- package/dist/constructs/{tcp-check.d.ts → tcp-monitor.d.ts} +70 -21
- package/dist/constructs/{tcp-check.js → tcp-monitor.js} +34 -13
- package/dist/constructs/tcp-monitor.js.map +1 -0
- package/dist/constructs/url-assertion-codegen.d.ts +3 -0
- package/dist/constructs/url-assertion-codegen.js +15 -0
- package/dist/constructs/url-assertion-codegen.js.map +1 -0
- package/dist/constructs/url-assertion.d.ts +60 -0
- package/dist/constructs/url-assertion.js +56 -0
- package/dist/constructs/url-assertion.js.map +1 -0
- package/dist/constructs/url-monitor-codegen.d.ts +13 -0
- package/dist/constructs/url-monitor-codegen.js +38 -0
- package/dist/constructs/url-monitor-codegen.js.map +1 -0
- package/dist/constructs/url-monitor.d.ts +146 -0
- package/dist/constructs/url-monitor.js +99 -0
- package/dist/constructs/url-monitor.js.map +1 -0
- package/dist/constructs/url-request-codegen.d.ts +4 -0
- package/dist/constructs/url-request-codegen.js +31 -0
- package/dist/constructs/url-request-codegen.js.map +1 -0
- package/dist/constructs/url-request.d.ts +65 -0
- package/dist/constructs/url-request.js +3 -0
- package/dist/constructs/url-request.js.map +1 -0
- package/dist/constructs/webhook-alert-channel.d.ts +1 -1
- package/dist/helpers/constants.d.ts +1 -0
- package/dist/helpers/constants.js +5 -0
- package/dist/helpers/constants.js.map +1 -0
- package/dist/helpers/test-helper.d.ts +16 -0
- package/dist/helpers/test-helper.js +72 -0
- package/dist/helpers/test-helper.js.map +1 -0
- package/dist/helpers/write-config-helpers.d.ts +5 -0
- package/dist/helpers/write-config-helpers.js +88 -0
- package/dist/helpers/write-config-helpers.js.map +1 -0
- package/dist/reporters/util.js +2 -2
- package/dist/reporters/util.js.map +1 -1
- package/dist/rest/api.js +6 -0
- package/dist/rest/api.js.map +1 -1
- package/dist/rules/checkly.rules.md +491 -0
- package/dist/services/checkly-config-loader.d.ts +3 -3
- package/dist/services/checkly-config-loader.js +6 -4
- package/dist/services/checkly-config-loader.js.map +1 -1
- package/dist/services/util.d.ts +2 -2
- package/dist/services/util.js +14 -14
- package/dist/services/util.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/oclif.manifest.json +150 -1
- package/package.json +7 -3
- package/dist/constructs/heartbeat-check-codegen.d.ts +0 -11
- package/dist/constructs/heartbeat-check-codegen.js.map +0 -1
- package/dist/constructs/heartbeat-check.js.map +0 -1
- package/dist/constructs/tcp-check-codegen.d.ts +0 -15
- package/dist/constructs/tcp-check-codegen.js.map +0 -1
- package/dist/constructs/tcp-check.js.map +0 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Codegen, Context } from './internal/codegen';
|
|
2
|
+
import { MonitorResource } from './monitor-codegen';
|
|
3
|
+
import { Heartbeat } from './heartbeat-monitor';
|
|
4
|
+
export interface HeartbeatMonitorResource extends MonitorResource {
|
|
5
|
+
checkType: 'HEARTBEAT';
|
|
6
|
+
heartbeat: Heartbeat;
|
|
7
|
+
}
|
|
8
|
+
export declare class HeartbeatMonitorCodegen extends Codegen<HeartbeatMonitorResource> {
|
|
9
|
+
describe(resource: HeartbeatMonitorResource): string;
|
|
10
|
+
gencode(logicalId: string, resource: HeartbeatMonitorResource, context: Context): void;
|
|
11
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.HeartbeatMonitorCodegen = void 0;
|
|
4
4
|
const codegen_1 = require("./internal/codegen");
|
|
5
5
|
const sourcegen_1 = require("../sourcegen");
|
|
6
|
-
const
|
|
7
|
-
class
|
|
6
|
+
const monitor_codegen_1 = require("./monitor-codegen");
|
|
7
|
+
class HeartbeatMonitorCodegen extends codegen_1.Codegen {
|
|
8
8
|
describe(resource) {
|
|
9
|
-
return `Heartbeat: ${resource.name}`;
|
|
9
|
+
return `Heartbeat Monitor: ${resource.name}`;
|
|
10
10
|
}
|
|
11
11
|
gencode(logicalId, resource, context) {
|
|
12
|
-
const filePath = context.filePath('resources/
|
|
12
|
+
const filePath = context.filePath('resources/heartbeat-monitors', resource.name, {
|
|
13
13
|
tags: resource.tags,
|
|
14
14
|
unique: true,
|
|
15
15
|
});
|
|
16
16
|
const file = this.program.generatedConstructFile(filePath.fullPath);
|
|
17
|
-
file.namedImport('
|
|
18
|
-
file.section((0, sourcegen_1.expr)((0, sourcegen_1.ident)('
|
|
17
|
+
file.namedImport('HeartbeatMonitor', 'checkly/constructs');
|
|
18
|
+
file.section((0, sourcegen_1.expr)((0, sourcegen_1.ident)('HeartbeatMonitor'), builder => {
|
|
19
19
|
builder.new(builder => {
|
|
20
20
|
builder.string(logicalId);
|
|
21
21
|
builder.object(builder => {
|
|
@@ -23,11 +23,11 @@ class HeartbeatCheckCodegen extends codegen_1.Codegen {
|
|
|
23
23
|
builder.string('periodUnit', resource.heartbeat.periodUnit);
|
|
24
24
|
builder.number('grace', resource.heartbeat.grace);
|
|
25
25
|
builder.string('graceUnit', resource.heartbeat.graceUnit);
|
|
26
|
-
(0,
|
|
26
|
+
(0, monitor_codegen_1.buildMonitorProps)(this.program, file, builder, resource, context);
|
|
27
27
|
});
|
|
28
28
|
});
|
|
29
29
|
}));
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
exports.
|
|
33
|
-
//# sourceMappingURL=heartbeat-
|
|
32
|
+
exports.HeartbeatMonitorCodegen = HeartbeatMonitorCodegen;
|
|
33
|
+
//# sourceMappingURL=heartbeat-monitor-codegen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heartbeat-monitor-codegen.js","sourceRoot":"","sources":["../../src/constructs/heartbeat-monitor-codegen.ts"],"names":[],"mappings":";;;AAAA,gDAAqD;AACrD,4CAA0C;AAC1C,uDAAsE;AAQtE,MAAa,uBAAwB,SAAQ,iBAAiC;IAC5E,QAAQ,CAAE,QAAkC;QAC1C,OAAO,sBAAsB,QAAQ,CAAC,IAAI,EAAE,CAAA;IAC9C,CAAC;IAED,OAAO,CAAE,SAAiB,EAAE,QAAkC,EAAE,OAAgB;QAC9E,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,8BAA8B,EAAE,QAAQ,CAAC,IAAI,EAAE;YAC/E,IAAI,EAAE,QAAQ,CAAC,IAAI;YACnB,MAAM,EAAE,IAAI;SACb,CAAC,CAAA;QAEF,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,sBAAsB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAA;QAEnE,IAAI,CAAC,WAAW,CAAC,kBAAkB,EAAE,oBAAoB,CAAC,CAAA;QAE1D,IAAI,CAAC,OAAO,CAAC,IAAA,gBAAI,EAAC,IAAA,iBAAK,EAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC,EAAE;YACrD,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;gBACpB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;gBACzB,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE;oBACvB,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;oBACnD,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,QAAQ,CAAC,SAAS,CAAC,UAAU,CAAC,CAAA;oBAC3D,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;oBACjD,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,QAAQ,CAAC,SAAS,CAAC,SAAS,CAAC,CAAA;oBAEzD,IAAA,mCAAiB,EAAC,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA;gBACnE,CAAC,CAAC,CAAA;YACJ,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAC,CAAA;IACL,CAAC;CACF;AA7BD,0DA6BC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Monitor, MonitorProps } from './monitor';
|
|
2
2
|
type TimeUnits = 'seconds' | 'minutes' | 'hours' | 'days';
|
|
3
3
|
export interface Heartbeat {
|
|
4
4
|
/**
|
|
@@ -15,29 +15,25 @@ export interface Heartbeat {
|
|
|
15
15
|
grace: number;
|
|
16
16
|
graceUnit: TimeUnits;
|
|
17
17
|
}
|
|
18
|
-
export interface
|
|
18
|
+
export interface HeartbeatMonitorProps extends MonitorProps {
|
|
19
19
|
period: number;
|
|
20
20
|
periodUnit: TimeUnits;
|
|
21
21
|
grace: number;
|
|
22
22
|
graceUnit: TimeUnits;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
|
-
* Creates a Heartbeat
|
|
26
|
-
*
|
|
27
|
-
* @remarks
|
|
28
|
-
*
|
|
29
|
-
* This class make use of the Heartbeat Checks endpoints.
|
|
25
|
+
* Creates a Heartbeat Monitor
|
|
30
26
|
*/
|
|
31
|
-
export declare class
|
|
27
|
+
export declare class HeartbeatMonitor extends Monitor {
|
|
32
28
|
heartbeat: Heartbeat;
|
|
33
29
|
/**
|
|
34
|
-
* Constructs the Heartbeat
|
|
30
|
+
* Constructs the Heartbeat Monitor instance
|
|
35
31
|
*
|
|
36
32
|
* @param logicalId unique project-scoped resource name identification
|
|
37
|
-
* @param props
|
|
38
|
-
* {@link https://checklyhq.com/docs/cli/constructs-reference/#
|
|
33
|
+
* @param props configuration properties
|
|
34
|
+
* {@link https://checklyhq.com/docs/cli/constructs-reference/#heartbeatmonitor Read more in the docs}
|
|
39
35
|
*/
|
|
40
|
-
constructor(logicalId: string, props:
|
|
36
|
+
constructor(logicalId: string, props: HeartbeatMonitorProps);
|
|
41
37
|
synthesize(): any | null;
|
|
42
38
|
}
|
|
43
|
-
export {};
|
|
39
|
+
export { HeartbeatMonitorProps as HeartbeatCheckProps, HeartbeatMonitor as HeartbeatCheck, };
|
|
@@ -3,8 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.HeartbeatCheck = void 0;
|
|
7
|
-
const
|
|
6
|
+
exports.HeartbeatCheck = exports.HeartbeatMonitor = void 0;
|
|
7
|
+
const monitor_1 = require("./monitor");
|
|
8
8
|
const project_1 = require("./project");
|
|
9
9
|
const luxon_1 = require("luxon");
|
|
10
10
|
const constants_1 = __importDefault(require("../constants"));
|
|
@@ -23,20 +23,16 @@ function _customPeriodGraceValidation(heartbeat) {
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
-
* Creates a Heartbeat
|
|
27
|
-
*
|
|
28
|
-
* @remarks
|
|
29
|
-
*
|
|
30
|
-
* This class make use of the Heartbeat Checks endpoints.
|
|
26
|
+
* Creates a Heartbeat Monitor
|
|
31
27
|
*/
|
|
32
|
-
class
|
|
28
|
+
class HeartbeatMonitor extends monitor_1.Monitor {
|
|
33
29
|
heartbeat;
|
|
34
30
|
/**
|
|
35
|
-
* Constructs the Heartbeat
|
|
31
|
+
* Constructs the Heartbeat Monitor instance
|
|
36
32
|
*
|
|
37
33
|
* @param logicalId unique project-scoped resource name identification
|
|
38
|
-
* @param props
|
|
39
|
-
* {@link https://checklyhq.com/docs/cli/constructs-reference/#
|
|
34
|
+
* @param props configuration properties
|
|
35
|
+
* {@link https://checklyhq.com/docs/cli/constructs-reference/#heartbeatmonitor Read more in the docs}
|
|
40
36
|
*/
|
|
41
37
|
constructor(logicalId, props) {
|
|
42
38
|
super(logicalId, props);
|
|
@@ -58,5 +54,6 @@ class HeartbeatCheck extends check_1.Check {
|
|
|
58
54
|
};
|
|
59
55
|
}
|
|
60
56
|
}
|
|
61
|
-
exports.
|
|
62
|
-
|
|
57
|
+
exports.HeartbeatMonitor = HeartbeatMonitor;
|
|
58
|
+
exports.HeartbeatCheck = HeartbeatMonitor;
|
|
59
|
+
//# sourceMappingURL=heartbeat-monitor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heartbeat-monitor.js","sourceRoot":"","sources":["../../src/constructs/heartbeat-monitor.ts"],"names":[],"mappings":";;;;;;AAAA,uCAAiD;AACjD,uCAAmC;AACnC,iCAAgC;AAChC,6DAAqC;AA8BrC,SAAS,4BAA4B,CAAE,SAAoB;IACzD,MAAM,GAAG,GAAG,gBAAQ,CAAC,GAAG,EAAE,CAAA;IAC1B,MAAM,eAAe,GAAG,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,SAAS,CAAC,MAAM,EAAE,CAAC,CAAA;IAC9E,MAAM,gBAAgB,GAAG,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,KAAK,EAAE,CAAC,CAAA;IAE7E,MAAM,qBAAqB,GAAG,GAAG,CAAA;IACjC,MAAM,kBAAkB,GAAG,EAAE,CAAA;IAE7B,IACE,eAAe,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,IAAI,GAAG,qBAAqB;QAC9D,eAAe,CAAC,IAAI,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC,OAAO,GAAG,kBAAkB,EACjE,CAAC;QACD,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAA;IACpE,CAAC;IAED,IAAI,gBAAgB,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,IAAI,GAAG,qBAAqB,EAAE,CAAC;QACpE,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAA;IACtD,CAAC;AACH,CAAC;AAED;;GAEG;AACH,MAAa,gBAAiB,SAAQ,iBAAO;IAC3C,SAAS,CAAW;IAEpB;;;;;;OAMG;IACH,YAAa,SAAiB,EAAE,KAA4B;QAC1D,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;QAEvB,4BAA4B,CAAC,KAAK,CAAC,CAAA;QACnC,IAAI,CAAC,SAAS,GAAG;YACf,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,SAAS,EAAE,KAAK,CAAC,SAAS;SAC3B,CAAA;QAED,iBAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAA;QAC/B,IAAI,CAAC,gBAAgB,EAAE,CAAA;IACzB,CAAC;IAED,UAAU;QACR,OAAO;YACL,GAAG,KAAK,CAAC,UAAU,EAAE;YACrB,SAAS,EAAE,mBAAU,CAAC,SAAS;YAC/B,SAAS,EAAE,IAAI,CAAC,SAAS;SAC1B,CAAA;IACH,CAAC;CACF;AAhCD,4CAgCC;AAKqB,0CAAc"}
|
|
@@ -1,2 +1,18 @@
|
|
|
1
1
|
import KeyValuePair from './key-value-pair';
|
|
2
|
+
/**
|
|
3
|
+
* Represents an HTTP header for API checks.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```typescript
|
|
7
|
+
* const authHeader: HttpHeader = {
|
|
8
|
+
* key: 'Authorization',
|
|
9
|
+
* value: 'Bearer {{API_TOKEN}}'
|
|
10
|
+
* }
|
|
11
|
+
*
|
|
12
|
+
* const contentTypeHeader: HttpHeader = {
|
|
13
|
+
* key: 'Content-Type',
|
|
14
|
+
* value: 'application/json'
|
|
15
|
+
* }
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
2
18
|
export type HttpHeader = KeyValuePair;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-request.js","sourceRoot":"","sources":["../../src/constructs/http-request.ts"],"names":[],"mappings":""}
|
|
@@ -6,12 +6,15 @@ export * from './opsgenie-alert-channel';
|
|
|
6
6
|
export * from './pagerduty-alert-channel';
|
|
7
7
|
export * from './webhook-alert-channel';
|
|
8
8
|
export * from './api-check';
|
|
9
|
+
export * from './api-assertion';
|
|
10
|
+
export * from './api-request';
|
|
9
11
|
export * from './browser-check';
|
|
10
|
-
export * from './heartbeat-
|
|
12
|
+
export * from './heartbeat-monitor';
|
|
11
13
|
export * from './check-group';
|
|
12
14
|
export * from './alert-channel-subscription';
|
|
13
15
|
export * from './environment-variable';
|
|
14
16
|
export * from './http-header';
|
|
17
|
+
export * from './http-request';
|
|
15
18
|
export * from './query-param';
|
|
16
19
|
export * from './frequency';
|
|
17
20
|
export * from './maintenance-window';
|
|
@@ -25,7 +28,7 @@ export * from './phone-call-alert-channel';
|
|
|
25
28
|
export * from './retry-strategy';
|
|
26
29
|
export * from './multi-step-check';
|
|
27
30
|
export * from './alert-escalation-policy';
|
|
28
|
-
export * from './tcp-
|
|
31
|
+
export * from './tcp-monitor';
|
|
29
32
|
export * from './incidentio-alert-channel';
|
|
30
33
|
export * from './msteams-alert-channel';
|
|
31
34
|
export * from './telegram-alert-channel';
|
|
@@ -34,3 +37,8 @@ export * from './status-page-service';
|
|
|
34
37
|
export * from './incident';
|
|
35
38
|
export * from './playwright-check';
|
|
36
39
|
export * from './diagnostics';
|
|
40
|
+
export * from './monitor';
|
|
41
|
+
export * from './url-monitor';
|
|
42
|
+
export * from './url-assertion';
|
|
43
|
+
export * from './url-request';
|
|
44
|
+
export * from './ip';
|
package/dist/constructs/index.js
CHANGED
|
@@ -22,12 +22,15 @@ __exportStar(require("./opsgenie-alert-channel"), exports);
|
|
|
22
22
|
__exportStar(require("./pagerduty-alert-channel"), exports);
|
|
23
23
|
__exportStar(require("./webhook-alert-channel"), exports);
|
|
24
24
|
__exportStar(require("./api-check"), exports);
|
|
25
|
+
__exportStar(require("./api-assertion"), exports);
|
|
26
|
+
__exportStar(require("./api-request"), exports);
|
|
25
27
|
__exportStar(require("./browser-check"), exports);
|
|
26
|
-
__exportStar(require("./heartbeat-
|
|
28
|
+
__exportStar(require("./heartbeat-monitor"), exports);
|
|
27
29
|
__exportStar(require("./check-group"), exports);
|
|
28
30
|
__exportStar(require("./alert-channel-subscription"), exports);
|
|
29
31
|
__exportStar(require("./environment-variable"), exports);
|
|
30
32
|
__exportStar(require("./http-header"), exports);
|
|
33
|
+
__exportStar(require("./http-request"), exports);
|
|
31
34
|
__exportStar(require("./query-param"), exports);
|
|
32
35
|
__exportStar(require("./frequency"), exports);
|
|
33
36
|
__exportStar(require("./maintenance-window"), exports);
|
|
@@ -41,7 +44,7 @@ __exportStar(require("./phone-call-alert-channel"), exports);
|
|
|
41
44
|
__exportStar(require("./retry-strategy"), exports);
|
|
42
45
|
__exportStar(require("./multi-step-check"), exports);
|
|
43
46
|
__exportStar(require("./alert-escalation-policy"), exports);
|
|
44
|
-
__exportStar(require("./tcp-
|
|
47
|
+
__exportStar(require("./tcp-monitor"), exports);
|
|
45
48
|
__exportStar(require("./incidentio-alert-channel"), exports);
|
|
46
49
|
__exportStar(require("./msteams-alert-channel"), exports);
|
|
47
50
|
__exportStar(require("./telegram-alert-channel"), exports);
|
|
@@ -50,4 +53,9 @@ __exportStar(require("./status-page-service"), exports);
|
|
|
50
53
|
__exportStar(require("./incident"), exports);
|
|
51
54
|
__exportStar(require("./playwright-check"), exports);
|
|
52
55
|
__exportStar(require("./diagnostics"), exports);
|
|
56
|
+
__exportStar(require("./monitor"), exports);
|
|
57
|
+
__exportStar(require("./url-monitor"), exports);
|
|
58
|
+
__exportStar(require("./url-assertion"), exports);
|
|
59
|
+
__exportStar(require("./url-request"), exports);
|
|
60
|
+
__exportStar(require("./ip"), exports);
|
|
53
61
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constructs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,sDAAmC;AACnC,wDAAqC;AACrC,wDAAqC;AACrC,2DAAwC;AACxC,4DAAyC;AACzC,0DAAuC;AACvC,8CAA2B;AAC3B,kDAA+B;AAC/B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constructs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,sDAAmC;AACnC,wDAAqC;AACrC,wDAAqC;AACrC,2DAAwC;AACxC,4DAAyC;AACzC,0DAAuC;AACvC,8CAA2B;AAC3B,kDAA+B;AAC/B,gDAA6B;AAC7B,kDAA+B;AAC/B,sDAAmC;AACnC,gDAA6B;AAC7B,+DAA4C;AAC5C,yDAAsC;AACtC,gDAA6B;AAC7B,iDAA8B;AAC9B,gDAA6B;AAC7B,8CAA2B;AAC3B,uDAAoC;AACpC,kDAA+B;AAC/B,qDAAkC;AAClC,sEAAmD;AACnD,sEAAmD;AACnD,0CAAuB;AACvB,8CAA2B;AAC3B,6DAA0C;AAC1C,mDAAgC;AAChC,qDAAkC;AAClC,4DAAyC;AACzC,gDAA6B;AAC7B,6DAA0C;AAC1C,0DAAuC;AACvC,2DAAwC;AACxC,gDAA6B;AAC7B,wDAAqC;AACrC,6CAA0B;AAC1B,qDAAkC;AAClC,gDAA6B;AAC7B,4CAAyB;AACzB,gDAA6B;AAC7B,kDAA+B;AAC/B,gDAA6B;AAC7B,uCAAoB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Diagnostics } from '../diagnostics';
|
|
2
|
+
import { RetryStrategy } from '../retry-strategy';
|
|
3
|
+
type RetryStrategyProps = {
|
|
4
|
+
doubleCheck?: boolean;
|
|
5
|
+
retryStrategy?: RetryStrategy;
|
|
6
|
+
};
|
|
7
|
+
export declare function validateDeprecatedDoubleCheck(diagnostics: Diagnostics, props: RetryStrategyProps): Promise<void>;
|
|
8
|
+
export declare function validateRemovedDoubleCheck(diagnostics: Diagnostics, props: RetryStrategyProps): Promise<void>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateRemovedDoubleCheck = exports.validateDeprecatedDoubleCheck = void 0;
|
|
4
|
+
const construct_diagnostics_1 = require("../construct-diagnostics");
|
|
5
|
+
async function validateDoubleCheck(diagnostics, kind, props) {
|
|
6
|
+
if (props.doubleCheck !== undefined) {
|
|
7
|
+
if (props.doubleCheck) {
|
|
8
|
+
diagnostics.add(new kind('doubleCheck', new Error(`To match the behavior of doubleCheck: true, please use the ` +
|
|
9
|
+
`following retryStrategy instead:` +
|
|
10
|
+
`\n\n` +
|
|
11
|
+
` RetryStrategyBuilder.fixedStrategy({\n` +
|
|
12
|
+
` maxRetries: 1,\n` +
|
|
13
|
+
` baseBackoffSeconds: 0,\n` +
|
|
14
|
+
` maxDurationSeconds: 600,\n` +
|
|
15
|
+
` sameRegion: false,\n` +
|
|
16
|
+
` })`)));
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
diagnostics.add(new kind('doubleCheck', new Error(`To match the behavior of doubleCheck: false, please use the ` +
|
|
20
|
+
`following retryStrategy instead:` +
|
|
21
|
+
`\n\n` +
|
|
22
|
+
` RetryStrategyBuilder.noRetries()`)));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
async function validateDeprecatedDoubleCheck(diagnostics, props) {
|
|
27
|
+
if (props.doubleCheck !== undefined) {
|
|
28
|
+
if (props.retryStrategy) {
|
|
29
|
+
diagnostics.add(new construct_diagnostics_1.InvalidPropertyValueDiagnostic('doubleCheck', new Error('Cannot specify both "doubleCheck" and "retryStrategy".')));
|
|
30
|
+
}
|
|
31
|
+
await validateDoubleCheck(diagnostics, construct_diagnostics_1.DeprecatedPropertyDiagnostic, props);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.validateDeprecatedDoubleCheck = validateDeprecatedDoubleCheck;
|
|
35
|
+
async function validateRemovedDoubleCheck(diagnostics, props) {
|
|
36
|
+
await validateDoubleCheck(diagnostics, construct_diagnostics_1.RemovedPropertyDiagnostic, props);
|
|
37
|
+
}
|
|
38
|
+
exports.validateRemovedDoubleCheck = validateRemovedDoubleCheck;
|
|
39
|
+
//# sourceMappingURL=common-diagnostics.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common-diagnostics.js","sourceRoot":"","sources":["../../../src/constructs/internal/common-diagnostics.ts"],"names":[],"mappings":";;;AAAA,oEAAkI;AASlI,KAAK,UAAU,mBAAmB,CAChC,WAAwB,EACxB,IAAwD,EACxD,KAAyB;IAEzB,IAAI,KAAK,CAAC,WAAW,KAAK,SAAS,EAAE,CAAC;QACpC,IAAI,KAAK,CAAC,WAAW,EAAE,CAAC;YACtB,WAAW,CAAC,GAAG,CAAC,IAAI,IAAI,CACtB,aAAa,EACb,IAAI,KAAK,CACP,6DAA6D;gBAC7D,kCAAkC;gBAClC,MAAM;gBACN,0CAA0C;gBAC1C,sBAAsB;gBACtB,8BAA8B;gBAC9B,gCAAgC;gBAChC,0BAA0B;gBAC1B,MAAM,CACP,CACF,CAAC,CAAA;QACJ,CAAC;aAAM,CAAC;YACN,WAAW,CAAC,GAAG,CAAC,IAAI,IAAI,CACtB,aAAa,EACb,IAAI,KAAK,CACP,8DAA8D;gBAC9D,kCAAkC;gBAClC,MAAM;gBACN,oCAAoC,CACrC,CACF,CAAC,CAAA;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAEM,KAAK,UAAU,6BAA6B,CAAE,WAAwB,EAAE,KAAyB;IACtG,IAAI,KAAK,CAAC,WAAW,KAAK,SAAS,EAAE,CAAC;QACpC,IAAI,KAAK,CAAC,aAAa,EAAE,CAAC;YACxB,WAAW,CAAC,GAAG,CAAC,IAAI,sDAA8B,CAChD,aAAa,EACb,IAAI,KAAK,CAAC,wDAAwD,CAAC,CACpE,CAAC,CAAA;QACJ,CAAC;QAED,MAAM,mBAAmB,CAAC,WAAW,EAAE,oDAA4B,EAAE,KAAK,CAAC,CAAA;IAC7E,CAAC;AACH,CAAC;AAXD,sEAWC;AAEM,KAAK,UAAU,0BAA0B,CAAE,WAAwB,EAAE,KAAyB;IACnG,MAAM,mBAAmB,CAAC,WAAW,EAAE,iDAAyB,EAAE,KAAK,CAAC,CAAA;AAC1E,CAAC;AAFD,gEAEC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ip.js","sourceRoot":"","sources":["../../src/constructs/ip.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a key-value pair used in various Checkly constructs.
|
|
3
|
+
* This interface is used by HTTP headers, query parameters, and environment variables.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```typescript
|
|
7
|
+
* // HTTP header
|
|
8
|
+
* const header: KeyValuePair = {
|
|
9
|
+
* key: 'Authorization',
|
|
10
|
+
* value: 'Bearer {{API_TOKEN}}'
|
|
11
|
+
* }
|
|
12
|
+
*
|
|
13
|
+
* // Query parameter
|
|
14
|
+
* const queryParam: KeyValuePair = {
|
|
15
|
+
* key: 'version',
|
|
16
|
+
* value: 'v1'
|
|
17
|
+
* }
|
|
18
|
+
*
|
|
19
|
+
* // Environment variable (supports secret/encryption)
|
|
20
|
+
* const envVar: KeyValuePair = {
|
|
21
|
+
* key: 'API_TOKEN',
|
|
22
|
+
* value: 'secret-token-value',
|
|
23
|
+
* secret: true
|
|
24
|
+
* }
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
1
27
|
export default interface KeyValuePair {
|
|
28
|
+
/** The key/name of the pair */
|
|
2
29
|
key: string;
|
|
30
|
+
/** The value associated with the key */
|
|
3
31
|
value: string;
|
|
32
|
+
/**
|
|
33
|
+
* Whether the value is locked and encrypted (supported by headers and environment variables).
|
|
34
|
+
*/
|
|
4
35
|
locked?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Whether the value should be treated as sensitive/secret (environment variables only).
|
|
38
|
+
* Not supported for HTTP headers or query parameters.
|
|
39
|
+
*/
|
|
5
40
|
secret?: boolean;
|
|
6
41
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { buildCheckProps as buildMonitorProps, CheckResource as MonitorResource, } from './check-codegen';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildMonitorProps = void 0;
|
|
4
|
+
var check_codegen_1 = require("./check-codegen");
|
|
5
|
+
Object.defineProperty(exports, "buildMonitorProps", { enumerable: true, get: function () { return check_codegen_1.buildCheckProps; } });
|
|
6
|
+
//# sourceMappingURL=monitor-codegen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitor-codegen.js","sourceRoot":"","sources":["../../src/constructs/monitor-codegen.ts"],"names":[],"mappings":";;;AAAA,iDAGwB;AAFtB,kHAAA,eAAe,OAAqB"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { Region } from '..';
|
|
2
|
+
import { AlertChannel, AlertChannelRef } from './alert-channel';
|
|
3
|
+
import { AlertEscalation } from './alert-escalation-policy';
|
|
4
|
+
import { CheckGroupRef } from './check-group-ref';
|
|
5
|
+
import { CheckGroupV1 } from './check-group-v1';
|
|
6
|
+
import { CheckGroupV2 } from './check-group-v2';
|
|
7
|
+
import { Frequency } from './frequency';
|
|
8
|
+
import { IncidentTrigger } from './incident';
|
|
9
|
+
import { PrivateLocation, PrivateLocationRef } from './private-location';
|
|
10
|
+
import { RetryStrategy } from './retry-strategy';
|
|
11
|
+
import { Check, CheckProps } from './check';
|
|
12
|
+
import { Diagnostics } from './diagnostics';
|
|
13
|
+
export interface MonitorProps extends Omit<CheckProps, 'doubleCheck'> {
|
|
14
|
+
/**
|
|
15
|
+
* The name of the monitor.
|
|
16
|
+
*/
|
|
17
|
+
name: string;
|
|
18
|
+
/**
|
|
19
|
+
* Determines whether the monitor will run periodically or not after being deployed.
|
|
20
|
+
*/
|
|
21
|
+
activated?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Determines if any notifications will be sent out when a check fails and/or recovers.
|
|
24
|
+
*/
|
|
25
|
+
muted?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* An array of one or more data center locations where to run this monitor.
|
|
28
|
+
*/
|
|
29
|
+
locations?: (keyof Region)[];
|
|
30
|
+
/**
|
|
31
|
+
* An array of one or more private locations where to run the check.
|
|
32
|
+
* PrivateLocation instances or slug name strings are allowed.
|
|
33
|
+
*
|
|
34
|
+
* `string` slug names are **only** allowed for private locations that do
|
|
35
|
+
* **not** belong to the project. Use PrivateLocation instances for private
|
|
36
|
+
* locations created within the project.
|
|
37
|
+
*/
|
|
38
|
+
privateLocations?: (string | PrivateLocation | PrivateLocationRef)[];
|
|
39
|
+
/**
|
|
40
|
+
* Tags for organizing and filtering checks.
|
|
41
|
+
*/
|
|
42
|
+
tags?: string[];
|
|
43
|
+
/**
|
|
44
|
+
* How often the check should run in minutes.
|
|
45
|
+
*/
|
|
46
|
+
frequency?: number | Frequency;
|
|
47
|
+
/**
|
|
48
|
+
* The CheckGroup that this monitor is part of.
|
|
49
|
+
*
|
|
50
|
+
* Note that despite their name, CheckGroups can also contain monitors.
|
|
51
|
+
*/
|
|
52
|
+
group?: CheckGroupV1 | CheckGroupV2 | CheckGroupRef;
|
|
53
|
+
/**
|
|
54
|
+
* List of alert channels to notify when the monitor fails or recovers.
|
|
55
|
+
* If you don't set at least one, we won't be able to alert you.
|
|
56
|
+
*
|
|
57
|
+
* See https://www.checklyhq.com/docs/alerting-and-retries/alert-channels/#alert-channels
|
|
58
|
+
* to learn more about alert channels.
|
|
59
|
+
*/
|
|
60
|
+
alertChannels?: (AlertChannel | AlertChannelRef)[];
|
|
61
|
+
/**
|
|
62
|
+
* Determines the alert escalation policy for the monitor.
|
|
63
|
+
*/
|
|
64
|
+
alertEscalationPolicy?: AlertEscalation;
|
|
65
|
+
/**
|
|
66
|
+
* Determines whether the monitor is deployable.
|
|
67
|
+
*
|
|
68
|
+
* When `true`, the monitor will not be deployed, otherwise, the monitor
|
|
69
|
+
* will be deployed.
|
|
70
|
+
*/
|
|
71
|
+
testOnly?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Sets a retry policy for the monitor. Use RetryStrategyBuilder to create a
|
|
74
|
+
* suitable retry strategy.
|
|
75
|
+
*/
|
|
76
|
+
retryStrategy?: RetryStrategy;
|
|
77
|
+
/**
|
|
78
|
+
* Determines whether the monitor should create and resolve an incident
|
|
79
|
+
* based on its alert configuration.
|
|
80
|
+
*
|
|
81
|
+
* See https://www.checklyhq.com/docs/status-pages/incidents/#incident-automation
|
|
82
|
+
* to learn more about automated incidents.
|
|
83
|
+
*/
|
|
84
|
+
triggerIncident?: IncidentTrigger;
|
|
85
|
+
}
|
|
86
|
+
export declare abstract class Monitor extends Check {
|
|
87
|
+
constructor(logicalId: string, props: MonitorProps);
|
|
88
|
+
protected validateDoubleCheck(diagnostics: Diagnostics): Promise<void>;
|
|
89
|
+
synthesize(): {
|
|
90
|
+
doubleCheck: boolean;
|
|
91
|
+
name: string;
|
|
92
|
+
activated: boolean | undefined;
|
|
93
|
+
muted: boolean | undefined;
|
|
94
|
+
shouldFail: boolean | undefined;
|
|
95
|
+
locations: (keyof Region)[] | undefined;
|
|
96
|
+
privateLocations: undefined;
|
|
97
|
+
tags: string[] | undefined;
|
|
98
|
+
frequency: number | undefined;
|
|
99
|
+
frequencyOffset: number | undefined;
|
|
100
|
+
groupId: import("./ref").Ref | null;
|
|
101
|
+
retryStrategy: RetryStrategy | null | undefined;
|
|
102
|
+
alertSettings: AlertEscalation | undefined;
|
|
103
|
+
useGlobalAlertSettings: boolean | undefined;
|
|
104
|
+
runParallel: boolean | undefined;
|
|
105
|
+
triggerIncident: {
|
|
106
|
+
serviceId: import("./ref").Ref;
|
|
107
|
+
severity: "MINOR" | "MEDIUM" | "MAJOR" | "CRITICAL";
|
|
108
|
+
name: string;
|
|
109
|
+
description: string;
|
|
110
|
+
notifySubscribers: boolean;
|
|
111
|
+
} | undefined;
|
|
112
|
+
};
|
|
113
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Monitor = void 0;
|
|
4
|
+
const check_1 = require("./check");
|
|
5
|
+
const common_diagnostics_1 = require("./internal/common-diagnostics");
|
|
6
|
+
class Monitor extends check_1.Check {
|
|
7
|
+
constructor(logicalId, props) {
|
|
8
|
+
super(logicalId, props);
|
|
9
|
+
}
|
|
10
|
+
async validateDoubleCheck(diagnostics) {
|
|
11
|
+
await (0, common_diagnostics_1.validateRemovedDoubleCheck)(diagnostics, this);
|
|
12
|
+
}
|
|
13
|
+
synthesize() {
|
|
14
|
+
return {
|
|
15
|
+
...super.synthesize(),
|
|
16
|
+
doubleCheck: false,
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.Monitor = Monitor;
|
|
21
|
+
//# sourceMappingURL=monitor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitor.js","sourceRoot":"","sources":["../../src/constructs/monitor.ts"],"names":[],"mappings":";;;AAUA,mCAA2C;AAE3C,sEAA0E;AA4E1E,MAAsB,OAAQ,SAAQ,aAAK;IACzC,YAAa,SAAiB,EAAE,KAAmB;QACjD,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;IACzB,CAAC;IAES,KAAK,CAAC,mBAAmB,CAAE,WAAwB;QAC3D,MAAM,IAAA,+CAA0B,EAAC,WAAW,EAAE,IAAI,CAAC,CAAA;IACrD,CAAC;IAED,UAAU;QACR,OAAO;YACL,GAAG,KAAK,CAAC,UAAU,EAAE;YACrB,WAAW,EAAE,KAAK;SACnB,CAAA;IACH,CAAC;CACF;AAfD,0BAeC"}
|
|
@@ -18,18 +18,18 @@ export declare class MultiStepCheckBundle implements Bundle {
|
|
|
18
18
|
dependencies: number[] | undefined;
|
|
19
19
|
checkType: string;
|
|
20
20
|
playwrightConfig: import("./playwright-config").PlaywrightConfig | undefined;
|
|
21
|
+
runtimeId: string | undefined;
|
|
22
|
+
environmentVariables: import("./key-value-pair").default[] | undefined;
|
|
21
23
|
name: string;
|
|
22
24
|
activated: boolean | undefined;
|
|
23
25
|
muted: boolean | undefined;
|
|
24
26
|
shouldFail: boolean | undefined;
|
|
25
|
-
runtimeId: string | undefined;
|
|
26
27
|
locations: (keyof import("..").Region)[] | undefined;
|
|
27
28
|
privateLocations: undefined;
|
|
28
29
|
tags: string[] | undefined;
|
|
29
30
|
frequency: number | undefined;
|
|
30
31
|
frequencyOffset: number | undefined;
|
|
31
|
-
groupId: import("./ref").Ref |
|
|
32
|
-
environmentVariables: import("./key-value-pair").default[] | undefined;
|
|
32
|
+
groupId: import("./ref").Ref | null;
|
|
33
33
|
retryStrategy: import("./retry-strategy").RetryStrategy | null | undefined;
|
|
34
34
|
doubleCheck: boolean | undefined;
|
|
35
35
|
alertSettings: import("./alert-escalation-policy").AlertEscalation | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PlaywrightConfigResource } from './playwright-config-codegen';
|
|
2
|
-
import {
|
|
2
|
+
import { RuntimeCheckResource } from './check-codegen';
|
|
3
3
|
import { Codegen, Context } from './internal/codegen';
|
|
4
|
-
export interface MultiStepCheckResource extends
|
|
4
|
+
export interface MultiStepCheckResource extends RuntimeCheckResource {
|
|
5
5
|
checkType: 'MULTI_STEP';
|
|
6
6
|
script: string;
|
|
7
7
|
scriptPath?: string;
|
|
@@ -29,7 +29,7 @@ class MultiStepCheckCodegen extends codegen_1.Codegen {
|
|
|
29
29
|
if (resource.playwrightConfig) {
|
|
30
30
|
builder.value('playwrightConfig', (0, playwright_config_codegen_1.valueForPlaywrightConfig)(resource.playwrightConfig));
|
|
31
31
|
}
|
|
32
|
-
(0, check_codegen_1.
|
|
32
|
+
(0, check_codegen_1.buildRuntimeCheckProps)(this.program, file, builder, resource, context);
|
|
33
33
|
});
|
|
34
34
|
});
|
|
35
35
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multi-step-check-codegen.js","sourceRoot":"","sources":["../../src/constructs/multi-step-check-codegen.ts"],"names":[],"mappings":";;;AAAA,4CAA0C;AAC1C,2EAAgG;AAChG,
|
|
1
|
+
{"version":3,"file":"multi-step-check-codegen.js","sourceRoot":"","sources":["../../src/constructs/multi-step-check-codegen.ts"],"names":[],"mappings":";;;AAAA,4CAA0C;AAC1C,2EAAgG;AAChG,mDAA8E;AAC9E,gDAAqD;AASrD,MAAM,SAAS,GAAG,gBAAgB,CAAA;AAElC,MAAa,qBAAsB,SAAQ,iBAA+B;IACxE,QAAQ,CAAE,QAAgC;QACxC,OAAO,oBAAoB,QAAQ,CAAC,IAAI,EAAE,CAAA;IAC5C,CAAC;IAED,OAAO,CAAE,SAAiB,EAAE,QAAgC,EAAE,OAAgB;QAC5E,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,6BAA6B,EAAE,QAAQ,CAAC,IAAI,EAAE;YAC9E,IAAI,EAAE,QAAQ,CAAC,IAAI;YACnB,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,IAAI;SACb,CAAC,CAAA;QAEF,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,sBAAsB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAA;QAEnE,IAAI,CAAC,WAAW,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAA;QAEjD,IAAI,CAAC,OAAO,CAAC,IAAA,gBAAI,EAAC,IAAA,iBAAK,EAAC,SAAS,CAAC,EAAE,OAAO,CAAC,EAAE;YAC5C,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;gBACpB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;gBACzB,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE;oBACvB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE;wBAC/B,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;wBACjF,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAA;oBAC7D,CAAC,CAAC,CAAA;oBAEF,IAAI,QAAQ,CAAC,gBAAgB,EAAE,CAAC;wBAC9B,OAAO,CAAC,KAAK,CAAC,kBAAkB,EAAE,IAAA,oDAAwB,EAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC,CAAA;oBACxF,CAAC;oBAED,IAAA,sCAAsB,EAAC,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA;gBACxE,CAAC,CAAC,CAAA;YACJ,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAC,CAAA;IACL,CAAC;CACF;AAlCD,sDAkCC"}
|