@abyss-project/monitor 6.2.0 → 6.4.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/alert-rule.api.d.ts +7 -0
- package/dist/api/alert-rule.api.js +29 -0
- package/dist/api/alert-rule.api.js.map +1 -0
- package/dist/api/incident.api.d.ts +11 -0
- package/dist/api/incident.api.js +49 -0
- package/dist/api/incident.api.js.map +1 -0
- package/dist/api/index.d.ts +6 -0
- package/dist/api/index.js +6 -0
- package/dist/api/index.js.map +1 -1
- package/dist/api/monitor-warning.api.d.ts +2 -0
- package/dist/api/monitor-warning.api.js +9 -0
- package/dist/api/monitor-warning.api.js.map +1 -0
- package/dist/api/notification-channel.api.d.ts +8 -0
- package/dist/api/notification-channel.api.js +33 -0
- package/dist/api/notification-channel.api.js.map +1 -0
- package/dist/api/notification-delivery.api.d.ts +4 -0
- package/dist/api/notification-delivery.api.js +17 -0
- package/dist/api/notification-delivery.api.js.map +1 -0
- package/dist/api/notification-usage.api.d.ts +2 -0
- package/dist/api/notification-usage.api.js +9 -0
- package/dist/api/notification-usage.api.js.map +1 -0
- package/dist/index.d.ts +46 -0
- package/dist/index.js +46 -0
- package/dist/index.js.map +1 -1
- package/dist/types/enum/alert-message-severity.enum.d.ts +7 -0
- package/dist/types/enum/alert-message-severity.enum.js +12 -0
- package/dist/types/enum/alert-message-severity.enum.js.map +1 -0
- package/dist/types/enum/alert-rule-group-by.enum.d.ts +6 -0
- package/dist/types/enum/alert-rule-group-by.enum.js +11 -0
- package/dist/types/enum/alert-rule-group-by.enum.js.map +1 -0
- package/dist/types/enum/alert-rule-mode.enum.d.ts +4 -0
- package/dist/types/enum/alert-rule-mode.enum.js +9 -0
- package/dist/types/enum/alert-rule-mode.enum.js.map +1 -0
- package/dist/types/enum/api-error.enum.d.ts +12 -1
- package/dist/types/enum/api-error.enum.js +11 -0
- package/dist/types/enum/api-error.enum.js.map +1 -1
- package/dist/types/enum/incident-clear-reason.enum.d.ts +6 -0
- package/dist/types/enum/incident-clear-reason.enum.js +11 -0
- package/dist/types/enum/incident-clear-reason.enum.js.map +1 -0
- package/dist/types/enum/incident-event-type.enum.d.ts +13 -0
- package/dist/types/enum/incident-event-type.enum.js +18 -0
- package/dist/types/enum/incident-event-type.enum.js.map +1 -0
- package/dist/types/enum/incident-occurrence-kind.enum.d.ts +5 -0
- package/dist/types/enum/incident-occurrence-kind.enum.js +10 -0
- package/dist/types/enum/incident-occurrence-kind.enum.js.map +1 -0
- package/dist/types/enum/incident-severity.enum.d.ts +5 -0
- package/dist/types/enum/incident-severity.enum.js +10 -0
- package/dist/types/enum/incident-severity.enum.js.map +1 -0
- package/dist/types/enum/incident-source.enum.d.ts +9 -0
- package/dist/types/enum/incident-source.enum.js +14 -0
- package/dist/types/enum/incident-source.enum.js.map +1 -0
- package/dist/types/enum/incident-status.enum.d.ts +5 -0
- package/dist/types/enum/incident-status.enum.js +10 -0
- package/dist/types/enum/incident-status.enum.js.map +1 -0
- package/dist/types/enum/incident-suppressed-reason.enum.d.ts +3 -0
- package/dist/types/enum/incident-suppressed-reason.enum.js +8 -0
- package/dist/types/enum/incident-suppressed-reason.enum.js.map +1 -0
- package/dist/types/enum/index.d.ts +18 -0
- package/dist/types/enum/index.js +18 -0
- package/dist/types/enum/index.js.map +1 -1
- package/dist/types/enum/monitor-warning-code.enum.d.ts +5 -0
- package/dist/types/enum/monitor-warning-code.enum.js +10 -0
- package/dist/types/enum/monitor-warning-code.enum.js.map +1 -0
- package/dist/types/enum/monitor-warning-level.enum.d.ts +4 -0
- package/dist/types/enum/monitor-warning-level.enum.js +9 -0
- package/dist/types/enum/monitor-warning-level.enum.js.map +1 -0
- package/dist/types/enum/monitor-warning-scope.enum.d.ts +5 -0
- package/dist/types/enum/monitor-warning-scope.enum.js +10 -0
- package/dist/types/enum/monitor-warning-scope.enum.js.map +1 -0
- package/dist/types/enum/notification-delivery-cancel-reason.enum.d.ts +5 -0
- package/dist/types/enum/notification-delivery-cancel-reason.enum.js +10 -0
- package/dist/types/enum/notification-delivery-cancel-reason.enum.js.map +1 -0
- package/dist/types/enum/notification-delivery-kind.enum.d.ts +7 -0
- package/dist/types/enum/notification-delivery-kind.enum.js +12 -0
- package/dist/types/enum/notification-delivery-kind.enum.js.map +1 -0
- package/dist/types/enum/notification-delivery-status.enum.d.ts +10 -0
- package/dist/types/enum/notification-delivery-status.enum.js +15 -0
- package/dist/types/enum/notification-delivery-status.enum.js.map +1 -0
- package/dist/types/enum/notification-failure-class.enum.d.ts +6 -0
- package/dist/types/enum/notification-failure-class.enum.js +11 -0
- package/dist/types/enum/notification-failure-class.enum.js.map +1 -0
- package/dist/types/enum/notification-provider.enum.d.ts +7 -0
- package/dist/types/enum/notification-provider.enum.js +12 -0
- package/dist/types/enum/notification-provider.enum.js.map +1 -0
- package/dist/types/interface/api/index.d.ts +12 -0
- package/dist/types/interface/api/index.js +12 -0
- package/dist/types/interface/api/index.js.map +1 -1
- package/dist/types/interface/api/requests/alert-rule.request.d.ts +18 -0
- package/dist/types/interface/api/requests/alert-rule.request.js +3 -0
- package/dist/types/interface/api/requests/alert-rule.request.js.map +1 -0
- package/dist/types/interface/api/requests/incident.request.d.ts +38 -0
- package/dist/types/interface/api/requests/incident.request.js +3 -0
- package/dist/types/interface/api/requests/incident.request.js.map +1 -0
- package/dist/types/interface/api/requests/monitor-warning.request.d.ts +3 -0
- package/dist/types/interface/api/requests/monitor-warning.request.js +3 -0
- package/dist/types/interface/api/requests/monitor-warning.request.js.map +1 -0
- package/dist/types/interface/api/requests/notification-channel.request.d.ts +36 -0
- package/dist/types/interface/api/requests/notification-channel.request.js +3 -0
- package/dist/types/interface/api/requests/notification-channel.request.js.map +1 -0
- package/dist/types/interface/api/requests/notification-delivery.request.d.ts +19 -0
- package/dist/types/interface/api/requests/notification-delivery.request.js +3 -0
- package/dist/types/interface/api/requests/notification-delivery.request.js.map +1 -0
- package/dist/types/interface/api/requests/notification-usage.request.d.ts +6 -0
- package/dist/types/interface/api/requests/notification-usage.request.js +3 -0
- package/dist/types/interface/api/requests/notification-usage.request.js.map +1 -0
- package/dist/types/interface/api/responses/alert-rule.response.d.ts +21 -0
- package/dist/types/interface/api/responses/alert-rule.response.js +3 -0
- package/dist/types/interface/api/responses/alert-rule.response.js.map +1 -0
- package/dist/types/interface/api/responses/incident.response.d.ts +45 -0
- package/dist/types/interface/api/responses/incident.response.js +3 -0
- package/dist/types/interface/api/responses/incident.response.js.map +1 -0
- package/dist/types/interface/api/responses/metrics.response.d.ts +2 -6
- package/dist/types/interface/api/responses/monitor-warning.response.d.ts +6 -0
- package/dist/types/interface/api/responses/monitor-warning.response.js +3 -0
- package/dist/types/interface/api/responses/monitor-warning.response.js.map +1 -0
- package/dist/types/interface/api/responses/notification-channel.response.d.ts +29 -0
- package/dist/types/interface/api/responses/notification-channel.response.js +3 -0
- package/dist/types/interface/api/responses/notification-channel.response.js.map +1 -0
- package/dist/types/interface/api/responses/notification-delivery.response.d.ts +11 -0
- package/dist/types/interface/api/responses/notification-delivery.response.js +3 -0
- package/dist/types/interface/api/responses/notification-delivery.response.js.map +1 -0
- package/dist/types/interface/api/responses/notification-usage.response.d.ts +7 -0
- package/dist/types/interface/api/responses/notification-usage.response.js +3 -0
- package/dist/types/interface/api/responses/notification-usage.response.js.map +1 -0
- package/dist/types/interface/index.d.ts +6 -0
- package/dist/types/interface/index.js +6 -0
- package/dist/types/interface/index.js.map +1 -1
- package/dist/types/interface/models/alert-message.model.d.ts +24 -0
- package/dist/types/interface/models/alert-message.model.js +3 -0
- package/dist/types/interface/models/alert-message.model.js.map +1 -0
- package/dist/types/interface/models/application-sentinel.model.d.ts +0 -3
- package/dist/types/interface/models/monitor-alert-rule.model.d.ts +26 -0
- package/dist/types/interface/models/monitor-alert-rule.model.js +3 -0
- package/dist/types/interface/models/monitor-alert-rule.model.js.map +1 -0
- package/dist/types/interface/models/monitor-incident.model.d.ts +42 -0
- package/dist/types/interface/models/monitor-incident.model.js +3 -0
- package/dist/types/interface/models/monitor-incident.model.js.map +1 -0
- package/dist/types/interface/models/monitor-notification-channel.model.d.ts +23 -0
- package/dist/types/interface/models/monitor-notification-channel.model.js +3 -0
- package/dist/types/interface/models/monitor-notification-channel.model.js.map +1 -0
- package/dist/types/interface/models/monitor-notification-delivery.model.d.ts +40 -0
- package/dist/types/interface/models/monitor-notification-delivery.model.js +3 -0
- package/dist/types/interface/models/monitor-notification-delivery.model.js.map +1 -0
- package/dist/types/interface/models/monitor-warning.model.d.ts +15 -0
- package/dist/types/interface/models/monitor-warning.model.js +3 -0
- package/dist/types/interface/models/monitor-warning.model.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-usage.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/notification-usage.request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IResponse } from '..';
|
|
2
|
+
import { IMonitorAlertRule } from '../../models/monitor-alert-rule.model';
|
|
3
|
+
export interface IListAlertRuleData {
|
|
4
|
+
alertRules: IMonitorAlertRule[];
|
|
5
|
+
}
|
|
6
|
+
export type IListAlertRuleResponse = IResponse<IListAlertRuleData>;
|
|
7
|
+
export interface IAlertRuleData {
|
|
8
|
+
alertRule: IMonitorAlertRule;
|
|
9
|
+
}
|
|
10
|
+
export type IAlertRuleResponse = IResponse<IAlertRuleData>;
|
|
11
|
+
export type IDeleteAlertRuleData = Record<string, never>;
|
|
12
|
+
export type IDeleteAlertRuleResponse = IResponse<IDeleteAlertRuleData>;
|
|
13
|
+
export interface IPreviewAlertRuleGroup {
|
|
14
|
+
values: Record<string, string>;
|
|
15
|
+
count: number;
|
|
16
|
+
}
|
|
17
|
+
export interface IPreviewAlertRuleData {
|
|
18
|
+
count: number;
|
|
19
|
+
groups: IPreviewAlertRuleGroup[];
|
|
20
|
+
}
|
|
21
|
+
export type IPreviewAlertRuleResponse = IResponse<IPreviewAlertRuleData>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-rule.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/alert-rule.response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { BasePaginate, IResponse } from '..';
|
|
2
|
+
import { IMonitorIncident, IMonitorIncidentEvent } from '../../models/monitor-incident.model';
|
|
3
|
+
export type IPaginateIncidentResponse = IResponse<BasePaginate<IMonitorIncident>>;
|
|
4
|
+
export interface IMonitorIncidentDeliveryStats {
|
|
5
|
+
sentCount: number;
|
|
6
|
+
aggregatedCount: number;
|
|
7
|
+
}
|
|
8
|
+
export interface IGetIncidentData {
|
|
9
|
+
incident: IMonitorIncident;
|
|
10
|
+
deliveryStats: IMonitorIncidentDeliveryStats;
|
|
11
|
+
}
|
|
12
|
+
export type IGetIncidentResponse = IResponse<IGetIncidentData>;
|
|
13
|
+
export interface IListTimelineIncidentData {
|
|
14
|
+
events: IMonitorIncidentEvent[];
|
|
15
|
+
}
|
|
16
|
+
export type IListTimelineIncidentResponse = IResponse<IListTimelineIncidentData>;
|
|
17
|
+
export interface IAcknowledgeIncidentData {
|
|
18
|
+
incident: IMonitorIncident;
|
|
19
|
+
}
|
|
20
|
+
export type IAcknowledgeIncidentResponse = IResponse<IAcknowledgeIncidentData>;
|
|
21
|
+
export interface IAssignIncidentData {
|
|
22
|
+
incident: IMonitorIncident;
|
|
23
|
+
}
|
|
24
|
+
export type IAssignIncidentResponse = IResponse<IAssignIncidentData>;
|
|
25
|
+
export interface ICommentIncidentData {
|
|
26
|
+
event: IMonitorIncidentEvent;
|
|
27
|
+
}
|
|
28
|
+
export type ICommentIncidentResponse = IResponse<ICommentIncidentData>;
|
|
29
|
+
export interface IMuteIncidentData {
|
|
30
|
+
incident: IMonitorIncident;
|
|
31
|
+
}
|
|
32
|
+
export type IMuteIncidentResponse = IResponse<IMuteIncidentData>;
|
|
33
|
+
export interface IUnmuteIncidentData {
|
|
34
|
+
incident: IMonitorIncident;
|
|
35
|
+
}
|
|
36
|
+
export type IUnmuteIncidentResponse = IResponse<IUnmuteIncidentData>;
|
|
37
|
+
export interface IGetMuteByTokenIncidentData {
|
|
38
|
+
incident: IMonitorIncident;
|
|
39
|
+
defaultDurationMinutes: number;
|
|
40
|
+
}
|
|
41
|
+
export type IGetMuteByTokenIncidentResponse = IResponse<IGetMuteByTokenIncidentData>;
|
|
42
|
+
export interface IMuteByTokenIncidentData {
|
|
43
|
+
incident: IMonitorIncident;
|
|
44
|
+
}
|
|
45
|
+
export type IMuteByTokenIncidentResponse = IResponse<IMuteByTokenIncidentData>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"incident.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/incident.response.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IResponse, IApplicationSentinel,
|
|
1
|
+
import { IResponse, IApplicationSentinel, IMonitorIncident } from '../..';
|
|
2
2
|
export interface IGetSentinelMetricsData {
|
|
3
3
|
metrics: {
|
|
4
4
|
applicationSentinel: IApplicationSentinel[];
|
|
@@ -6,10 +6,6 @@ export interface IGetSentinelMetricsData {
|
|
|
6
6
|
}
|
|
7
7
|
export type IGetSentinelMetricsResponse = IResponse<IGetSentinelMetricsData>;
|
|
8
8
|
export interface IGetLastIncidentSentinelMetricsData {
|
|
9
|
-
|
|
10
|
-
incident: IApplicationSentinelHistory;
|
|
11
|
-
sentinel: IApplicationSentinel;
|
|
12
|
-
durationMs: number | null;
|
|
13
|
-
}[];
|
|
9
|
+
incidents: IMonitorIncident[];
|
|
14
10
|
}
|
|
15
11
|
export type IGetLastIncidentSentinelMetricsResponse = IResponse<IGetLastIncidentSentinelMetricsData>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IResponse } from '..';
|
|
2
|
+
import { IMonitorWarning } from '../../models/monitor-warning.model';
|
|
3
|
+
export interface IListActiveMonitorWarningData {
|
|
4
|
+
warnings: IMonitorWarning[];
|
|
5
|
+
}
|
|
6
|
+
export type IListActiveMonitorWarningResponse = IResponse<IListActiveMonitorWarningData>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitor-warning.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/monitor-warning.response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IResponse } from '..';
|
|
2
|
+
import { IMonitorNotificationChannel } from '../../models/monitor-notification-channel.model';
|
|
3
|
+
import { IMonitorNotificationDelivery } from '../../models/monitor-notification-delivery.model';
|
|
4
|
+
export interface IListNotificationChannelData {
|
|
5
|
+
channels: IMonitorNotificationChannel[];
|
|
6
|
+
}
|
|
7
|
+
export type IListNotificationChannelResponse = IResponse<IListNotificationChannelData>;
|
|
8
|
+
export interface IGetNotificationChannelData {
|
|
9
|
+
channel: IMonitorNotificationChannel;
|
|
10
|
+
}
|
|
11
|
+
export type IGetNotificationChannelResponse = IResponse<IGetNotificationChannelData>;
|
|
12
|
+
export interface ICreateNotificationChannelData {
|
|
13
|
+
channel: IMonitorNotificationChannel;
|
|
14
|
+
}
|
|
15
|
+
export type ICreateNotificationChannelResponse = IResponse<ICreateNotificationChannelData>;
|
|
16
|
+
export interface IUpdateNotificationChannelData {
|
|
17
|
+
channel: IMonitorNotificationChannel;
|
|
18
|
+
}
|
|
19
|
+
export type IUpdateNotificationChannelResponse = IResponse<IUpdateNotificationChannelData>;
|
|
20
|
+
export type IDeleteNotificationChannelData = Record<string, never>;
|
|
21
|
+
export type IDeleteNotificationChannelResponse = IResponse<IDeleteNotificationChannelData>;
|
|
22
|
+
export interface ITestNotificationChannelData {
|
|
23
|
+
delivery: IMonitorNotificationDelivery;
|
|
24
|
+
}
|
|
25
|
+
export type ITestNotificationChannelResponse = IResponse<ITestNotificationChannelData>;
|
|
26
|
+
export interface IEnableNotificationChannelData {
|
|
27
|
+
channel: IMonitorNotificationChannel;
|
|
28
|
+
}
|
|
29
|
+
export type IEnableNotificationChannelResponse = IResponse<IEnableNotificationChannelData>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-channel.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/notification-channel.response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BasePaginate, IResponse } from '..';
|
|
2
|
+
import { IMonitorNotificationDelivery } from '../../models/monitor-notification-delivery.model';
|
|
3
|
+
export type IPaginateNotificationDeliveryResponse = IResponse<BasePaginate<IMonitorNotificationDelivery>>;
|
|
4
|
+
export interface IListByPublicRefNotificationDeliveryData {
|
|
5
|
+
deliveries: IMonitorNotificationDelivery[];
|
|
6
|
+
}
|
|
7
|
+
export type IListByPublicRefNotificationDeliveryResponse = IResponse<IListByPublicRefNotificationDeliveryData>;
|
|
8
|
+
export interface IReplayNotificationDeliveryData {
|
|
9
|
+
delivery: IMonitorNotificationDelivery;
|
|
10
|
+
}
|
|
11
|
+
export type IReplayNotificationDeliveryResponse = IResponse<IReplayNotificationDeliveryData>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-delivery.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/notification-delivery.response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IResponse } from '..';
|
|
2
|
+
import { IMonitorNotificationUsage } from '../../models/monitor-notification-delivery.model';
|
|
3
|
+
export interface IListNotificationUsageData {
|
|
4
|
+
organizationId: string;
|
|
5
|
+
usages: IMonitorNotificationUsage[];
|
|
6
|
+
}
|
|
7
|
+
export type IListNotificationUsageResponse = IResponse<IListNotificationUsageData>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-usage.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/notification-usage.response.ts"],"names":[],"mappings":""}
|
|
@@ -15,6 +15,12 @@ export * from './models/application-lifetime-metrics.model';
|
|
|
15
15
|
export * from './models/application-hourly-metrics.model';
|
|
16
16
|
export * from './models/webhook-job-dedup.model';
|
|
17
17
|
export * from './models/rehydration-job.model';
|
|
18
|
+
export * from './models/monitor-incident.model';
|
|
19
|
+
export * from './models/monitor-alert-rule.model';
|
|
20
|
+
export * from './models/monitor-notification-channel.model';
|
|
21
|
+
export * from './models/monitor-notification-delivery.model';
|
|
22
|
+
export * from './models/monitor-warning.model';
|
|
23
|
+
export * from './models/alert-message.model';
|
|
18
24
|
export * from './api';
|
|
19
25
|
export * from './dto';
|
|
20
26
|
export * from './rate-limit';
|
|
@@ -31,6 +31,12 @@ __exportStar(require("./models/application-lifetime-metrics.model"), exports);
|
|
|
31
31
|
__exportStar(require("./models/application-hourly-metrics.model"), exports);
|
|
32
32
|
__exportStar(require("./models/webhook-job-dedup.model"), exports);
|
|
33
33
|
__exportStar(require("./models/rehydration-job.model"), exports);
|
|
34
|
+
__exportStar(require("./models/monitor-incident.model"), exports);
|
|
35
|
+
__exportStar(require("./models/monitor-alert-rule.model"), exports);
|
|
36
|
+
__exportStar(require("./models/monitor-notification-channel.model"), exports);
|
|
37
|
+
__exportStar(require("./models/monitor-notification-delivery.model"), exports);
|
|
38
|
+
__exportStar(require("./models/monitor-warning.model"), exports);
|
|
39
|
+
__exportStar(require("./models/alert-message.model"), exports);
|
|
34
40
|
__exportStar(require("./api"), exports);
|
|
35
41
|
__exportStar(require("./dto"), exports);
|
|
36
42
|
__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,sDAAoC;AACpC,mEAAiD;AACjD,iEAA+C;AAC/C,0EAAwD;AACxD,uEAAqD;AACrD,+EAA6D;AAC7D,mEAAiD;AACjD,qEAAmD;AACnD,6EAA2D;AAC3D,sEAAoD;AACpD,8EAA4D;AAC5D,gFAA8D;AAC9D,8EAA4D;AAC5D,4EAA0D;AAC1D,mEAAiD;AACjD,iEAA+C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/interface/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,sDAAoC;AACpC,mEAAiD;AACjD,iEAA+C;AAC/C,0EAAwD;AACxD,uEAAqD;AACrD,+EAA6D;AAC7D,mEAAiD;AACjD,qEAAmD;AACnD,6EAA2D;AAC3D,sEAAoD;AACpD,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,+DAA6C;AAG7C,wCAAsB;AACtB,wCAAsB;AACtB,+CAA6B;AAC7B,mDAAiC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AlertMessageSeverity } from '../../enum';
|
|
2
|
+
export interface IAlertMessageFact {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IAlertMessageAction {
|
|
7
|
+
label: string;
|
|
8
|
+
url: string;
|
|
9
|
+
}
|
|
10
|
+
export interface IAlertMessageTruncation {
|
|
11
|
+
field: string;
|
|
12
|
+
originalLength: number;
|
|
13
|
+
truncatedLength: number;
|
|
14
|
+
}
|
|
15
|
+
export interface IAlertMessage {
|
|
16
|
+
severity: AlertMessageSeverity;
|
|
17
|
+
title: string;
|
|
18
|
+
body: string;
|
|
19
|
+
facts: IAlertMessageFact[];
|
|
20
|
+
actions: IAlertMessageAction[];
|
|
21
|
+
fallbackText: string;
|
|
22
|
+
truncations: IAlertMessageTruncation[];
|
|
23
|
+
ref: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-message.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/alert-message.model.ts"],"names":[],"mappings":""}
|
|
@@ -11,11 +11,8 @@ export interface IApplicationSentinel {
|
|
|
11
11
|
webhookMetadata: Record<string, string>;
|
|
12
12
|
scheduleConfiguration: string;
|
|
13
13
|
configuration: ApplicationSentinelConfigurationDto;
|
|
14
|
-
lastDownNotificationDate?: Date | null;
|
|
15
|
-
lastUpNotificationDate?: Date | null;
|
|
16
14
|
consecutiveFailures?: number;
|
|
17
15
|
enqueueFailures?: number;
|
|
18
|
-
nextNotificationAfter?: Date | null;
|
|
19
16
|
lastCheckedAt?: Date | null;
|
|
20
17
|
updatedAt?: Date;
|
|
21
18
|
createdAt?: Date;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AlertRuleGroupBy, AlertRuleMode, IncidentSeverity, LogLevel } from '../../enum';
|
|
2
|
+
export interface IMonitorAlertRuleFilter {
|
|
3
|
+
levels: LogLevel[];
|
|
4
|
+
contexts: string[];
|
|
5
|
+
scenarios: string[];
|
|
6
|
+
httpStatusMin: number | null;
|
|
7
|
+
httpStatusMax: number | null;
|
|
8
|
+
messageContains: string | null;
|
|
9
|
+
}
|
|
10
|
+
export interface IMonitorAlertRule {
|
|
11
|
+
id: string;
|
|
12
|
+
projectId: string;
|
|
13
|
+
name: string;
|
|
14
|
+
slug: string;
|
|
15
|
+
isEnabled: boolean;
|
|
16
|
+
applicationIds: string[];
|
|
17
|
+
mode: AlertRuleMode;
|
|
18
|
+
filter: IMonitorAlertRuleFilter;
|
|
19
|
+
windowMinutes: number;
|
|
20
|
+
threshold: number;
|
|
21
|
+
groupBy: AlertRuleGroupBy[];
|
|
22
|
+
severity: IncidentSeverity;
|
|
23
|
+
lastEvaluatedAt: Date | null;
|
|
24
|
+
createdAt?: Date;
|
|
25
|
+
updatedAt?: Date;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitor-alert-rule.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/monitor-alert-rule.model.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { IncidentEventType, IncidentSeverity, IncidentSource, IncidentStatus, IncidentSuppressedReason } from '../../enum';
|
|
2
|
+
export interface IMonitorIncident {
|
|
3
|
+
id: string;
|
|
4
|
+
projectId: string;
|
|
5
|
+
applicationId: string | null;
|
|
6
|
+
number: number;
|
|
7
|
+
source: IncidentSource;
|
|
8
|
+
sourceId: string;
|
|
9
|
+
fingerprint: string;
|
|
10
|
+
severity: IncidentSeverity;
|
|
11
|
+
status: IncidentStatus;
|
|
12
|
+
title: string;
|
|
13
|
+
environment: string | null;
|
|
14
|
+
groupValues: Record<string, string | null>;
|
|
15
|
+
startedAt: Date;
|
|
16
|
+
lastSeenAt: Date;
|
|
17
|
+
endedAt: Date | null;
|
|
18
|
+
durationMs: number | null;
|
|
19
|
+
occurrenceCount: number;
|
|
20
|
+
assignedToUserId: string | null;
|
|
21
|
+
acknowledgedAt: Date | null;
|
|
22
|
+
acknowledgedByUserId: string | null;
|
|
23
|
+
mutedUntil: Date | null;
|
|
24
|
+
mutedByUserId: string | null;
|
|
25
|
+
suppressedReason: IncidentSuppressedReason | null;
|
|
26
|
+
createdAt?: Date;
|
|
27
|
+
updatedAt?: Date;
|
|
28
|
+
}
|
|
29
|
+
export interface IMonitorIncidentEvent {
|
|
30
|
+
id: string;
|
|
31
|
+
incidentId: string;
|
|
32
|
+
type: IncidentEventType;
|
|
33
|
+
actorUserId: string | null;
|
|
34
|
+
payload: Record<string, unknown>;
|
|
35
|
+
createdAt?: Date;
|
|
36
|
+
}
|
|
37
|
+
export interface IMonitorProjectIncidentCounter {
|
|
38
|
+
projectId: string;
|
|
39
|
+
lastNumber: number;
|
|
40
|
+
createdAt?: Date;
|
|
41
|
+
updatedAt?: Date;
|
|
42
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitor-incident.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/monitor-incident.model.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IncidentSeverity, IncidentSource, NotificationFailureClass, NotificationProvider } from '../../enum';
|
|
2
|
+
export interface IMonitorNotificationChannelFilters {
|
|
3
|
+
sources: IncidentSource[];
|
|
4
|
+
minSeverity: IncidentSeverity;
|
|
5
|
+
applicationIds: string[];
|
|
6
|
+
environments: string[];
|
|
7
|
+
}
|
|
8
|
+
export interface IMonitorNotificationChannel {
|
|
9
|
+
id: string;
|
|
10
|
+
projectId: string;
|
|
11
|
+
name: string;
|
|
12
|
+
description: string | null;
|
|
13
|
+
isEnabled: boolean;
|
|
14
|
+
provider: NotificationProvider;
|
|
15
|
+
urlHint: string | null;
|
|
16
|
+
filters: IMonitorNotificationChannelFilters;
|
|
17
|
+
budgetPerHour: number;
|
|
18
|
+
windowSteps: number[];
|
|
19
|
+
disabledReason: NotificationFailureClass | null;
|
|
20
|
+
disabledAt: Date | null;
|
|
21
|
+
createdAt?: Date;
|
|
22
|
+
updatedAt?: Date;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitor-notification-channel.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/monitor-notification-channel.model.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { NotificationDeliveryCancelReason, NotificationDeliveryKind, NotificationDeliveryStatus, NotificationFailureClass, NotificationProvider } from '../../enum';
|
|
2
|
+
import { IAlertMessage } from './alert-message.model';
|
|
3
|
+
export interface IMonitorNotificationSuppressionSummary {
|
|
4
|
+
budgetRefusedCount: number;
|
|
5
|
+
suspendedCount: number;
|
|
6
|
+
droppedThrottledCount: number;
|
|
7
|
+
}
|
|
8
|
+
export interface IMonitorNotificationDelivery {
|
|
9
|
+
id: string;
|
|
10
|
+
projectId: string;
|
|
11
|
+
applicationId: string | null;
|
|
12
|
+
channelId: string;
|
|
13
|
+
incidentId: string | null;
|
|
14
|
+
kind: NotificationDeliveryKind;
|
|
15
|
+
status: NotificationDeliveryStatus;
|
|
16
|
+
provider: NotificationProvider;
|
|
17
|
+
dispatchKey: string;
|
|
18
|
+
publicRef: string;
|
|
19
|
+
sentAt: Date;
|
|
20
|
+
completedAt: Date | null;
|
|
21
|
+
attempt: number;
|
|
22
|
+
aggregatedCount: number;
|
|
23
|
+
suppressionSummary: IMonitorNotificationSuppressionSummary | null;
|
|
24
|
+
payload: IAlertMessage;
|
|
25
|
+
responseCode: number | null;
|
|
26
|
+
response: string | null;
|
|
27
|
+
failureClass: NotificationFailureClass | null;
|
|
28
|
+
cancelReason: NotificationDeliveryCancelReason | null;
|
|
29
|
+
countedAt: Date | null;
|
|
30
|
+
expiresAt: Date | null;
|
|
31
|
+
createdAt?: Date;
|
|
32
|
+
updatedAt?: Date;
|
|
33
|
+
}
|
|
34
|
+
export interface IMonitorNotificationUsage {
|
|
35
|
+
organizationId: string;
|
|
36
|
+
month: string;
|
|
37
|
+
sentCount: number;
|
|
38
|
+
createdAt?: Date;
|
|
39
|
+
updatedAt?: Date;
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitor-notification-delivery.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/monitor-notification-delivery.model.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MonitorWarningCode, MonitorWarningLevel, MonitorWarningScope } from '../../enum';
|
|
2
|
+
export interface IMonitorWarning {
|
|
3
|
+
id: string;
|
|
4
|
+
scope: MonitorWarningScope;
|
|
5
|
+
scopeId: string;
|
|
6
|
+
code: MonitorWarningCode;
|
|
7
|
+
level: MonitorWarningLevel;
|
|
8
|
+
params: Record<string, unknown>;
|
|
9
|
+
firstSeenAt: Date;
|
|
10
|
+
lastSeenAt: Date;
|
|
11
|
+
occurrenceCount: number;
|
|
12
|
+
resolvedAt: Date | null;
|
|
13
|
+
createdAt?: Date;
|
|
14
|
+
updatedAt?: Date;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitor-warning.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/monitor-warning.model.ts"],"names":[],"mappings":""}
|