@abyss-project/monitor 9.5.0 → 10.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/application-environment-rum.api.d.ts +5 -0
- package/dist/api/application-environment-rum.api.js +21 -0
- package/dist/api/application-environment-rum.api.js.map +1 -0
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.js +1 -0
- package/dist/api/index.js.map +1 -1
- package/dist/frameworks/express/index.d.ts +2 -0
- package/dist/frameworks/express/index.js +2 -0
- package/dist/frameworks/express/index.js.map +1 -1
- package/dist/frameworks/express/rum-proxy.d.ts +16 -0
- package/dist/frameworks/express/rum-proxy.js +186 -0
- package/dist/frameworks/express/rum-proxy.js.map +1 -0
- package/dist/frameworks/express/upgrade-context.d.ts +2 -0
- package/dist/frameworks/express/upgrade-context.js +13 -0
- package/dist/frameworks/express/upgrade-context.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -1
- package/dist/middlewares/context.middleware.d.ts +7 -4
- package/dist/middlewares/context.middleware.js +32 -4
- package/dist/middlewares/context.middleware.js.map +1 -1
- package/dist/middlewares/logger-endpoint.middleware.js +2 -1
- package/dist/middlewares/logger-endpoint.middleware.js.map +1 -1
- package/dist/models/logger.model.d.ts +1 -0
- package/dist/models/logger.model.js +6 -0
- package/dist/models/logger.model.js.map +1 -1
- package/dist/rum/correlation-headers.d.ts +6 -0
- package/dist/rum/correlation-headers.js +10 -0
- package/dist/rum/correlation-headers.js.map +1 -0
- package/dist/rum/index.d.ts +5 -0
- package/dist/rum/index.js +22 -0
- package/dist/rum/index.js.map +1 -0
- package/dist/rum/mask-url.d.ts +7 -0
- package/dist/rum/mask-url.js +41 -0
- package/dist/rum/mask-url.js.map +1 -0
- package/dist/rum/rum-batch.types.d.ts +192 -0
- package/dist/rum/rum-batch.types.js +3 -0
- package/dist/rum/rum-batch.types.js.map +1 -0
- package/dist/rum/rum.enums.d.ts +70 -0
- package/dist/rum/rum.enums.js +86 -0
- package/dist/rum/rum.enums.js.map +1 -0
- package/dist/rum/uuid.d.ts +2 -0
- package/dist/rum/uuid.js +7 -0
- package/dist/rum/uuid.js.map +1 -0
- package/dist/types/enum/api-error.enum.d.ts +3 -0
- package/dist/types/enum/api-error.enum.js +3 -0
- package/dist/types/enum/api-error.enum.js.map +1 -1
- package/dist/types/enum/incident-observation-outcome.enum.d.ts +4 -0
- package/dist/types/enum/incident-observation-outcome.enum.js +9 -0
- package/dist/types/enum/incident-observation-outcome.enum.js.map +1 -0
- package/dist/types/enum/incident-occurrence-kind.enum.d.ts +1 -0
- package/dist/types/enum/incident-occurrence-kind.enum.js +1 -0
- package/dist/types/enum/incident-occurrence-kind.enum.js.map +1 -1
- package/dist/types/enum/incident-source.enum.d.ts +1 -5
- package/dist/types/enum/incident-source.enum.js +0 -4
- package/dist/types/enum/incident-source.enum.js.map +1 -1
- package/dist/types/enum/index.d.ts +8 -0
- package/dist/types/enum/index.js +8 -0
- package/dist/types/enum/index.js.map +1 -1
- package/dist/types/enum/log-emitter.enum.d.ts +4 -0
- package/dist/types/enum/log-emitter.enum.js +9 -0
- package/dist/types/enum/log-emitter.enum.js.map +1 -0
- package/dist/types/enum/monitor-audit-action.enum.d.ts +7 -0
- package/dist/types/enum/monitor-audit-action.enum.js +12 -0
- package/dist/types/enum/monitor-audit-action.enum.js.map +1 -0
- package/dist/types/enum/notification-delivery-kind.enum.d.ts +1 -0
- package/dist/types/enum/notification-delivery-kind.enum.js +1 -0
- package/dist/types/enum/notification-delivery-kind.enum.js.map +1 -1
- package/dist/types/enum/rum-auto-pin-reason-type.enum.d.ts +5 -0
- package/dist/types/enum/rum-auto-pin-reason-type.enum.js +10 -0
- package/dist/types/enum/rum-auto-pin-reason-type.enum.js.map +1 -0
- package/dist/types/enum/rum-erasure-scope.enum.d.ts +3 -0
- package/dist/types/enum/rum-erasure-scope.enum.js +8 -0
- package/dist/types/enum/rum-erasure-scope.enum.js.map +1 -0
- package/dist/types/enum/rum-feedback-status.enum.d.ts +5 -0
- package/dist/types/enum/rum-feedback-status.enum.js +10 -0
- package/dist/types/enum/rum-feedback-status.enum.js.map +1 -0
- package/dist/types/enum/rum-replay-privacy.enum.d.ts +4 -0
- package/dist/types/enum/rum-replay-privacy.enum.js +9 -0
- package/dist/types/enum/rum-replay-privacy.enum.js.map +1 -0
- package/dist/types/enum/rum-stored-budget-policy.enum.d.ts +4 -0
- package/dist/types/enum/rum-stored-budget-policy.enum.js +9 -0
- package/dist/types/enum/rum-stored-budget-policy.enum.js.map +1 -0
- package/dist/types/interface/api/index.d.ts +4 -0
- package/dist/types/interface/api/index.js +4 -0
- package/dist/types/interface/api/index.js.map +1 -1
- package/dist/types/interface/api/requests/alert-rule.request.d.ts +3 -2
- package/dist/types/interface/api/requests/application-cron-task.admin.request.d.ts +7 -0
- package/dist/types/interface/api/requests/application-cron-task.request.d.ts +7 -0
- package/dist/types/interface/api/requests/application-environment-rum.request.d.ts +34 -0
- package/dist/types/interface/api/requests/application-environment-rum.request.js +3 -0
- package/dist/types/interface/api/requests/application-environment-rum.request.js.map +1 -0
- package/dist/types/interface/api/requests/application-log.request.d.ts +3 -1
- package/dist/types/interface/api/requests/application-sentinel.admin.request.d.ts +3 -2
- package/dist/types/interface/api/requests/application-sentinel.request.d.ts +3 -3
- package/dist/types/interface/api/requests/notification-channel.request.d.ts +4 -0
- package/dist/types/interface/api/requests/rum-erasure.request.d.ts +16 -0
- package/dist/types/interface/api/requests/rum-erasure.request.js +3 -0
- package/dist/types/interface/api/requests/rum-erasure.request.js.map +1 -0
- package/dist/types/interface/api/responses/application-environment-rum.response.d.ts +20 -0
- package/dist/types/interface/api/responses/application-environment-rum.response.js +3 -0
- package/dist/types/interface/api/responses/application-environment-rum.response.js.map +1 -0
- package/dist/types/interface/api/responses/rum-erasure.response.d.ts +9 -0
- package/dist/types/interface/api/responses/rum-erasure.response.js +3 -0
- package/dist/types/interface/api/responses/rum-erasure.response.js.map +1 -0
- package/dist/types/interface/dto/application-sentinel-configuration.dto.d.ts +15 -0
- package/dist/types/interface/dto/application-sentinel-configuration.dto.js +12 -1
- package/dist/types/interface/dto/application-sentinel-configuration.dto.js.map +1 -1
- package/dist/types/interface/dto/incident-policy.dto.d.ts +48 -0
- package/dist/types/interface/dto/incident-policy.dto.js +67 -0
- package/dist/types/interface/dto/incident-policy.dto.js.map +1 -0
- package/dist/types/interface/dto/index.d.ts +1 -0
- package/dist/types/interface/dto/index.js +1 -0
- package/dist/types/interface/dto/index.js.map +1 -1
- package/dist/types/interface/index.d.ts +13 -0
- package/dist/types/interface/index.js +13 -0
- package/dist/types/interface/index.js.map +1 -1
- package/dist/types/interface/models/alert-message.model.d.ts +6 -1
- package/dist/types/interface/models/application-cron-task.model.d.ts +6 -0
- package/dist/types/interface/models/application-environment-rum-settings.model.d.ts +25 -0
- package/dist/types/interface/models/application-environment-rum-settings.model.js +5 -0
- package/dist/types/interface/models/application-environment-rum-settings.model.js.map +1 -0
- package/dist/types/interface/models/application-log.model.d.ts +3 -1
- package/dist/types/interface/models/application-sentinel-target.model.d.ts +8 -1
- package/dist/types/interface/models/application-sentinel.model.d.ts +2 -1
- package/dist/types/interface/models/monitor-alert-rule.model.d.ts +2 -0
- package/dist/types/interface/models/monitor-audit-event.model.d.ts +9 -0
- package/dist/types/interface/models/monitor-audit-event.model.js +3 -0
- package/dist/types/interface/models/monitor-audit-event.model.js.map +1 -0
- package/dist/types/interface/models/monitor-incident.model.d.ts +3 -0
- package/dist/types/interface/models/monitor-notification-channel.model.d.ts +2 -0
- package/dist/types/interface/models/rum-action.model.d.ts +13 -0
- package/dist/types/interface/models/rum-action.model.js +3 -0
- package/dist/types/interface/models/rum-action.model.js.map +1 -0
- package/dist/types/interface/models/rum-console-event.model.d.ts +13 -0
- package/dist/types/interface/models/rum-console-event.model.js +3 -0
- package/dist/types/interface/models/rum-console-event.model.js.map +1 -0
- package/dist/types/interface/models/rum-csp-violation.model.d.ts +16 -0
- package/dist/types/interface/models/rum-csp-violation.model.js +3 -0
- package/dist/types/interface/models/rum-csp-violation.model.js.map +1 -0
- package/dist/types/interface/models/rum-custom-timing.model.d.ts +16 -0
- package/dist/types/interface/models/rum-custom-timing.model.js +3 -0
- package/dist/types/interface/models/rum-custom-timing.model.js.map +1 -0
- package/dist/types/interface/models/rum-feedback.model.d.ts +15 -0
- package/dist/types/interface/models/rum-feedback.model.js +3 -0
- package/dist/types/interface/models/rum-feedback.model.js.map +1 -0
- package/dist/types/interface/models/rum-page-view.model.d.ts +31 -0
- package/dist/types/interface/models/rum-page-view.model.js +3 -0
- package/dist/types/interface/models/rum-page-view.model.js.map +1 -0
- package/dist/types/interface/models/rum-request.model.d.ts +36 -0
- package/dist/types/interface/models/rum-request.model.js +3 -0
- package/dist/types/interface/models/rum-request.model.js.map +1 -0
- package/dist/types/interface/models/rum-saved-view.model.d.ts +10 -0
- package/dist/types/interface/models/rum-saved-view.model.js +3 -0
- package/dist/types/interface/models/rum-saved-view.model.js.map +1 -0
- package/dist/types/interface/models/rum-session.model.d.ts +41 -0
- package/dist/types/interface/models/rum-session.model.js +3 -0
- package/dist/types/interface/models/rum-session.model.js.map +1 -0
- package/dist/types/interface/models/rum-socket-message.model.d.ts +19 -0
- package/dist/types/interface/models/rum-socket-message.model.js +3 -0
- package/dist/types/interface/models/rum-socket-message.model.js.map +1 -0
- package/dist/types/interface/models/source-map-artifact.model.d.ts +10 -0
- package/dist/types/interface/models/source-map-artifact.model.js +3 -0
- package/dist/types/interface/models/source-map-artifact.model.js.map +1 -0
- package/package.json +23 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rum-erasure.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/rum-erasure.response.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { ApplicationSentinelType } from '../../enum/application-sentinel-type.enum';
|
|
2
2
|
import { APIMethod } from '../../enum';
|
|
3
3
|
export declare const MAX_APPLICATION_SENTINEL_RETRY_COUNT = 5;
|
|
4
|
+
export declare const APPLICATION_SENTINEL_TIMEOUT_MS_MIN = 1000;
|
|
5
|
+
export declare const APPLICATION_SENTINEL_TIMEOUT_MS_MAX = 30000;
|
|
6
|
+
export declare const APPLICATION_SENTINEL_SSL_WARNING_DAYS_MAX = 90;
|
|
7
|
+
export declare const APPLICATION_SENTINEL_SSL_WARNING_DAYS_DEFAULT = 30;
|
|
8
|
+
export declare const APPLICATION_SENTINEL_SSL_CRITICAL_DAYS_DEFAULT = 7;
|
|
9
|
+
export declare const APPLICATION_SENTINEL_PROBE_DEFAULTS: Readonly<Record<ApplicationSentinelType, ApplicationSentinelProbePolicy>>;
|
|
10
|
+
export type ApplicationSentinelProbePolicy = {
|
|
11
|
+
timeoutMs: number;
|
|
12
|
+
retryCount: number;
|
|
13
|
+
};
|
|
4
14
|
export declare const APPLICATION_SENTINEL_HEADER_MASK = "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022";
|
|
5
15
|
export type ApplicationSentinelLatencyPolicy = {
|
|
6
16
|
max: number;
|
|
@@ -9,6 +19,7 @@ export type ApplicationSentinelLatencyPolicy = {
|
|
|
9
19
|
export type ApplicationSentinelConfigurationDto = ApplicationSentinelConfigurationPing | ApplicationSentinelConfigurationHttp | ApplicationSentinelConfigurationTcp;
|
|
10
20
|
export type ApplicationSentinelConfigurationPing = {
|
|
11
21
|
type: ApplicationSentinelType.PING;
|
|
22
|
+
probe: ApplicationSentinelProbePolicy;
|
|
12
23
|
successPolicy: {
|
|
13
24
|
latency: ApplicationSentinelLatencyPolicy;
|
|
14
25
|
};
|
|
@@ -16,9 +27,12 @@ export type ApplicationSentinelConfigurationPing = {
|
|
|
16
27
|
export type ApplicationSentinelConfigurationHttp = {
|
|
17
28
|
type: ApplicationSentinelType.HTTP;
|
|
18
29
|
method: APIMethod;
|
|
30
|
+
probe: ApplicationSentinelProbePolicy;
|
|
19
31
|
sslVerification: {
|
|
20
32
|
enabled: boolean;
|
|
21
33
|
allowSelfSigned: boolean;
|
|
34
|
+
warningDays: number;
|
|
35
|
+
criticalDays: number;
|
|
22
36
|
};
|
|
23
37
|
successPolicy: {
|
|
24
38
|
latency: ApplicationSentinelLatencyPolicy;
|
|
@@ -32,6 +46,7 @@ export type ApplicationSentinelConfigurationHttp = {
|
|
|
32
46
|
};
|
|
33
47
|
export type ApplicationSentinelConfigurationTcp = {
|
|
34
48
|
type: ApplicationSentinelType.TCP;
|
|
49
|
+
probe: ApplicationSentinelProbePolicy;
|
|
35
50
|
successPolicy: {
|
|
36
51
|
latency: ApplicationSentinelLatencyPolicy;
|
|
37
52
|
};
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.APPLICATION_SENTINEL_HEADER_MASK = exports.MAX_APPLICATION_SENTINEL_RETRY_COUNT = void 0;
|
|
3
|
+
exports.APPLICATION_SENTINEL_HEADER_MASK = exports.APPLICATION_SENTINEL_PROBE_DEFAULTS = exports.APPLICATION_SENTINEL_SSL_CRITICAL_DAYS_DEFAULT = exports.APPLICATION_SENTINEL_SSL_WARNING_DAYS_DEFAULT = exports.APPLICATION_SENTINEL_SSL_WARNING_DAYS_MAX = exports.APPLICATION_SENTINEL_TIMEOUT_MS_MAX = exports.APPLICATION_SENTINEL_TIMEOUT_MS_MIN = exports.MAX_APPLICATION_SENTINEL_RETRY_COUNT = void 0;
|
|
4
|
+
const application_sentinel_type_enum_1 = require("../../enum/application-sentinel-type.enum");
|
|
4
5
|
exports.MAX_APPLICATION_SENTINEL_RETRY_COUNT = 5;
|
|
6
|
+
exports.APPLICATION_SENTINEL_TIMEOUT_MS_MIN = 1_000;
|
|
7
|
+
exports.APPLICATION_SENTINEL_TIMEOUT_MS_MAX = 30_000;
|
|
8
|
+
exports.APPLICATION_SENTINEL_SSL_WARNING_DAYS_MAX = 90;
|
|
9
|
+
exports.APPLICATION_SENTINEL_SSL_WARNING_DAYS_DEFAULT = 30;
|
|
10
|
+
exports.APPLICATION_SENTINEL_SSL_CRITICAL_DAYS_DEFAULT = 7;
|
|
11
|
+
exports.APPLICATION_SENTINEL_PROBE_DEFAULTS = Object.freeze({
|
|
12
|
+
[application_sentinel_type_enum_1.ApplicationSentinelType.HTTP]: { timeoutMs: 30_000, retryCount: 3 },
|
|
13
|
+
[application_sentinel_type_enum_1.ApplicationSentinelType.PING]: { timeoutMs: 10_000, retryCount: 4 },
|
|
14
|
+
[application_sentinel_type_enum_1.ApplicationSentinelType.TCP]: { timeoutMs: 10_000, retryCount: 4 },
|
|
15
|
+
});
|
|
5
16
|
exports.APPLICATION_SENTINEL_HEADER_MASK = '••••••••';
|
|
6
17
|
//# sourceMappingURL=application-sentinel-configuration.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-sentinel-configuration.dto.js","sourceRoot":"","sources":["../../../../src/types/interface/dto/application-sentinel-configuration.dto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"application-sentinel-configuration.dto.js","sourceRoot":"","sources":["../../../../src/types/interface/dto/application-sentinel-configuration.dto.ts"],"names":[],"mappings":";;;AAAA,8FAAoF;AAGvE,QAAA,oCAAoC,GAAG,CAAC,CAAC;AACzC,QAAA,mCAAmC,GAAG,KAAK,CAAC;AAC5C,QAAA,mCAAmC,GAAG,MAAM,CAAC;AAC7C,QAAA,yCAAyC,GAAG,EAAE,CAAC;AAC/C,QAAA,6CAA6C,GAAG,EAAE,CAAC;AACnD,QAAA,8CAA8C,GAAG,CAAC,CAAC;AAGnD,QAAA,mCAAmC,GAE5C,MAAM,CAAC,MAAM,CAAC;IAChB,CAAC,wDAAuB,CAAC,IAAI,CAAC,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE;IACpE,CAAC,wDAAuB,CAAC,IAAI,CAAC,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE;IACpE,CAAC,wDAAuB,CAAC,GAAG,CAAC,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE;CACpE,CAAC,CAAC;AAsBU,QAAA,gCAAgC,GAAG,UAAU,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { IncidentSeverity } from '../../enum/incident-severity.enum';
|
|
2
|
+
export type IncidentStreakPolicy = {
|
|
3
|
+
openAfter: number | null;
|
|
4
|
+
escalateAfter: number | null;
|
|
5
|
+
resolveAfter: number;
|
|
6
|
+
};
|
|
7
|
+
export type IncidentPolicy = IncidentStreakPolicy & {
|
|
8
|
+
severity: IncidentSeverity;
|
|
9
|
+
};
|
|
10
|
+
export type CronTaskIncidentPolicy = IncidentPolicy & {
|
|
11
|
+
disableAfter: number | null;
|
|
12
|
+
};
|
|
13
|
+
export declare const INCIDENT_POLICY_STREAK_MIN = 1;
|
|
14
|
+
export declare const INCIDENT_POLICY_STREAK_MAX = 100;
|
|
15
|
+
export declare const DEFAULT_INCIDENT_STREAK_POLICY: Readonly<IncidentStreakPolicy>;
|
|
16
|
+
export declare const DEFAULT_INCIDENT_POLICY: Readonly<IncidentPolicy>;
|
|
17
|
+
export declare const DEFAULT_CRON_TASK_INCIDENT_POLICY: Readonly<CronTaskIncidentPolicy>;
|
|
18
|
+
export declare enum IncidentPolicyViolation {
|
|
19
|
+
OPEN_AFTER_OUT_OF_RANGE = "OPEN_AFTER_OUT_OF_RANGE",
|
|
20
|
+
ESCALATE_AFTER_OUT_OF_RANGE = "ESCALATE_AFTER_OUT_OF_RANGE",
|
|
21
|
+
ESCALATE_AFTER_BEFORE_OPEN_AFTER = "ESCALATE_AFTER_BEFORE_OPEN_AFTER",
|
|
22
|
+
ESCALATE_FROM_CRITICAL = "ESCALATE_FROM_CRITICAL",
|
|
23
|
+
RESOLVE_AFTER_OUT_OF_RANGE = "RESOLVE_AFTER_OUT_OF_RANGE",
|
|
24
|
+
DISABLE_AFTER_OUT_OF_RANGE = "DISABLE_AFTER_OUT_OF_RANGE"
|
|
25
|
+
}
|
|
26
|
+
export declare const incidentPolicyViolations: (policy: IncidentStreakPolicy | CronTaskIncidentPolicy, severity: IncidentSeverity) => IncidentPolicyViolation[];
|
|
27
|
+
export interface IIncidentStreak {
|
|
28
|
+
consecutiveFailures: number;
|
|
29
|
+
consecutiveSuccesses: number;
|
|
30
|
+
}
|
|
31
|
+
export interface IOpenIncidentSummary {
|
|
32
|
+
id: string;
|
|
33
|
+
number: number;
|
|
34
|
+
severity: IncidentSeverity;
|
|
35
|
+
startedAt: Date;
|
|
36
|
+
lastSeenAt: Date;
|
|
37
|
+
lastDetail: string | null;
|
|
38
|
+
}
|
|
39
|
+
export declare const CRON_TASK_TIMEOUT_MS_MIN = 1000;
|
|
40
|
+
export declare const CRON_TASK_TIMEOUT_MS_MAX = 60000;
|
|
41
|
+
export declare const CRON_TASK_TIMEOUT_MS_DEFAULT = 8000;
|
|
42
|
+
export declare const CRON_TASK_RETRY_COUNT_MAX = 5;
|
|
43
|
+
export declare const CRON_TASK_RETRY_COUNT_DEFAULT = 5;
|
|
44
|
+
export declare const CHANNEL_REMINDER_BASE_MINUTES_MIN = 15;
|
|
45
|
+
export declare const CHANNEL_REMINDER_BASE_MINUTES_MAX = 1440;
|
|
46
|
+
export declare const CHANNEL_REMINDER_BASE_MINUTES_DEFAULT = 60;
|
|
47
|
+
export declare const CHANNEL_REMINDER_MAX_MINUTES_MAX = 10080;
|
|
48
|
+
export declare const CHANNEL_REMINDER_MAX_MINUTES_DEFAULT = 1440;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CHANNEL_REMINDER_MAX_MINUTES_DEFAULT = exports.CHANNEL_REMINDER_MAX_MINUTES_MAX = exports.CHANNEL_REMINDER_BASE_MINUTES_DEFAULT = exports.CHANNEL_REMINDER_BASE_MINUTES_MAX = exports.CHANNEL_REMINDER_BASE_MINUTES_MIN = exports.CRON_TASK_RETRY_COUNT_DEFAULT = exports.CRON_TASK_RETRY_COUNT_MAX = exports.CRON_TASK_TIMEOUT_MS_DEFAULT = exports.CRON_TASK_TIMEOUT_MS_MAX = exports.CRON_TASK_TIMEOUT_MS_MIN = exports.incidentPolicyViolations = exports.IncidentPolicyViolation = exports.DEFAULT_CRON_TASK_INCIDENT_POLICY = exports.DEFAULT_INCIDENT_POLICY = exports.DEFAULT_INCIDENT_STREAK_POLICY = exports.INCIDENT_POLICY_STREAK_MAX = exports.INCIDENT_POLICY_STREAK_MIN = void 0;
|
|
4
|
+
const incident_severity_enum_1 = require("../../enum/incident-severity.enum");
|
|
5
|
+
exports.INCIDENT_POLICY_STREAK_MIN = 1;
|
|
6
|
+
exports.INCIDENT_POLICY_STREAK_MAX = 100;
|
|
7
|
+
exports.DEFAULT_INCIDENT_STREAK_POLICY = Object.freeze({
|
|
8
|
+
openAfter: 1,
|
|
9
|
+
escalateAfter: 5,
|
|
10
|
+
resolveAfter: 1,
|
|
11
|
+
});
|
|
12
|
+
exports.DEFAULT_INCIDENT_POLICY = Object.freeze({
|
|
13
|
+
...exports.DEFAULT_INCIDENT_STREAK_POLICY,
|
|
14
|
+
severity: incident_severity_enum_1.IncidentSeverity.WARNING,
|
|
15
|
+
});
|
|
16
|
+
exports.DEFAULT_CRON_TASK_INCIDENT_POLICY = Object.freeze({
|
|
17
|
+
...exports.DEFAULT_INCIDENT_POLICY,
|
|
18
|
+
disableAfter: null,
|
|
19
|
+
});
|
|
20
|
+
var IncidentPolicyViolation;
|
|
21
|
+
(function (IncidentPolicyViolation) {
|
|
22
|
+
IncidentPolicyViolation["OPEN_AFTER_OUT_OF_RANGE"] = "OPEN_AFTER_OUT_OF_RANGE";
|
|
23
|
+
IncidentPolicyViolation["ESCALATE_AFTER_OUT_OF_RANGE"] = "ESCALATE_AFTER_OUT_OF_RANGE";
|
|
24
|
+
IncidentPolicyViolation["ESCALATE_AFTER_BEFORE_OPEN_AFTER"] = "ESCALATE_AFTER_BEFORE_OPEN_AFTER";
|
|
25
|
+
IncidentPolicyViolation["ESCALATE_FROM_CRITICAL"] = "ESCALATE_FROM_CRITICAL";
|
|
26
|
+
IncidentPolicyViolation["RESOLVE_AFTER_OUT_OF_RANGE"] = "RESOLVE_AFTER_OUT_OF_RANGE";
|
|
27
|
+
IncidentPolicyViolation["DISABLE_AFTER_OUT_OF_RANGE"] = "DISABLE_AFTER_OUT_OF_RANGE";
|
|
28
|
+
})(IncidentPolicyViolation || (exports.IncidentPolicyViolation = IncidentPolicyViolation = {}));
|
|
29
|
+
const isStreak = (value) => Number.isInteger(value) &&
|
|
30
|
+
value >= exports.INCIDENT_POLICY_STREAK_MIN &&
|
|
31
|
+
value <= exports.INCIDENT_POLICY_STREAK_MAX;
|
|
32
|
+
const incidentPolicyViolations = (policy, severity) => {
|
|
33
|
+
const violations = [];
|
|
34
|
+
if (policy.openAfter !== null && !isStreak(policy.openAfter)) {
|
|
35
|
+
violations.push(IncidentPolicyViolation.OPEN_AFTER_OUT_OF_RANGE);
|
|
36
|
+
}
|
|
37
|
+
if (policy.escalateAfter !== null) {
|
|
38
|
+
if (!isStreak(policy.escalateAfter)) {
|
|
39
|
+
violations.push(IncidentPolicyViolation.ESCALATE_AFTER_OUT_OF_RANGE);
|
|
40
|
+
}
|
|
41
|
+
else if (policy.openAfter !== null && policy.escalateAfter < policy.openAfter) {
|
|
42
|
+
violations.push(IncidentPolicyViolation.ESCALATE_AFTER_BEFORE_OPEN_AFTER);
|
|
43
|
+
}
|
|
44
|
+
if (severity === incident_severity_enum_1.IncidentSeverity.CRITICAL) {
|
|
45
|
+
violations.push(IncidentPolicyViolation.ESCALATE_FROM_CRITICAL);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
if (!isStreak(policy.resolveAfter)) {
|
|
49
|
+
violations.push(IncidentPolicyViolation.RESOLVE_AFTER_OUT_OF_RANGE);
|
|
50
|
+
}
|
|
51
|
+
if ('disableAfter' in policy && policy.disableAfter !== null && !isStreak(policy.disableAfter)) {
|
|
52
|
+
violations.push(IncidentPolicyViolation.DISABLE_AFTER_OUT_OF_RANGE);
|
|
53
|
+
}
|
|
54
|
+
return violations;
|
|
55
|
+
};
|
|
56
|
+
exports.incidentPolicyViolations = incidentPolicyViolations;
|
|
57
|
+
exports.CRON_TASK_TIMEOUT_MS_MIN = 1_000;
|
|
58
|
+
exports.CRON_TASK_TIMEOUT_MS_MAX = 60_000;
|
|
59
|
+
exports.CRON_TASK_TIMEOUT_MS_DEFAULT = 8_000;
|
|
60
|
+
exports.CRON_TASK_RETRY_COUNT_MAX = 5;
|
|
61
|
+
exports.CRON_TASK_RETRY_COUNT_DEFAULT = 5;
|
|
62
|
+
exports.CHANNEL_REMINDER_BASE_MINUTES_MIN = 15;
|
|
63
|
+
exports.CHANNEL_REMINDER_BASE_MINUTES_MAX = 1_440;
|
|
64
|
+
exports.CHANNEL_REMINDER_BASE_MINUTES_DEFAULT = 60;
|
|
65
|
+
exports.CHANNEL_REMINDER_MAX_MINUTES_MAX = 10_080;
|
|
66
|
+
exports.CHANNEL_REMINDER_MAX_MINUTES_DEFAULT = 1_440;
|
|
67
|
+
//# sourceMappingURL=incident-policy.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"incident-policy.dto.js","sourceRoot":"","sources":["../../../../src/types/interface/dto/incident-policy.dto.ts"],"names":[],"mappings":"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"}
|
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./webhook.dto"), exports);
|
|
18
18
|
__exportStar(require("./application-sentinel-configuration.dto"), exports);
|
|
19
|
+
__exportStar(require("./incident-policy.dto"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/interface/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,2EAAyD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/interface/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,2EAAyD;AACzD,wDAAsC"}
|
|
@@ -25,6 +25,19 @@ export * from './models/monitor-warning.model';
|
|
|
25
25
|
export * from './models/monitor-error-group.model';
|
|
26
26
|
export * from './models/monitor-error-report-export.model';
|
|
27
27
|
export * from './models/alert-message.model';
|
|
28
|
+
export * from './models/application-environment-rum-settings.model';
|
|
29
|
+
export * from './models/rum-session.model';
|
|
30
|
+
export * from './models/rum-page-view.model';
|
|
31
|
+
export * from './models/rum-request.model';
|
|
32
|
+
export * from './models/rum-console-event.model';
|
|
33
|
+
export * from './models/rum-action.model';
|
|
34
|
+
export * from './models/rum-custom-timing.model';
|
|
35
|
+
export * from './models/rum-csp-violation.model';
|
|
36
|
+
export * from './models/rum-socket-message.model';
|
|
37
|
+
export * from './models/rum-feedback.model';
|
|
38
|
+
export * from './models/rum-saved-view.model';
|
|
39
|
+
export * from './models/source-map-artifact.model';
|
|
40
|
+
export * from './models/monitor-audit-event.model';
|
|
28
41
|
export * from './api';
|
|
29
42
|
export * from './dto';
|
|
30
43
|
export * from './rate-limit';
|
|
@@ -41,6 +41,19 @@ __exportStar(require("./models/monitor-warning.model"), exports);
|
|
|
41
41
|
__exportStar(require("./models/monitor-error-group.model"), exports);
|
|
42
42
|
__exportStar(require("./models/monitor-error-report-export.model"), exports);
|
|
43
43
|
__exportStar(require("./models/alert-message.model"), exports);
|
|
44
|
+
__exportStar(require("./models/application-environment-rum-settings.model"), exports);
|
|
45
|
+
__exportStar(require("./models/rum-session.model"), exports);
|
|
46
|
+
__exportStar(require("./models/rum-page-view.model"), exports);
|
|
47
|
+
__exportStar(require("./models/rum-request.model"), exports);
|
|
48
|
+
__exportStar(require("./models/rum-console-event.model"), exports);
|
|
49
|
+
__exportStar(require("./models/rum-action.model"), exports);
|
|
50
|
+
__exportStar(require("./models/rum-custom-timing.model"), exports);
|
|
51
|
+
__exportStar(require("./models/rum-csp-violation.model"), exports);
|
|
52
|
+
__exportStar(require("./models/rum-socket-message.model"), exports);
|
|
53
|
+
__exportStar(require("./models/rum-feedback.model"), exports);
|
|
54
|
+
__exportStar(require("./models/rum-saved-view.model"), exports);
|
|
55
|
+
__exportStar(require("./models/source-map-artifact.model"), exports);
|
|
56
|
+
__exportStar(require("./models/monitor-audit-event.model"), exports);
|
|
44
57
|
__exportStar(require("./api"), exports);
|
|
45
58
|
__exportStar(require("./dto"), exports);
|
|
46
59
|
__exportStar(require("./rate-limit"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/interface/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,yEAAuD;AACvD,sDAAoC;AACpC,mEAAiD;AACjD,iEAA+C;AAC/C,0EAAwD;AACxD,uEAAqD;AACrD,+EAA6D;AAC7D,mEAAiD;AACjD,qEAAmD;AACnD,6EAA2D;AAC3D,sEAAoD;AACpD,6EAA2D;AAC3D,8EAA4D;AAC5D,gFAA8D;AAC9D,8EAA4D;AAC5D,4EAA0D;AAC1D,mEAAiD;AACjD,iEAA+C;AAC/C,kEAAgD;AAChD,oEAAkD;AAClD,8EAA4D;AAC5D,+EAA6D;AAC7D,iEAA+C;AAC/C,qEAAmD;AACnD,6EAA2D;AAC3D,+DAA6C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/interface/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,yEAAuD;AACvD,sDAAoC;AACpC,mEAAiD;AACjD,iEAA+C;AAC/C,0EAAwD;AACxD,uEAAqD;AACrD,+EAA6D;AAC7D,mEAAiD;AACjD,qEAAmD;AACnD,6EAA2D;AAC3D,sEAAoD;AACpD,6EAA2D;AAC3D,8EAA4D;AAC5D,gFAA8D;AAC9D,8EAA4D;AAC5D,4EAA0D;AAC1D,mEAAiD;AACjD,iEAA+C;AAC/C,kEAAgD;AAChD,oEAAkD;AAClD,8EAA4D;AAC5D,+EAA6D;AAC7D,iEAA+C;AAC/C,qEAAmD;AACnD,6EAA2D;AAC3D,+DAA6C;AAC7C,sFAAoE;AACpE,6DAA2C;AAC3C,+DAA6C;AAC7C,6DAA2C;AAC3C,mEAAiD;AACjD,4DAA0C;AAC1C,mEAAiD;AACjD,mEAAiD;AACjD,oEAAkD;AAClD,8DAA4C;AAC5C,gEAA8C;AAC9C,qEAAmD;AACnD,qEAAmD;AAGnD,wCAAsB;AACtB,wCAAsB;AACtB,+CAA6B;AAC7B,mDAAiC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AlertMessageSeverity } from '../../enum';
|
|
1
|
+
import { AlertMessageSeverity, IncidentSeverity } from '../../enum';
|
|
2
2
|
export interface IAlertMessageFact {
|
|
3
3
|
label: string;
|
|
4
4
|
value: string;
|
|
@@ -12,6 +12,10 @@ export interface IAlertMessageTruncation {
|
|
|
12
12
|
originalLength: number;
|
|
13
13
|
truncatedLength: number;
|
|
14
14
|
}
|
|
15
|
+
export interface IAlertMessageEscalation {
|
|
16
|
+
from: IncidentSeverity;
|
|
17
|
+
to: IncidentSeverity;
|
|
18
|
+
}
|
|
15
19
|
export interface IAlertMessage {
|
|
16
20
|
severity: AlertMessageSeverity;
|
|
17
21
|
title: string;
|
|
@@ -21,4 +25,5 @@ export interface IAlertMessage {
|
|
|
21
25
|
fallbackText: string;
|
|
22
26
|
truncations: IAlertMessageTruncation[];
|
|
23
27
|
ref: string;
|
|
28
|
+
escalation?: IAlertMessageEscalation;
|
|
24
29
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CronTaskIncidentPolicy, IIncidentStreak, IOpenIncidentSummary } from '../dto/incident-policy.dto';
|
|
1
2
|
import { IApplication } from './application.model';
|
|
2
3
|
export interface IApplicationCronTask {
|
|
3
4
|
id?: string;
|
|
@@ -8,6 +9,11 @@ export interface IApplicationCronTask {
|
|
|
8
9
|
webhookUrl: string;
|
|
9
10
|
webhookSecret: string;
|
|
10
11
|
isActivated: boolean;
|
|
12
|
+
incidentPolicy: CronTaskIncidentPolicy;
|
|
13
|
+
timeoutMs: number;
|
|
14
|
+
retryCount: number;
|
|
15
|
+
incidentStreak?: IIncidentStreak;
|
|
16
|
+
openIncident?: IOpenIncidentSummary | null;
|
|
11
17
|
enqueueFailures?: number;
|
|
12
18
|
lastExecutedAt: Date | null;
|
|
13
19
|
updatedAt?: Date;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { RumReplayPrivacy, RumStoredBudgetPolicy } from '../../enum';
|
|
2
|
+
import { IApplicationEnvironment } from './application-environment.model';
|
|
3
|
+
export declare const RUM_SESSION_MAX_STORED_BYTES_DEFAULT: number;
|
|
4
|
+
export interface IApplicationEnvironmentRumSettings {
|
|
5
|
+
applicationEnvironmentId: string;
|
|
6
|
+
enabled: boolean;
|
|
7
|
+
publicRumToken: string;
|
|
8
|
+
allowedOrigins: string[];
|
|
9
|
+
sessionSampleRate: number;
|
|
10
|
+
replayEnabled: boolean;
|
|
11
|
+
replaySampleRate: number;
|
|
12
|
+
replayUnmaskSelectors: string[];
|
|
13
|
+
replayDefaultPrivacy: RumReplayPrivacy;
|
|
14
|
+
feedbackEnabled: boolean;
|
|
15
|
+
socketMessagesEnabled: boolean;
|
|
16
|
+
sessionMaxStoredBytes: number;
|
|
17
|
+
storedBudgetBytes: number | null;
|
|
18
|
+
storedBudgetPolicy: RumStoredBudgetPolicy;
|
|
19
|
+
autoPinOnOpenIncident: boolean;
|
|
20
|
+
autoPinOnUnresolvedErrorGroup: boolean;
|
|
21
|
+
autoPinOnFeedback: boolean;
|
|
22
|
+
createdAt?: Date;
|
|
23
|
+
updatedAt?: Date;
|
|
24
|
+
applicationEnvironment?: IApplicationEnvironment;
|
|
25
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RUM_SESSION_MAX_STORED_BYTES_DEFAULT = void 0;
|
|
4
|
+
exports.RUM_SESSION_MAX_STORED_BYTES_DEFAULT = 20 * 1024 * 1024;
|
|
5
|
+
//# sourceMappingURL=application-environment-rum-settings.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application-environment-rum-settings.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/application-environment-rum-settings.model.ts"],"names":[],"mappings":";;;AAIa,QAAA,oCAAoC,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApplicationLogOrigin, LogLevel } from '../../enum';
|
|
1
|
+
import { ApplicationLogOrigin, LogEmitter, LogLevel } from '../../enum';
|
|
2
2
|
import { IApplicationEvent } from './application-event.model';
|
|
3
3
|
import { IApplicationLogEndpoint } from './application-log-endpoint.model';
|
|
4
4
|
import { IApplication } from './application.model';
|
|
@@ -20,6 +20,8 @@ export interface IApplicationLog {
|
|
|
20
20
|
release?: string | null;
|
|
21
21
|
actorKey?: string | null;
|
|
22
22
|
fingerprint?: string | null;
|
|
23
|
+
emitter?: LogEmitter;
|
|
24
|
+
sessionId?: string | null;
|
|
23
25
|
expiresAt?: Date | null;
|
|
24
26
|
updatedAt?: Date;
|
|
25
27
|
createdAt?: Date;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IIncidentStreak, IOpenIncidentSummary } from '../dto/incident-policy.dto';
|
|
1
2
|
import { IApplicationSentinel } from './application-sentinel.model';
|
|
2
3
|
export interface IApplicationSentinelTarget {
|
|
3
4
|
id: string;
|
|
@@ -8,7 +9,13 @@ export interface IApplicationSentinelTarget {
|
|
|
8
9
|
port?: number | null;
|
|
9
10
|
headers?: Record<string, string> | null;
|
|
10
11
|
isActivated: boolean;
|
|
11
|
-
|
|
12
|
+
incidentStreak?: IIncidentStreak;
|
|
13
|
+
openIncident?: IOpenIncidentSummary | null;
|
|
14
|
+
certificate?: {
|
|
15
|
+
expiresAt: Date | null;
|
|
16
|
+
isSelfSigned: boolean;
|
|
17
|
+
checkedAt: Date;
|
|
18
|
+
} | null;
|
|
12
19
|
enqueueFailures?: number;
|
|
13
20
|
lastCheckedAt: Date | null;
|
|
14
21
|
createdAt?: Date;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ApplicationSentinelConfigurationDto } from '../dto/application-sentinel-configuration.dto';
|
|
2
|
+
import { IncidentPolicy } from '../dto/incident-policy.dto';
|
|
2
3
|
import { IApplicationSentinelHistory } from './application-sentinel-history.model';
|
|
3
4
|
import { IApplicationSentinelTarget } from './application-sentinel-target.model';
|
|
4
5
|
import { IApplication } from './application.model';
|
|
@@ -8,7 +9,7 @@ export interface IApplicationSentinel {
|
|
|
8
9
|
description: string | null;
|
|
9
10
|
isActivated: boolean;
|
|
10
11
|
applicationId: string;
|
|
11
|
-
|
|
12
|
+
incidentPolicy: IncidentPolicy;
|
|
12
13
|
webhookMetadata: Record<string, string>;
|
|
13
14
|
scheduleConfiguration: string;
|
|
14
15
|
configuration: ApplicationSentinelConfigurationDto;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IncidentStreakPolicy } from '../dto/incident-policy.dto';
|
|
1
2
|
import type { IAlertRuleCondition } from '../../../rules/condition.types';
|
|
2
3
|
import { AlertRuleEvaluation, AlertRuleGroupBy, AlertRuleMode, ErrorGroupEvent, IncidentSeverity, LogLevel } from '../../enum';
|
|
3
4
|
export interface IMonitorAlertRuleFilter {
|
|
@@ -25,6 +26,7 @@ export interface IMonitorAlertRule {
|
|
|
25
26
|
groupBy: AlertRuleGroupBy[];
|
|
26
27
|
severity: IncidentSeverity;
|
|
27
28
|
channelIds: string[] | null;
|
|
29
|
+
incidentPolicy: IncidentStreakPolicy | null;
|
|
28
30
|
eventBudgetPerMinute: number | null;
|
|
29
31
|
lastEvaluatedAt: Date | null;
|
|
30
32
|
createdAt?: Date;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitor-audit-event.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/monitor-audit-event.model.ts"],"names":[],"mappings":""}
|
|
@@ -17,6 +17,9 @@ export interface IMonitorIncident {
|
|
|
17
17
|
endedAt: Date | null;
|
|
18
18
|
durationMs: number | null;
|
|
19
19
|
occurrenceCount: number;
|
|
20
|
+
relapseCount: number;
|
|
21
|
+
lastDetail: string | null;
|
|
22
|
+
recoveryNotifiedAt: Date | null;
|
|
20
23
|
assignedToUserId: string | null;
|
|
21
24
|
acknowledgedAt: Date | null;
|
|
22
25
|
acknowledgedByUserId: string | null;
|
|
@@ -17,6 +17,8 @@ export interface IMonitorNotificationChannel {
|
|
|
17
17
|
filters: IMonitorNotificationChannelFilters;
|
|
18
18
|
budgetPerHour: number;
|
|
19
19
|
windowSteps: number[];
|
|
20
|
+
reminderBaseMinutes: number | null;
|
|
21
|
+
reminderMaxMinutes: number | null;
|
|
20
22
|
disabledReason: NotificationFailureClass | null;
|
|
21
23
|
disabledAt: Date | null;
|
|
22
24
|
createdAt?: Date;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RumAttributeValues } from '../../../rum/rum-batch.types';
|
|
2
|
+
export interface IRumAction {
|
|
3
|
+
id: string;
|
|
4
|
+
dateValue: Date;
|
|
5
|
+
applicationId: string;
|
|
6
|
+
environment: string;
|
|
7
|
+
sessionId: string;
|
|
8
|
+
pageViewId: string | null;
|
|
9
|
+
name: string;
|
|
10
|
+
attributes: RumAttributeValues;
|
|
11
|
+
occurredAt: Date;
|
|
12
|
+
createdAt?: Date;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rum-action.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/rum-action.model.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RumConsoleLevel } from '../../../rum/rum.enums';
|
|
2
|
+
export interface IRumConsoleEventRecord {
|
|
3
|
+
id: string;
|
|
4
|
+
dateValue: Date;
|
|
5
|
+
applicationId: string;
|
|
6
|
+
environment: string;
|
|
7
|
+
sessionId: string;
|
|
8
|
+
pageViewId: string | null;
|
|
9
|
+
occurredAt: Date;
|
|
10
|
+
level: RumConsoleLevel;
|
|
11
|
+
message: string;
|
|
12
|
+
createdAt?: Date;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rum-console-event.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/rum-console-event.model.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RumCspDisposition } from '../../../rum/rum.enums';
|
|
2
|
+
export interface IRumCspViolation {
|
|
3
|
+
id: string;
|
|
4
|
+
dateValue: Date;
|
|
5
|
+
applicationId: string;
|
|
6
|
+
environment: string;
|
|
7
|
+
sessionId: string;
|
|
8
|
+
pageViewId: string | null;
|
|
9
|
+
occurredAt: Date;
|
|
10
|
+
effectiveDirective: string;
|
|
11
|
+
blockedUri: string | null;
|
|
12
|
+
sourceFile: string | null;
|
|
13
|
+
lineNumber: number | null;
|
|
14
|
+
disposition: RumCspDisposition;
|
|
15
|
+
createdAt?: Date;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rum-csp-violation.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/rum-csp-violation.model.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RumAttributeValues } from '../../../rum/rum-batch.types';
|
|
2
|
+
import { RumTimingKind } from '../../../rum/rum.enums';
|
|
3
|
+
export interface IRumCustomTiming {
|
|
4
|
+
id: string;
|
|
5
|
+
dateValue: Date;
|
|
6
|
+
applicationId: string;
|
|
7
|
+
environment: string;
|
|
8
|
+
sessionId: string;
|
|
9
|
+
pageViewId: string;
|
|
10
|
+
name: string;
|
|
11
|
+
kind: RumTimingKind;
|
|
12
|
+
valueMs: number;
|
|
13
|
+
attributes: RumAttributeValues;
|
|
14
|
+
occurredAt: Date;
|
|
15
|
+
createdAt?: Date;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rum-custom-timing.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/rum-custom-timing.model.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RumFeedbackStatus } from '../../enum';
|
|
2
|
+
export interface IRumFeedback {
|
|
3
|
+
id: string;
|
|
4
|
+
dateValue: Date;
|
|
5
|
+
applicationId: string;
|
|
6
|
+
environment: string;
|
|
7
|
+
sessionId: string;
|
|
8
|
+
offsetMs: number;
|
|
9
|
+
message: string;
|
|
10
|
+
email: string | null;
|
|
11
|
+
route: string;
|
|
12
|
+
status: RumFeedbackStatus;
|
|
13
|
+
createdAt?: Date;
|
|
14
|
+
updatedAt?: Date;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rum-feedback.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/rum-feedback.model.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { RumAttributeValues } from '../../../rum/rum-batch.types';
|
|
2
|
+
import { RumNavigationType } from '../../../rum/rum.enums';
|
|
3
|
+
export interface IRumPageView {
|
|
4
|
+
id: string;
|
|
5
|
+
dateValue: Date;
|
|
6
|
+
applicationId: string;
|
|
7
|
+
environment: string;
|
|
8
|
+
sessionId: string;
|
|
9
|
+
route: string;
|
|
10
|
+
referrerRoute: string | null;
|
|
11
|
+
startedAt: Date;
|
|
12
|
+
durationMs: number | null;
|
|
13
|
+
navigationType: RumNavigationType;
|
|
14
|
+
lcpMs: number | null;
|
|
15
|
+
inpMs: number | null;
|
|
16
|
+
cls: number | null;
|
|
17
|
+
fcpMs: number | null;
|
|
18
|
+
ttfbMs: number | null;
|
|
19
|
+
dnsMs: number | null;
|
|
20
|
+
tcpMs: number | null;
|
|
21
|
+
tlsMs: number | null;
|
|
22
|
+
requestMs: number | null;
|
|
23
|
+
responseMs: number | null;
|
|
24
|
+
domProcessingMs: number | null;
|
|
25
|
+
loadMs: number | null;
|
|
26
|
+
longTaskCount: number;
|
|
27
|
+
longTaskTotalMs: number;
|
|
28
|
+
featureFlags: RumAttributeValues;
|
|
29
|
+
createdAt?: Date;
|
|
30
|
+
updatedAt?: Date;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rum-page-view.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/rum-page-view.model.ts"],"names":[],"mappings":""}
|