@abyss-project/monitor 14.0.0 → 16.0.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.
Files changed (104) hide show
  1. package/dist/api/explore-preview.api.d.ts +5 -0
  2. package/dist/api/explore-preview.api.js +21 -0
  3. package/dist/api/explore-preview.api.js.map +1 -0
  4. package/dist/api/explore.api.d.ts +3 -0
  5. package/dist/api/explore.api.js +13 -0
  6. package/dist/api/explore.api.js.map +1 -0
  7. package/dist/api/incident.api.d.ts +2 -1
  8. package/dist/api/incident.api.js +5 -1
  9. package/dist/api/incident.api.js.map +1 -1
  10. package/dist/api/index.d.ts +3 -0
  11. package/dist/api/index.js +3 -0
  12. package/dist/api/index.js.map +1 -1
  13. package/dist/api/monitor-saved-view.api.d.ts +5 -0
  14. package/dist/api/monitor-saved-view.api.js +21 -0
  15. package/dist/api/monitor-saved-view.api.js.map +1 -0
  16. package/dist/index.d.ts +21 -0
  17. package/dist/index.js +21 -0
  18. package/dist/index.js.map +1 -1
  19. package/dist/middlewares/context.middleware.d.ts +2 -0
  20. package/dist/middlewares/context.middleware.js +10 -18
  21. package/dist/middlewares/context.middleware.js.map +1 -1
  22. package/dist/middlewares/logger-endpoint.middleware.js +2 -1
  23. package/dist/middlewares/logger-endpoint.middleware.js.map +1 -1
  24. package/dist/middlewares/rate-limit/identifier-resolver.d.ts +3 -0
  25. package/dist/middlewares/rate-limit/identifier-resolver.js +15 -5
  26. package/dist/middlewares/rate-limit/identifier-resolver.js.map +1 -1
  27. package/dist/middlewares/rate-limit/index.d.ts +1 -1
  28. package/dist/middlewares/rate-limit/index.js +4 -1
  29. package/dist/middlewares/rate-limit/index.js.map +1 -1
  30. package/dist/models/logger.model.d.ts +2 -1
  31. package/dist/models/logger.model.js.map +1 -1
  32. package/dist/outbound/axios-outbound.d.ts +11 -0
  33. package/dist/outbound/axios-outbound.js +42 -0
  34. package/dist/outbound/axios-outbound.js.map +1 -0
  35. package/dist/outbound/index.d.ts +4 -0
  36. package/dist/outbound/index.js +21 -0
  37. package/dist/outbound/index.js.map +1 -0
  38. package/dist/outbound/outbound-timings.d.ts +14 -0
  39. package/dist/outbound/outbound-timings.js +96 -0
  40. package/dist/outbound/outbound-timings.js.map +1 -0
  41. package/dist/outbound/sequelize-outbound.d.ts +6 -0
  42. package/dist/outbound/sequelize-outbound.js +39 -0
  43. package/dist/outbound/sequelize-outbound.js.map +1 -0
  44. package/dist/outbound/undici-outbound.d.ts +1 -0
  45. package/dist/outbound/undici-outbound.js +47 -0
  46. package/dist/outbound/undici-outbound.js.map +1 -0
  47. package/dist/types/enum/api-error.enum.d.ts +8 -1
  48. package/dist/types/enum/api-error.enum.js +7 -0
  49. package/dist/types/enum/api-error.enum.js.map +1 -1
  50. package/dist/types/enum/explore-source.enum.d.ts +18 -0
  51. package/dist/types/enum/explore-source.enum.js +24 -0
  52. package/dist/types/enum/explore-source.enum.js.map +1 -0
  53. package/dist/types/enum/incident-trigger-source.enum.d.ts +6 -0
  54. package/dist/types/enum/incident-trigger-source.enum.js +11 -0
  55. package/dist/types/enum/incident-trigger-source.enum.js.map +1 -0
  56. package/dist/types/enum/index.d.ts +4 -0
  57. package/dist/types/enum/index.js +4 -0
  58. package/dist/types/enum/index.js.map +1 -1
  59. package/dist/types/enum/monitor-saved-view.enum.d.ts +7 -0
  60. package/dist/types/enum/monitor-saved-view.enum.js +12 -0
  61. package/dist/types/enum/monitor-saved-view.enum.js.map +1 -0
  62. package/dist/types/enum/outbound-call-kind.enum.d.ts +4 -0
  63. package/dist/types/enum/outbound-call-kind.enum.js +9 -0
  64. package/dist/types/enum/outbound-call-kind.enum.js.map +1 -0
  65. package/dist/types/interface/api/index.d.ts +6 -0
  66. package/dist/types/interface/api/index.js +6 -0
  67. package/dist/types/interface/api/index.js.map +1 -1
  68. package/dist/types/interface/api/requests/application-log.request.d.ts +2 -0
  69. package/dist/types/interface/api/requests/explore-preview.request.d.ts +16 -0
  70. package/dist/types/interface/api/requests/explore-preview.request.js +3 -0
  71. package/dist/types/interface/api/requests/explore-preview.request.js.map +1 -0
  72. package/dist/types/interface/api/requests/explore.request.d.ts +25 -0
  73. package/dist/types/interface/api/requests/explore.request.js +8 -0
  74. package/dist/types/interface/api/requests/explore.request.js.map +1 -0
  75. package/dist/types/interface/api/requests/incident.request.d.ts +3 -1
  76. package/dist/types/interface/api/requests/monitor-saved-view.request.d.ts +38 -0
  77. package/dist/types/interface/api/requests/monitor-saved-view.request.js +6 -0
  78. package/dist/types/interface/api/requests/monitor-saved-view.request.js.map +1 -0
  79. package/dist/types/interface/api/responses/error-group.response.d.ts +2 -2
  80. package/dist/types/interface/api/responses/explore-preview.response.d.ts +94 -0
  81. package/dist/types/interface/api/responses/explore-preview.response.js +3 -0
  82. package/dist/types/interface/api/responses/explore-preview.response.js.map +1 -0
  83. package/dist/types/interface/api/responses/explore.response.d.ts +22 -0
  84. package/dist/types/interface/api/responses/explore.response.js +3 -0
  85. package/dist/types/interface/api/responses/explore.response.js.map +1 -0
  86. package/dist/types/interface/api/responses/incident.response.d.ts +11 -1
  87. package/dist/types/interface/api/responses/monitor-saved-view.response.d.ts +8 -0
  88. package/dist/types/interface/api/responses/monitor-saved-view.response.js +3 -0
  89. package/dist/types/interface/api/responses/monitor-saved-view.response.js.map +1 -0
  90. package/dist/types/interface/api/responses/rum-read.response.d.ts +3 -1
  91. package/dist/types/interface/api/responses/rum-socket-messages.response.d.ts +1 -0
  92. package/dist/types/interface/api/type-message/keyset-paginate.d.ts +1 -0
  93. package/dist/types/interface/index.d.ts +2 -0
  94. package/dist/types/interface/index.js +2 -0
  95. package/dist/types/interface/index.js.map +1 -1
  96. package/dist/types/interface/models/application-log-endpoint.model.d.ts +2 -0
  97. package/dist/types/interface/models/monitor-incident.model.d.ts +24 -1
  98. package/dist/types/interface/models/monitor-saved-view.model.d.ts +24 -0
  99. package/dist/types/interface/models/monitor-saved-view.model.js +3 -0
  100. package/dist/types/interface/models/monitor-saved-view.model.js.map +1 -0
  101. package/dist/types/interface/outbound-timings.d.ts +15 -0
  102. package/dist/types/interface/outbound-timings.js +3 -0
  103. package/dist/types/interface/outbound-timings.js.map +1 -0
  104. package/package.json +1 -1
@@ -1,5 +1,6 @@
1
1
  import { CursorQuery } from '..';
2
2
  import { APIMethod, ApplicationLogOrigin, LogEmitter, LogLevel } from '../../../enum';
3
+ import { IOutboundTimings } from '../../outbound-timings';
3
4
  export interface IGetApplicationLogParams {
4
5
  applicationId: string;
5
6
  applicationLogId: string;
@@ -60,6 +61,7 @@ export interface ICreateApplicationLogBody {
60
61
  responseBody?: Record<string, unknown> | string | null;
61
62
  requestHeaders?: Record<string, string> | null;
62
63
  responseHeaders?: Record<string, string> | null;
64
+ outboundTimings?: IOutboundTimings | null;
63
65
  };
64
66
  applicationEvent?: {
65
67
  event: string;
@@ -0,0 +1,16 @@
1
+ export interface IGetServerRequestPreviewParams {
2
+ applicationId: string;
3
+ requestId: string;
4
+ }
5
+ export interface IGetRumSessionSummaryParams {
6
+ applicationId: string;
7
+ sessionId: string;
8
+ }
9
+ export interface IGetReleasePreviewParams {
10
+ applicationId: string;
11
+ release: string;
12
+ }
13
+ export interface IGetActorPreviewParams {
14
+ applicationId: string;
15
+ actorKey: string;
16
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=explore-preview.request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"explore-preview.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/explore-preview.request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,25 @@
1
+ import { ExploreSource } from '../../../enum/explore-source.enum';
2
+ export declare const EXPLORE_KEYS_LIMIT = 50;
3
+ export declare const EXPLORE_VALUES_LIMIT = 20;
4
+ export declare const EXPLORE_VALUES_SAMPLE = 100000;
5
+ export declare const EXPLORE_PREFIX_MAX_LENGTH = 128;
6
+ export interface IExploreParams {
7
+ applicationId: string;
8
+ source: ExploreSource;
9
+ }
10
+ interface IExploreScopeQuery {
11
+ from: Date;
12
+ to: Date;
13
+ environment?: string[];
14
+ }
15
+ export type IListExploreKeysParams = IExploreParams;
16
+ export interface IListExploreKeysQuery extends IExploreScopeQuery {
17
+ prefix?: string;
18
+ }
19
+ export type IListExploreValuesParams = IExploreParams;
20
+ export interface IListExploreValuesQuery extends IExploreScopeQuery {
21
+ field: string;
22
+ prefix?: string;
23
+ expression?: string;
24
+ }
25
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EXPLORE_PREFIX_MAX_LENGTH = exports.EXPLORE_VALUES_SAMPLE = exports.EXPLORE_VALUES_LIMIT = exports.EXPLORE_KEYS_LIMIT = void 0;
4
+ exports.EXPLORE_KEYS_LIMIT = 50;
5
+ exports.EXPLORE_VALUES_LIMIT = 20;
6
+ exports.EXPLORE_VALUES_SAMPLE = 100_000;
7
+ exports.EXPLORE_PREFIX_MAX_LENGTH = 128;
8
+ //# sourceMappingURL=explore.request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"explore.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/explore.request.ts"],"names":[],"mappings":";;;AAGa,QAAA,kBAAkB,GAAG,EAAE,CAAC;AAGxB,QAAA,oBAAoB,GAAG,EAAE,CAAC;AAM1B,QAAA,qBAAqB,GAAG,OAAO,CAAC;AAGhC,QAAA,yBAAyB,GAAG,GAAG,CAAC"}
@@ -1,4 +1,4 @@
1
- import { QueryPaginate } from '..';
1
+ import { CursorQuery, QueryPaginate } from '..';
2
2
  import { MonitorTextLocale } from '../../../../texts/error-type-texts';
3
3
  import { IncidentSeverity, IncidentSource, IncidentStatus } from '../../../enum';
4
4
  import { ErrorReportPanelChannel } from './error-group.request';
@@ -17,6 +17,8 @@ export type IPaginateIncidentQuery = {
17
17
  } & QueryPaginate;
18
18
  export type IGetIncidentParams = IIncidentRouteParams;
19
19
  export type IListTimelineIncidentParams = IIncidentRouteParams;
20
+ export type IListTriggersIncidentParams = IIncidentRouteParams;
21
+ export type IListTriggersIncidentQuery = CursorQuery;
20
22
  export type IAcknowledgeIncidentParams = IIncidentRouteParams;
21
23
  export type IAssignIncidentParams = IIncidentRouteParams;
22
24
  export interface IAssignIncidentBody {
@@ -0,0 +1,38 @@
1
+ import { ExploreSource } from '../../../enum/explore-source.enum';
2
+ import { IMonitorSavedViewPeriod } from '../../models/monitor-saved-view.model';
3
+ export declare const MONITOR_SAVED_VIEW_NAME_MAX_LENGTH = 80;
4
+ export declare const MONITOR_SAVED_VIEW_COLUMNS_MAX = 50;
5
+ export interface IMonitorSavedViewParams {
6
+ applicationId: string;
7
+ }
8
+ export interface IListMonitorSavedViewsQuery {
9
+ source?: ExploreSource;
10
+ pinned?: boolean;
11
+ }
12
+ export type IListMonitorSavedViewsParams = IMonitorSavedViewParams;
13
+ export type ICreateMonitorSavedViewParams = IMonitorSavedViewParams;
14
+ export interface ICreateMonitorSavedViewBody {
15
+ source: ExploreSource;
16
+ name: string;
17
+ expression?: string;
18
+ period: IMonitorSavedViewPeriod;
19
+ environment?: string | null;
20
+ columns?: string[];
21
+ query?: Record<string, unknown> | null;
22
+ shared?: boolean;
23
+ pinned?: boolean;
24
+ }
25
+ export interface IUpdateMonitorSavedViewParams extends IMonitorSavedViewParams {
26
+ savedViewId: string;
27
+ }
28
+ export interface IUpdateMonitorSavedViewBody {
29
+ name?: string;
30
+ expression?: string;
31
+ period?: IMonitorSavedViewPeriod;
32
+ environment?: string | null;
33
+ columns?: string[];
34
+ query?: Record<string, unknown> | null;
35
+ shared?: boolean;
36
+ pinned?: boolean;
37
+ }
38
+ export type IDeleteMonitorSavedViewParams = IUpdateMonitorSavedViewParams;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MONITOR_SAVED_VIEW_COLUMNS_MAX = exports.MONITOR_SAVED_VIEW_NAME_MAX_LENGTH = void 0;
4
+ exports.MONITOR_SAVED_VIEW_NAME_MAX_LENGTH = 80;
5
+ exports.MONITOR_SAVED_VIEW_COLUMNS_MAX = 50;
6
+ //# sourceMappingURL=monitor-saved-view.request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"monitor-saved-view.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/monitor-saved-view.request.ts"],"names":[],"mappings":";;;AAIa,QAAA,kCAAkC,GAAG,EAAE,CAAC;AAGxC,QAAA,8BAA8B,GAAG,EAAE,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { BasePaginate, IResponse } from '..';
2
2
  import { IExportRemoval } from '../../../../utils/export-redaction/redact-for-export';
3
3
  import { ErrorGroupCountGranularity, ErrorGroupStatus, MonitorErrorType, MonitorReportBlock, ReportBlockAvailability } from '../../../enum';
4
- import { IApplicationLog } from '../../models/application-log.model';
4
+ import { IErrorGroupOccurrenceResolved } from './explore-preview.response';
5
5
  import { IMonitorErrorGroup, IMonitorErrorGroupRelease } from '../../models/monitor-error-group.model';
6
6
  export type IErrorGroupListItem = IMonitorErrorGroup & {
7
7
  last24h: number[];
@@ -22,7 +22,7 @@ export interface IGetCountsErrorGroupData {
22
22
  sessionCount: number;
23
23
  }
24
24
  export type IGetCountsErrorGroupResponse = IResponse<IGetCountsErrorGroupData>;
25
- export type IPaginateOccurrencesErrorGroupResponse = IResponse<BasePaginate<IApplicationLog>>;
25
+ export type IPaginateOccurrencesErrorGroupResponse = IResponse<BasePaginate<IErrorGroupOccurrenceResolved>>;
26
26
  export interface IErrorGroupFeatureFlagRow {
27
27
  key: string;
28
28
  value: string;
@@ -0,0 +1,94 @@
1
+ import { IResponse } from '..';
2
+ import { APIMethod, LogEmitter, LogLevel } from '../../../enum';
3
+ import { RumDeviceType } from '../../../../rum/rum.enums';
4
+ import { IOutboundTimings } from '../../outbound-timings';
5
+ import { IApplicationLog } from '../../models/application-log.model';
6
+ import { IRumRequestListItem } from './rum-read.response';
7
+ export interface ILogLine {
8
+ id: string;
9
+ level: LogLevel;
10
+ title: string | null;
11
+ message: string;
12
+ scenario: string | null;
13
+ context: string | null;
14
+ processId: string;
15
+ requestId: string | null;
16
+ dateValue: Date;
17
+ environment: string;
18
+ release: string | null;
19
+ emitter: LogEmitter;
20
+ sessionId: string | null;
21
+ }
22
+ export interface IServerRequestEndpoint {
23
+ method: APIMethod;
24
+ path: string;
25
+ status: number;
26
+ responseTime: number;
27
+ outboundTimings: IOutboundTimings | null;
28
+ }
29
+ export interface IServerRequestPreview {
30
+ requestId: string;
31
+ endpoint: IServerRequestEndpoint | null;
32
+ logs: ILogLine[];
33
+ browserRequest: IRumRequestListItem | null;
34
+ session: {
35
+ id: string;
36
+ startedAt: Date;
37
+ offsetMs: number;
38
+ } | null;
39
+ }
40
+ export type IGetServerRequestPreviewResponse = IResponse<IServerRequestPreview>;
41
+ export interface IRumSessionSummary {
42
+ id: string;
43
+ environment: string;
44
+ release: string | null;
45
+ startedAt: Date;
46
+ durationMs: number;
47
+ pageCount: number;
48
+ errorCount: number;
49
+ frustrationCount: number;
50
+ hasReplay: boolean;
51
+ live: boolean;
52
+ device: {
53
+ browser: string | null;
54
+ os: string | null;
55
+ type: RumDeviceType | null;
56
+ };
57
+ country: string | null;
58
+ actorKey: string | null;
59
+ }
60
+ export type IGetRumSessionSummaryResponse = IResponse<IRumSessionSummary>;
61
+ export interface IReleasePreview {
62
+ release: string;
63
+ firstSeenAt: Date;
64
+ environments: string[];
65
+ sessionCount: number;
66
+ newErrorGroupCount: number;
67
+ errorGroupCount: number;
68
+ previousRelease: string | null;
69
+ }
70
+ export type IGetReleasePreviewResponse = IResponse<IReleasePreview>;
71
+ export interface IActorPreview {
72
+ actorKey: string;
73
+ lastSeenAt: Date;
74
+ sessionCount: number;
75
+ errorCount: number;
76
+ recentSessions: {
77
+ id: string;
78
+ startedAt: Date;
79
+ }[];
80
+ }
81
+ export type IGetActorPreviewResponse = IResponse<IActorPreview>;
82
+ export interface IErrorGroupOccurrenceResolved extends IApplicationLog {
83
+ session: {
84
+ id: string;
85
+ atMs: number;
86
+ } | null;
87
+ serverRequest: {
88
+ requestId: string;
89
+ } | null;
90
+ logsLink: {
91
+ requestId: string;
92
+ } | null;
93
+ replayAvailable: boolean;
94
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=explore-preview.response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"explore-preview.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/explore-preview.response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,22 @@
1
+ import { IResponse } from '..';
2
+ import { ExploreKeyType } from '../../../enum/explore-source.enum';
3
+ export interface IExploreKey {
4
+ name: string;
5
+ type: ExploreKeyType;
6
+ count: number;
7
+ facet: boolean;
8
+ enumValues: string[] | null;
9
+ }
10
+ export interface IExploreValue {
11
+ value: string;
12
+ count: number;
13
+ }
14
+ export interface IListExploreKeysData {
15
+ keys: IExploreKey[];
16
+ }
17
+ export type IListExploreKeysResponse = IResponse<IListExploreKeysData>;
18
+ export interface IListExploreValuesData {
19
+ values: IExploreValue[];
20
+ estimated: boolean;
21
+ }
22
+ export type IListExploreValuesResponse = IResponse<IListExploreValuesData>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=explore.response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"explore.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/explore.response.ts"],"names":[],"mappings":""}
@@ -1,6 +1,6 @@
1
1
  import { BasePaginate, IResponse } from '..';
2
2
  import { IExportRemoval } from '../../../../utils/export-redaction/redact-for-export';
3
- import { IMonitorIncident, IMonitorIncidentEvent } from '../../models/monitor-incident.model';
3
+ import { IIncidentTrigger, IMonitorIncident, IMonitorIncidentEvent } from '../../models/monitor-incident.model';
4
4
  export type IPaginateIncidentResponse = IResponse<BasePaginate<IMonitorIncident>>;
5
5
  export interface IMonitorIncidentDeliveryStats {
6
6
  sentCount: number;
@@ -15,6 +15,16 @@ export interface IListTimelineIncidentData {
15
15
  events: IMonitorIncidentEvent[];
16
16
  }
17
17
  export type IListTimelineIncidentResponse = IResponse<IListTimelineIncidentData>;
18
+ export interface IListTriggersIncidentData {
19
+ data: IIncidentTrigger[];
20
+ nextCursor: string | null;
21
+ total: number;
22
+ totalCapped: boolean;
23
+ retainedNote: {
24
+ occurrenceCount: number;
25
+ };
26
+ }
27
+ export type IListTriggersIncidentResponse = IResponse<IListTriggersIncidentData>;
18
28
  export interface IAcknowledgeIncidentData {
19
29
  incident: IMonitorIncident;
20
30
  }
@@ -0,0 +1,8 @@
1
+ import { IResponse } from '..';
2
+ import { IMonitorSavedView } from '../../models/monitor-saved-view.model';
3
+ export type IListMonitorSavedViewsResponse = IResponse<IMonitorSavedView[]>;
4
+ export type ICreateMonitorSavedViewResponse = IResponse<IMonitorSavedView>;
5
+ export type IUpdateMonitorSavedViewResponse = IResponse<IMonitorSavedView>;
6
+ export type IDeleteMonitorSavedViewResponse = IResponse<{
7
+ id: string;
8
+ }>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=monitor-saved-view.response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"monitor-saved-view.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/monitor-saved-view.response.ts"],"names":[],"mappings":""}
@@ -177,7 +177,9 @@ export interface IRumLiveRoute {
177
177
  p75LcpMs: number | null;
178
178
  }
179
179
  export type IGetRumLiveRoutesResponse = IResponse<IRumLiveRoute[]>;
180
- export type IRumRequestListItem = Omit<IRumRequest, 'dateValue' | 'applicationId'>;
180
+ export type IRumRequestListItem = Omit<IRumRequest, 'dateValue' | 'applicationId' | 'createdAt'> & {
181
+ createdAt: Date;
182
+ };
181
183
  export interface IRumRequestPage {
182
184
  items: IRumRequestListItem[];
183
185
  nextCursor: string | null;
@@ -44,6 +44,7 @@ export interface IRumSocketMessageItem {
44
44
  binaryType: RumSocketBinaryType | null;
45
45
  payload: string | null;
46
46
  json: boolean;
47
+ createdAt: Date;
47
48
  }
48
49
  export interface IRumSocketMessageSearchItem extends IRumSocketMessageItem {
49
50
  connectionKind: RumSocketConnectionKind | null;
@@ -11,4 +11,5 @@ export interface KeysetPaginate<T> {
11
11
  }
12
12
  export interface ApplicationLogKeysetPaginate extends KeysetPaginate<IPaginatedApplicationLog> {
13
13
  rehydrationWatermark: Date | null;
14
+ estimatedTotalCapped: boolean;
14
15
  }
@@ -41,9 +41,11 @@ export * from './models/rum-feedback.model';
41
41
  export * from './models/rum-frustration.model';
42
42
  export * from './models/rum-long-task.model';
43
43
  export * from './models/rum-saved-view.model';
44
+ export * from './models/monitor-saved-view.model';
44
45
  export * from './models/source-map-artifact.model';
45
46
  export * from './models/monitor-audit-event.model';
46
47
  export * from './api';
47
48
  export * from './dto';
48
49
  export * from './rate-limit';
49
50
  export * from './header-capture';
51
+ export * from './outbound-timings';
@@ -57,10 +57,12 @@ __exportStar(require("./models/rum-feedback.model"), exports);
57
57
  __exportStar(require("./models/rum-frustration.model"), exports);
58
58
  __exportStar(require("./models/rum-long-task.model"), exports);
59
59
  __exportStar(require("./models/rum-saved-view.model"), exports);
60
+ __exportStar(require("./models/monitor-saved-view.model"), exports);
60
61
  __exportStar(require("./models/source-map-artifact.model"), exports);
61
62
  __exportStar(require("./models/monitor-audit-event.model"), exports);
62
63
  __exportStar(require("./api"), exports);
63
64
  __exportStar(require("./dto"), exports);
64
65
  __exportStar(require("./rate-limit"), exports);
65
66
  __exportStar(require("./header-capture"), exports);
67
+ __exportStar(require("./outbound-timings"), exports);
66
68
  //# sourceMappingURL=index.js.map
@@ -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;AAC7C,sFAAoE;AACpE,6DAA2C;AAC3C,4DAA0C;AAC1C,kEAAgD;AAChD,4EAA0D;AAC1D,+DAA6C;AAC7C,6DAA2C;AAC3C,mEAAiD;AACjD,4DAA0C;AAC1C,mEAAiD;AACjD,mEAAiD;AACjD,oEAAkD;AAClD,8DAA4C;AAC5C,iEAA+C;AAC/C,+DAA6C;AAC7C,gEAA8C;AAC9C,qEAAmD;AACnD,qEAAmD;AAGnD,wCAAsB;AACtB,wCAAsB;AACtB,+CAA6B;AAC7B,mDAAiC"}
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,4DAA0C;AAC1C,kEAAgD;AAChD,4EAA0D;AAC1D,+DAA6C;AAC7C,6DAA2C;AAC3C,mEAAiD;AACjD,4DAA0C;AAC1C,mEAAiD;AACjD,mEAAiD;AACjD,oEAAkD;AAClD,8DAA4C;AAC5C,iEAA+C;AAC/C,+DAA6C;AAC7C,gEAA8C;AAC9C,oEAAkD;AAClD,qEAAmD;AACnD,qEAAmD;AAGnD,wCAAsB;AACtB,wCAAsB;AACtB,+CAA6B;AAC7B,mDAAiC;AACjC,qDAAmC"}
@@ -1,4 +1,5 @@
1
1
  import { APIMethod } from '../../enum';
2
+ import { IOutboundTimings } from '../outbound-timings';
2
3
  import { IApplicationLog } from './application-log.model';
3
4
  export interface IApplicationLogEndpoint {
4
5
  id?: string;
@@ -12,6 +13,7 @@ export interface IApplicationLogEndpoint {
12
13
  responseBody: Record<string, unknown> | string | null;
13
14
  requestHeaders?: Record<string, string> | null;
14
15
  responseHeaders?: Record<string, string> | null;
16
+ outboundTimings?: IOutboundTimings | null;
15
17
  responseHttpCode: number;
16
18
  ip: string[];
17
19
  method: APIMethod;
@@ -1,4 +1,25 @@
1
- import { IncidentEventType, IncidentSeverity, IncidentSource, IncidentStatus, IncidentSuppressedReason } from '../../enum';
1
+ import type { IAlertRuleCondition } from '../../../rules/condition.types';
2
+ import { AlertRuleMode, IncidentEventType, IncidentSeverity, IncidentSource, IncidentStatus, IncidentSuppressedReason, IncidentTriggerSource } from '../../enum';
3
+ import type { IMonitorAlertRuleFilter, IMonitorAlertRuleRumMetric } from './monitor-alert-rule.model';
4
+ export interface IIncidentLogTriggerCondition {
5
+ applicationIds: string[];
6
+ windowMinutes: number;
7
+ mode: AlertRuleMode;
8
+ filter: IMonitorAlertRuleFilter;
9
+ condition: IAlertRuleCondition | null;
10
+ }
11
+ export interface IIncidentRumTriggerCondition {
12
+ applicationIds: string[];
13
+ windowMinutes: number;
14
+ rumMetric: IMonitorAlertRuleRumMetric;
15
+ }
16
+ export type IIncidentTriggerCondition = IIncidentLogTriggerCondition | IIncidentRumTriggerCondition;
17
+ export interface IIncidentTrigger {
18
+ kind: IncidentTriggerSource;
19
+ refId: string;
20
+ occurredAt: string;
21
+ summary: string;
22
+ }
2
23
  export interface IMonitorIncident {
3
24
  id: string;
4
25
  projectId: string;
@@ -12,6 +33,8 @@ export interface IMonitorIncident {
12
33
  title: string;
13
34
  environment: string | null;
14
35
  groupValues: Record<string, string | null>;
36
+ triggerSource: IncidentTriggerSource | null;
37
+ triggerCondition: IIncidentTriggerCondition | null;
15
38
  startedAt: Date;
16
39
  lastSeenAt: Date;
17
40
  endedAt: Date | null;
@@ -0,0 +1,24 @@
1
+ import { ExploreSource } from '../../enum/explore-source.enum';
2
+ import { MonitorPeriodPreset } from '../../enum/monitor-saved-view.enum';
3
+ export type IMonitorSavedViewPeriod = {
4
+ preset: MonitorPeriodPreset;
5
+ } | {
6
+ from: string;
7
+ to: string;
8
+ };
9
+ export interface IMonitorSavedView {
10
+ id: string;
11
+ applicationId: string;
12
+ source: ExploreSource;
13
+ name: string;
14
+ expression: string;
15
+ period: IMonitorSavedViewPeriod;
16
+ environment: string | null;
17
+ columns: string[];
18
+ query: Record<string, unknown> | null;
19
+ shared: boolean;
20
+ pinned: boolean;
21
+ createdBy: string;
22
+ createdAt: string;
23
+ updatedAt: string;
24
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=monitor-saved-view.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"monitor-saved-view.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/monitor-saved-view.model.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ import { OutboundCallKind } from '../enum';
2
+ export interface IOutboundCall {
3
+ kind: OutboundCallKind;
4
+ target: string;
5
+ durationMs: number;
6
+ offsetMs: number;
7
+ }
8
+ export interface IOutboundTimings {
9
+ totals: Record<OutboundCallKind, {
10
+ count: number;
11
+ totalMs: number;
12
+ }>;
13
+ slowest: IOutboundCall[];
14
+ truncated: boolean;
15
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=outbound-timings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"outbound-timings.js","sourceRoot":"","sources":["../../../src/types/interface/outbound-timings.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/monitor",
3
- "version": "14.0.0",
3
+ "version": "16.0.0",
4
4
  "description": "Core package to interact with Abyss-Monitor",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",