@abyss-project/monitor 16.6.0 → 17.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 (78) hide show
  1. package/dist/api/rum-read.api.d.ts +1 -6
  2. package/dist/api/rum-read.api.js +1 -21
  3. package/dist/api/rum-read.api.js.map +1 -1
  4. package/dist/index.d.ts +0 -5
  5. package/dist/index.js +0 -5
  6. package/dist/index.js.map +1 -1
  7. package/dist/mcp/monitor-mcp-tool.types.d.ts +2 -14
  8. package/dist/mcp/monitor-mcp-tool.types.js.map +1 -1
  9. package/dist/mcp/monitor-mcp-tools.d.ts +1 -2
  10. package/dist/mcp/monitor-mcp-tools.js +4 -33
  11. package/dist/mcp/monitor-mcp-tools.js.map +1 -1
  12. package/dist/rules/index.d.ts +0 -6
  13. package/dist/rules/index.js +0 -6
  14. package/dist/rules/index.js.map +1 -1
  15. package/dist/types/enum/incident-event-type.enum.d.ts +0 -1
  16. package/dist/types/enum/incident-event-type.enum.js +0 -1
  17. package/dist/types/enum/incident-event-type.enum.js.map +1 -1
  18. package/dist/types/enum/index.d.ts +0 -3
  19. package/dist/types/enum/index.js +0 -3
  20. package/dist/types/enum/index.js.map +1 -1
  21. package/dist/types/enum/rum-read.enum.d.ts +0 -4
  22. package/dist/types/enum/rum-read.enum.js +1 -6
  23. package/dist/types/enum/rum-read.enum.js.map +1 -1
  24. package/dist/types/interface/api/requests/alert-rule.request.d.ts +18 -12
  25. package/dist/types/interface/api/requests/alert-rule.request.js +46 -0
  26. package/dist/types/interface/api/requests/alert-rule.request.js.map +1 -1
  27. package/dist/types/interface/api/requests/application-event.request.d.ts +0 -6
  28. package/dist/types/interface/api/requests/application-log.request.d.ts +0 -9
  29. package/dist/types/interface/api/requests/error-group.request.d.ts +2 -10
  30. package/dist/types/interface/api/requests/error-group.request.js +0 -2
  31. package/dist/types/interface/api/requests/error-group.request.js.map +1 -1
  32. package/dist/types/interface/api/requests/explore.request.d.ts +6 -2
  33. package/dist/types/interface/api/requests/explore.request.js +6 -1
  34. package/dist/types/interface/api/requests/explore.request.js.map +1 -1
  35. package/dist/types/interface/api/requests/incident.request.d.ts +0 -4
  36. package/dist/types/interface/api/requests/monitor-saved-view.request.d.ts +2 -2
  37. package/dist/types/interface/api/requests/rum-read.request.d.ts +6 -66
  38. package/dist/types/interface/api/requests/rum-read.request.js.map +1 -1
  39. package/dist/types/interface/api/requests/rum-socket-messages.request.d.ts +0 -4
  40. package/dist/types/interface/api/responses/alert-rule.response.d.ts +1 -0
  41. package/dist/types/interface/api/responses/rum-read.response.d.ts +0 -11
  42. package/dist/types/interface/api/type-message/keyset-paginate.d.ts +0 -1
  43. package/dist/types/interface/index.d.ts +0 -1
  44. package/dist/types/interface/index.js +0 -1
  45. package/dist/types/interface/index.js.map +1 -1
  46. package/dist/types/interface/models/monitor-alert-rule.model.d.ts +4 -13
  47. package/dist/types/interface/models/monitor-incident.model.d.ts +7 -7
  48. package/package.json +1 -2
  49. package/dist/rules/condition.bounds.d.ts +0 -44
  50. package/dist/rules/condition.bounds.js +0 -356
  51. package/dist/rules/condition.bounds.js.map +0 -1
  52. package/dist/rules/condition.compiler.d.ts +0 -4
  53. package/dist/rules/condition.compiler.js +0 -101
  54. package/dist/rules/condition.compiler.js.map +0 -1
  55. package/dist/rules/condition.parser.d.ts +0 -3
  56. package/dist/rules/condition.parser.js +0 -413
  57. package/dist/rules/condition.parser.js.map +0 -1
  58. package/dist/rules/condition.printer.d.ts +0 -3
  59. package/dist/rules/condition.printer.js +0 -92
  60. package/dist/rules/condition.printer.js.map +0 -1
  61. package/dist/rules/condition.types.d.ts +0 -87
  62. package/dist/rules/condition.types.js +0 -52
  63. package/dist/rules/condition.types.js.map +0 -1
  64. package/dist/rules/safe-regex.d.ts +0 -9
  65. package/dist/rules/safe-regex.js +0 -28
  66. package/dist/rules/safe-regex.js.map +0 -1
  67. package/dist/types/enum/alert-rule-field.enum.d.ts +0 -18
  68. package/dist/types/enum/alert-rule-field.enum.js +0 -22
  69. package/dist/types/enum/alert-rule-field.enum.js.map +0 -1
  70. package/dist/types/enum/alert-rule-group-by.enum.d.ts +0 -7
  71. package/dist/types/enum/alert-rule-group-by.enum.js +0 -12
  72. package/dist/types/enum/alert-rule-group-by.enum.js.map +0 -1
  73. package/dist/types/enum/alert-rule-operator.enum.d.ts +0 -16
  74. package/dist/types/enum/alert-rule-operator.enum.js +0 -21
  75. package/dist/types/enum/alert-rule-operator.enum.js.map +0 -1
  76. package/dist/types/interface/models/rum-saved-view.model.d.ts +0 -15
  77. package/dist/types/interface/models/rum-saved-view.model.js +0 -3
  78. package/dist/types/interface/models/rum-saved-view.model.js.map +0 -1
@@ -9,21 +9,12 @@ export interface IPaginateApplicationLogParams {
9
9
  applicationId: string;
10
10
  }
11
11
  export type IPaginateApplicationLogQuery = CursorQuery & {
12
- title?: string;
13
- message?: string;
14
- level?: LogLevel[];
15
- context?: string;
16
- scenario?: string;
17
- requestId?: string;
18
- processId?: string;
19
12
  dateValueBefore?: Date;
20
13
  dateValueAfter?: Date;
21
14
  orderByDateAsc?: boolean;
22
15
  shouldGetOnlyLogEndpoint?: boolean;
23
16
  origin?: ApplicationLogOrigin;
24
17
  environment?: string;
25
- release?: string;
26
- fingerprint?: string;
27
18
  expression?: string;
28
19
  };
29
20
  export interface ICreateApplicationLogParams {
@@ -1,8 +1,6 @@
1
1
  import { QueryPaginate } from '..';
2
2
  import { MonitorTextLocale } from '../../../../texts/error-type-texts';
3
- import { ErrorGroupCountGranularity, ErrorGroupOrderBy, ErrorGroupStatus, ErrorReportExportChannel, LogEmitter, MonitorErrorType, MonitorReportBlock } from '../../../enum';
4
- import { IRumAttributeFilter } from './rum-read.request';
5
- export declare const ERROR_GROUP_FEATURE_FLAG_FILTER_DAYS = 30;
3
+ import { ErrorGroupCountGranularity, ErrorGroupOrderBy, ErrorGroupStatus, ErrorReportExportChannel, MonitorReportBlock } from '../../../enum';
6
4
  export interface IErrorGroupProjectParams {
7
5
  projectId: string;
8
6
  }
@@ -13,15 +11,9 @@ export type IPaginateErrorGroupParams = IErrorGroupProjectParams;
13
11
  export type IPaginateErrorGroupQuery = {
14
12
  applicationIds?: string[];
15
13
  environment?: string;
16
- status?: ErrorGroupStatus[];
17
- errorType?: MonitorErrorType[];
18
- emitter?: LogEmitter;
19
- release?: string;
20
- featureFlags?: IRumAttributeFilter[];
21
14
  fingerprint?: string;
22
15
  lastSeenAfter?: Date;
23
16
  lastSeenBefore?: Date;
24
- search?: string;
25
17
  orderBy?: ErrorGroupOrderBy;
26
18
  descending?: boolean;
27
19
  expression?: string;
@@ -53,7 +45,7 @@ export interface IUpdateStatusErrorGroupBody {
53
45
  assigneeUserId?: string | null;
54
46
  }
55
47
  export type IGetSummaryErrorGroupParams = IErrorGroupProjectParams;
56
- export type IGetSummaryErrorGroupQuery = Pick<IPaginateErrorGroupQuery, 'applicationIds' | 'environment' | 'release' | 'lastSeenAfter' | 'lastSeenBefore' | 'search' | 'featureFlags' | 'emitter' | 'expression'>;
48
+ export type IGetSummaryErrorGroupQuery = Pick<IPaginateErrorGroupQuery, 'applicationIds' | 'environment' | 'lastSeenAfter' | 'lastSeenBefore' | 'expression'>;
57
49
  export type ErrorReportPanelChannel = Exclude<ErrorReportExportChannel, ErrorReportExportChannel.MCP>;
58
50
  export type IGetAiReportErrorGroupParams = IErrorGroupParams;
59
51
  export interface IGetAiReportErrorGroupQuery {
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ERROR_GROUP_FEATURE_FLAG_FILTER_DAYS = void 0;
4
- exports.ERROR_GROUP_FEATURE_FLAG_FILTER_DAYS = 30;
5
3
  //# sourceMappingURL=error-group.request.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"error-group.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/error-group.request.ts"],"names":[],"mappings":";;;AAiBa,QAAA,oCAAoC,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"error-group.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/error-group.request.ts"],"names":[],"mappings":""}
@@ -8,6 +8,7 @@ export interface IExploreParams {
8
8
  source: ExploreSource;
9
9
  }
10
10
  export declare const EXPLORE_PROJECT_SOURCES: readonly ExploreSource[];
11
+ export declare const EXPLORE_APPLICATIONS_SOURCES: readonly ExploreSource[];
11
12
  export interface IProjectExploreParams {
12
13
  projectId: string;
13
14
  source: ExploreSource;
@@ -27,8 +28,11 @@ export interface IListExploreValuesQuery extends IExploreScopeQuery {
27
28
  prefix?: string;
28
29
  expression?: string;
29
30
  }
31
+ interface IProjectExploreApplicationsQuery {
32
+ applicationIds?: string[];
33
+ }
30
34
  export type IListProjectExploreKeysParams = IProjectExploreParams;
31
- export type IListProjectExploreKeysQuery = IListExploreKeysQuery;
35
+ export type IListProjectExploreKeysQuery = IListExploreKeysQuery & IProjectExploreApplicationsQuery;
32
36
  export type IListProjectExploreValuesParams = IProjectExploreParams;
33
- export type IListProjectExploreValuesQuery = IListExploreValuesQuery;
37
+ export type IListProjectExploreValuesQuery = IListExploreValuesQuery & IProjectExploreApplicationsQuery;
34
38
  export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EXPLORE_PROJECT_SOURCES = exports.EXPLORE_PREFIX_MAX_LENGTH = exports.EXPLORE_VALUES_SAMPLE = exports.EXPLORE_VALUES_LIMIT = exports.EXPLORE_KEYS_LIMIT = void 0;
3
+ exports.EXPLORE_APPLICATIONS_SOURCES = exports.EXPLORE_PROJECT_SOURCES = exports.EXPLORE_PREFIX_MAX_LENGTH = exports.EXPLORE_VALUES_SAMPLE = exports.EXPLORE_VALUES_LIMIT = exports.EXPLORE_KEYS_LIMIT = void 0;
4
4
  const explore_source_enum_1 = require("../../../enum/explore-source.enum");
5
5
  exports.EXPLORE_KEYS_LIMIT = 50;
6
6
  exports.EXPLORE_VALUES_LIMIT = 20;
@@ -10,4 +10,9 @@ exports.EXPLORE_PROJECT_SOURCES = [
10
10
  explore_source_enum_1.ExploreSource.ERROR_GROUPS,
11
11
  explore_source_enum_1.ExploreSource.INCIDENTS,
12
12
  ];
13
+ exports.EXPLORE_APPLICATIONS_SOURCES = [
14
+ explore_source_enum_1.ExploreSource.LOGS,
15
+ explore_source_enum_1.ExploreSource.ENDPOINTS,
16
+ explore_source_enum_1.ExploreSource.RUM_REQUESTS,
17
+ ];
13
18
  //# sourceMappingURL=explore.request.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"explore.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/explore.request.ts"],"names":[],"mappings":";;;AAAA,2EAAkE;AAGrD,QAAA,kBAAkB,GAAG,EAAE,CAAC;AAGxB,QAAA,oBAAoB,GAAG,EAAE,CAAC;AAM1B,QAAA,qBAAqB,GAAG,OAAO,CAAC;AAGhC,QAAA,yBAAyB,GAAG,GAAG,CAAC;AAYhC,QAAA,uBAAuB,GAA6B;IAC/D,mCAAa,CAAC,YAAY;IAC1B,mCAAa,CAAC,SAAS;CACxB,CAAC"}
1
+ {"version":3,"file":"explore.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/explore.request.ts"],"names":[],"mappings":";;;AAAA,2EAAkE;AAGrD,QAAA,kBAAkB,GAAG,EAAE,CAAC;AAGxB,QAAA,oBAAoB,GAAG,EAAE,CAAC;AAM1B,QAAA,qBAAqB,GAAG,OAAO,CAAC;AAGhC,QAAA,yBAAyB,GAAG,GAAG,CAAC;AAYhC,QAAA,uBAAuB,GAA6B;IAC/D,mCAAa,CAAC,YAAY;IAC1B,mCAAa,CAAC,SAAS;CACxB,CAAC;AAOW,QAAA,4BAA4B,GAA6B;IACpE,mCAAa,CAAC,IAAI;IAClB,mCAAa,CAAC,SAAS;IACvB,mCAAa,CAAC,YAAY;CAC3B,CAAC"}
@@ -1,6 +1,5 @@
1
1
  import { CursorQuery, QueryPaginate } from '..';
2
2
  import { MonitorTextLocale } from '../../../../texts/error-type-texts';
3
- import { IncidentSeverity, IncidentSource, IncidentStatus } from '../../../enum';
4
3
  import { ErrorReportPanelChannel } from './error-group.request';
5
4
  export interface IIncidentRouteParams {
6
5
  projectId: string;
@@ -10,9 +9,6 @@ export interface IPaginateIncidentParams {
10
9
  projectId: string;
11
10
  }
12
11
  export type IPaginateIncidentQuery = {
13
- status?: IncidentStatus[];
14
- severity?: IncidentSeverity[];
15
- source?: IncidentSource[];
16
12
  applicationIds?: string[];
17
13
  expression?: string;
18
14
  } & QueryPaginate;
@@ -42,9 +42,9 @@ export interface IProjectMonitorSavedViewParams {
42
42
  export type IListProjectMonitorSavedViewsParams = IProjectMonitorSavedViewParams;
43
43
  export type IListProjectMonitorSavedViewsQuery = IListMonitorSavedViewsQuery;
44
44
  export type ICreateProjectMonitorSavedViewParams = IProjectMonitorSavedViewParams;
45
- export type ICreateProjectMonitorSavedViewBody = ICreateMonitorSavedViewBody;
45
+ export type ICreateProjectMonitorSavedViewBody = Omit<ICreateMonitorSavedViewBody, 'pinned'>;
46
46
  export interface IUpdateProjectMonitorSavedViewParams extends IProjectMonitorSavedViewParams {
47
47
  savedViewId: string;
48
48
  }
49
- export type IUpdateProjectMonitorSavedViewBody = IUpdateMonitorSavedViewBody;
49
+ export type IUpdateProjectMonitorSavedViewBody = Omit<IUpdateMonitorSavedViewBody, 'pinned'>;
50
50
  export type IDeleteProjectMonitorSavedViewParams = IUpdateProjectMonitorSavedViewParams;
@@ -1,6 +1,4 @@
1
- import { RumDeviceType, RumRequestKind, RumRequestOutcome } from '../../../../rum/rum.enums';
2
- import { RumAttributeOperator, RumSavedViewKind, RumSessionKeptFilter, RumSessionOrderBy } from '../../../enum';
3
- import { IQueryRumExplorerBody } from './rum-explorer.request';
1
+ import { RumAttributeOperator, RumSessionKeptFilter, RumSessionOrderBy } from '../../../enum';
4
2
  export declare const RUM_LIVE_SESSION_WINDOW_MS: number;
5
3
  export declare const RUM_SESSION_MAX_DURATION_MS: number;
6
4
  export declare const RUM_LIVE_RECENT_WINDOW_MS: number;
@@ -14,29 +12,12 @@ export interface IRumAttributeFilter {
14
12
  operator: RumAttributeOperator;
15
13
  value?: string;
16
14
  }
17
- export interface IRumSessionFilters {
15
+ export interface IPaginateRumSessionsQuery {
18
16
  environment: string;
19
17
  from: Date;
20
18
  to: Date;
21
- release?: string;
22
- country?: string;
23
- deviceType?: RumDeviceType;
24
- hasError?: boolean;
25
- hasFailedRequest?: boolean;
26
- hasFrustration?: boolean;
27
- hasFeedback?: boolean;
28
- lowRating?: boolean;
29
- hasBugReport?: boolean;
30
- action?: string;
31
- actor?: string;
32
- attributes?: IRumAttributeFilter[];
33
- featureFlags?: IRumAttributeFilter[];
34
- live?: boolean;
35
- currentRoute?: string;
36
- minTotalBytes?: number;
37
19
  kept?: RumSessionKeptFilter;
38
- }
39
- export interface IPaginateRumSessionsQuery extends IRumSessionFilters {
20
+ actor?: string;
40
21
  orderBy?: RumSessionOrderBy;
41
22
  cursor?: string;
42
23
  limit?: number;
@@ -68,61 +49,20 @@ export interface IGetRumLiveSessionStatusQuery {
68
49
  sessionIds: string[];
69
50
  }
70
51
  export type IGetRumLiveSessionStatusParams = IRumReadParams;
71
- export interface IRumRequestFilters {
52
+ export interface IRumRequestScope {
72
53
  environment: string;
73
54
  from: Date;
74
55
  to: Date;
75
56
  sessionId?: string;
76
- kind?: RumRequestKind[];
77
- outcome?: RumRequestOutcome[];
78
- status?: number;
79
- method?: string;
80
- urlHost?: string;
81
- urlPath?: string;
82
- minDurationMs?: number;
83
- neverReachedServer?: boolean;
84
57
  }
85
- export interface IPaginateRumRequestsQuery extends IRumRequestFilters {
58
+ export interface IPaginateRumRequestsQuery extends IRumRequestScope {
86
59
  since?: Date;
87
60
  cursor?: string;
88
61
  limit?: number;
89
62
  expression?: string;
90
63
  }
91
64
  export type IPaginateRumRequestsParams = IRumReadParams;
92
- export interface IAggregateRumRequestsQuery extends IRumRequestFilters {
65
+ export interface IAggregateRumRequestsQuery extends IRumRequestScope {
93
66
  expression?: string;
94
67
  }
95
68
  export type IAggregateRumRequestsParams = IRumReadParams;
96
- export type IListRumSavedViewsParams = IRumReadParams;
97
- export interface IListRumSavedViewsQuery {
98
- kind?: RumSavedViewKind;
99
- }
100
- export type IListPinnedRumSavedViewsParams = IRumReadParams;
101
- export type IRumSavedViewFilters = Partial<IRumSessionFilters>;
102
- export type ICreateRumSavedViewParams = IRumReadParams;
103
- interface ICreateRumSavedViewBodyBase {
104
- name: string;
105
- shared?: boolean;
106
- }
107
- export interface ICreateRumSessionsSavedViewBody extends ICreateRumSavedViewBodyBase {
108
- kind?: RumSavedViewKind.SESSIONS;
109
- filters: IRumSavedViewFilters;
110
- }
111
- export interface ICreateRumExplorerSavedViewBody extends ICreateRumSavedViewBodyBase {
112
- kind: RumSavedViewKind.EXPLORER;
113
- query: IQueryRumExplorerBody;
114
- pinnedToDashboard?: boolean;
115
- }
116
- export type ICreateRumSavedViewBody = ICreateRumSessionsSavedViewBody | ICreateRumExplorerSavedViewBody;
117
- export interface IUpdateRumSavedViewParams extends IRumReadParams {
118
- savedViewId: string;
119
- }
120
- export interface IUpdateRumSavedViewBody {
121
- name?: string;
122
- filters?: IRumSavedViewFilters;
123
- query?: IQueryRumExplorerBody;
124
- shared?: boolean;
125
- pinnedToDashboard?: boolean;
126
- }
127
- export type IDeleteRumSavedViewParams = IUpdateRumSavedViewParams;
128
- export {};
@@ -1 +1 @@
1
- {"version":3,"file":"rum-read.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/rum-read.request.ts"],"names":[],"mappings":";;;AAUa,QAAA,0BAA0B,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC;AAM3C,QAAA,2BAA2B,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAGjD,QAAA,yBAAyB,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC;AAG1C,QAAA,2BAA2B,GAAG,EAAE,CAAC;AAGjC,QAAA,+BAA+B,GAAG,GAAG,CAAC"}
1
+ {"version":3,"file":"rum-read.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/rum-read.request.ts"],"names":[],"mappings":";;;AAGa,QAAA,0BAA0B,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC;AAM3C,QAAA,2BAA2B,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAGjD,QAAA,yBAAyB,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC;AAG1C,QAAA,2BAA2B,GAAG,EAAE,CAAC;AAGjC,QAAA,+BAA+B,GAAG,GAAG,CAAC"}
@@ -43,12 +43,8 @@ export interface ISearchRumSocketMessagesQuery {
43
43
  environment: string;
44
44
  from: Date;
45
45
  to: Date;
46
- text?: string;
47
46
  jsonField?: string;
48
47
  jsonValue?: string;
49
- direction?: RumSocketDirection;
50
- eventName?: string;
51
- connectionId?: string;
52
48
  cursor?: string;
53
49
  limit?: number;
54
50
  expression?: string;
@@ -18,5 +18,6 @@ export interface IPreviewAlertRuleGroup {
18
18
  export interface IPreviewAlertRuleData {
19
19
  count: number;
20
20
  groups: IPreviewAlertRuleGroup[];
21
+ capped: boolean;
21
22
  }
22
23
  export type IPreviewAlertRuleResponse = IResponse<IPreviewAlertRuleData>;
@@ -4,7 +4,6 @@ import { RumConsoleLevel, RumCspDisposition, RumDeviceType, RumFrustrationType,
4
4
  import { LogLevel, RumFeedbackStatus, RumReplayState, RumSessionFeedbackMarkerKind, RumSessionItemSource, RumTimelineEntryKind } from '../../../enum';
5
5
  import { IRumAutoPinReasonItem } from '../../models/rum-replay.model';
6
6
  import { IRumRequest } from '../../models/rum-request.model';
7
- import { IRumSavedView } from '../../models/rum-saved-view.model';
8
7
  export interface IRumSessionListItem {
9
8
  source: RumSessionItemSource.SESSION | RumSessionItemSource.SNAPSHOT;
10
9
  id: string;
@@ -208,14 +207,4 @@ export interface IRumRequestAggregateRow {
208
207
  outcomes: Partial<Record<RumRequestOutcome, number>>;
209
208
  }
210
209
  export type IAggregateRumRequestsResponse = IResponse<IRumRequestAggregateRow[]>;
211
- export interface IRumSavedViewItem extends IRumSavedView {
212
- mine: boolean;
213
- }
214
- export type IListRumSavedViewsResponse = IResponse<IRumSavedViewItem[]>;
215
- export type IListPinnedRumSavedViewsResponse = IResponse<IRumSavedViewItem[]>;
216
- export type ICreateRumSavedViewResponse = IResponse<IRumSavedViewItem>;
217
- export type IUpdateRumSavedViewResponse = IResponse<IRumSavedViewItem>;
218
- export type IDeleteRumSavedViewResponse = IResponse<{
219
- id: string;
220
- }>;
221
210
  export {};
@@ -11,5 +11,4 @@ export interface KeysetPaginate<T> {
11
11
  }
12
12
  export interface ApplicationLogKeysetPaginate extends KeysetPaginate<IPaginatedApplicationLog> {
13
13
  rehydrationWatermark: Date | null;
14
- estimatedTotalCapped: boolean;
15
14
  }
@@ -43,7 +43,6 @@ export * from './models/rum-feedback-response.model';
43
43
  export * from './models/rum-feedback-prompt.model';
44
44
  export * from './models/rum-frustration.model';
45
45
  export * from './models/rum-long-task.model';
46
- export * from './models/rum-saved-view.model';
47
46
  export * from './models/monitor-saved-view.model';
48
47
  export * from './models/source-map-artifact.model';
49
48
  export * from './models/monitor-audit-event.model';
@@ -59,7 +59,6 @@ __exportStar(require("./models/rum-feedback-response.model"), exports);
59
59
  __exportStar(require("./models/rum-feedback-prompt.model"), exports);
60
60
  __exportStar(require("./models/rum-frustration.model"), exports);
61
61
  __exportStar(require("./models/rum-long-task.model"), exports);
62
- __exportStar(require("./models/rum-saved-view.model"), exports);
63
62
  __exportStar(require("./models/monitor-saved-view.model"), exports);
64
63
  __exportStar(require("./models/source-map-artifact.model"), exports);
65
64
  __exportStar(require("./models/monitor-audit-event.model"), 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;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,sEAAoD;AACpD,uEAAqD;AACrD,qEAAmD;AACnD,iEAA+C;AAC/C,+DAA6C;AAC7C,gEAA8C;AAC9C,oEAAkD;AAClD,qEAAmD;AACnD,qEAAmD;AAGnD,wCAAsB;AACtB,wCAAsB;AACtB,+CAA6B;AAC7B,mDAAiC;AACjC,qDAAmC"}
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,sEAAoD;AACpD,uEAAqD;AACrD,qEAAmD;AACnD,iEAA+C;AAC/C,+DAA6C;AAC7C,oEAAkD;AAClD,qEAAmD;AACnD,qEAAmD;AAGnD,wCAAsB;AACtB,wCAAsB;AACtB,+CAA6B;AAC7B,mDAAiC;AACjC,qDAAmC"}
@@ -1,15 +1,6 @@
1
1
  import type { IncidentStreakPolicy } from '../dto/incident-policy.dto';
2
- import type { IAlertRuleCondition } from '../../../rules/condition.types';
3
2
  import type { RumVitalKey } from '../../../rum/vitals-thresholds';
4
- import { AlertRuleEvaluation, AlertRuleGroupBy, AlertRuleMode, ErrorGroupEvent, IncidentSeverity, LogLevel, RumAlertMetric, RumDeploymentMeasure } from '../../enum';
5
- export interface IMonitorAlertRuleFilter {
6
- levels: LogLevel[];
7
- contexts: string[];
8
- scenarios: string[];
9
- httpStatusMin: number | null;
10
- httpStatusMax: number | null;
11
- messageContains: string | null;
12
- }
3
+ import { AlertRuleEvaluation, AlertRuleMode, ErrorGroupEvent, ExploreSource, IncidentSeverity, RumAlertMetric, RumDeploymentMeasure } from '../../enum';
13
4
  export interface IAlertRuleRumVitalP75 {
14
5
  metric: RumAlertMetric.VITAL_P75;
15
6
  vital: RumVitalKey;
@@ -46,11 +37,11 @@ export interface IMonitorAlertRule {
46
37
  evaluation: AlertRuleEvaluation;
47
38
  mode: AlertRuleMode;
48
39
  groupEvents: ErrorGroupEvent[];
49
- filter: IMonitorAlertRuleFilter;
50
- condition: IAlertRuleCondition | null;
40
+ source: ExploreSource | null;
41
+ expression: string | null;
51
42
  windowMinutes: number;
52
43
  threshold: number;
53
- groupBy: AlertRuleGroupBy[];
44
+ groupBy: string[];
54
45
  severity: IncidentSeverity;
55
46
  channelIds: string[] | null;
56
47
  incidentPolicy: IncidentStreakPolicy | null;
@@ -1,19 +1,19 @@
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 {
1
+ import { AlertRuleMode, ExploreSource, IncidentEventType, IncidentSeverity, IncidentSource, IncidentStatus, IncidentSuppressedReason, IncidentTriggerSource } from '../../enum';
2
+ import type { IMonitorAlertRuleRumMetric } from './monitor-alert-rule.model';
3
+ export interface IIncidentRuleTriggerCondition {
5
4
  applicationIds: string[];
6
5
  windowMinutes: number;
7
6
  mode: AlertRuleMode;
8
- filter: IMonitorAlertRuleFilter;
9
- condition: IAlertRuleCondition | null;
7
+ source: ExploreSource;
8
+ expression: string;
9
+ groupValues: Record<string, string>;
10
10
  }
11
11
  export interface IIncidentRumTriggerCondition {
12
12
  applicationIds: string[];
13
13
  windowMinutes: number;
14
14
  rumMetric: IMonitorAlertRuleRumMetric;
15
15
  }
16
- export type IIncidentTriggerCondition = IIncidentLogTriggerCondition | IIncidentRumTriggerCondition;
16
+ export type IIncidentTriggerCondition = IIncidentRuleTriggerCondition | IIncidentRumTriggerCondition;
17
17
  export interface IIncidentTrigger {
18
18
  kind: IncidentTriggerSource;
19
19
  refId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/monitor",
3
- "version": "16.6.0",
3
+ "version": "17.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",
@@ -46,7 +46,6 @@
46
46
  "joi-to-swagger": "^6.2.0",
47
47
  "lodash": "^4.17.21",
48
48
  "node-os-utils": "^1.3.7",
49
- "re2js": "^2.8.6",
50
49
  "reflect-metadata": "^0.1.13",
51
50
  "stack-trace": "^0.0.10",
52
51
  "systeminformation": "^5.17.13",
@@ -1,44 +0,0 @@
1
- import { AlertRuleConditionField, AlertRuleErrorGroupField, AlertRuleEvaluation, AlertRuleField, AlertRuleOperator, LogEmitter, LogLevel } from '../types/enum';
2
- import { AlertRuleConditionViolation, IAlertRuleCondition } from './condition.types';
3
- export declare const ALERT_RULE_CONDITION_MAX_DEPTH = 5;
4
- export declare const ALERT_RULE_CONDITION_MAX_NODES = 50;
5
- export declare const ALERT_RULE_CONDITION_MAX_TEXT_LENGTH = 200;
6
- export declare const ALERT_RULE_CONDITION_MAX_IN_VALUES = 50;
7
- export declare const ALERT_RULE_CONDITION_MAX_REGEX_LENGTH = 200;
8
- export declare const ALERT_RULE_DATA_PATH_MAX_SEGMENTS = 5;
9
- export declare const ALERT_RULE_FIELD_OPERATORS: Record<AlertRuleField | AlertRuleErrorGroupField, readonly AlertRuleOperator[]>;
10
- export declare const ALERT_RULE_LOG_FIELDS: readonly AlertRuleField[];
11
- export declare const ALERT_RULE_ERROR_GROUP_FIELDS: readonly (AlertRuleField | AlertRuleErrorGroupField)[];
12
- export declare const alertRuleFieldsFor: (evaluation: AlertRuleEvaluation) => readonly (AlertRuleField | AlertRuleErrorGroupField)[];
13
- export declare const alertRuleReadsDataFields: (evaluation: AlertRuleEvaluation) => boolean;
14
- export declare const ALERT_RULE_DATA_FIELD_OPERATORS: readonly AlertRuleOperator[];
15
- export declare const ALERT_RULE_LEVEL_NAMES: Record<string, LogLevel>;
16
- export declare const ALERT_RULE_EMITTER_NAMES: Record<string, LogEmitter>;
17
- export declare const isAlertRuleDataField: (field: string) => field is `data.${string}`;
18
- export declare const isValidAlertRuleDataPath: (field: string) => boolean;
19
- export declare const alertRuleOperatorsFor: (field: AlertRuleConditionField) => readonly AlertRuleOperator[];
20
- export declare enum AlertRuleValueKind {
21
- NONE = "NONE",
22
- LEVEL = "LEVEL",
23
- LEVEL_LIST = "LEVEL_LIST",
24
- ERROR_TYPE = "ERROR_TYPE",
25
- ERROR_TYPE_LIST = "ERROR_TYPE_LIST",
26
- EMITTER = "EMITTER",
27
- EMITTER_LIST = "EMITTER_LIST",
28
- TEXT = "TEXT",
29
- TEXT_LIST = "TEXT_LIST",
30
- INTEGER = "INTEGER",
31
- INTEGER_LIST = "INTEGER_LIST",
32
- NUMBER = "NUMBER",
33
- SCALAR = "SCALAR",
34
- TEXT_OR_NUMBER_LIST = "TEXT_OR_NUMBER_LIST",
35
- REGEX = "REGEX"
36
- }
37
- export declare const alertRuleValueKindOf: (field: AlertRuleConditionField, operator: AlertRuleOperator) => AlertRuleValueKind;
38
- export declare const encodeRegexValue: (source: string, flags: "i" | "") => string;
39
- export declare const decodeRegexValue: (value: string) => {
40
- source: string;
41
- flags: "i" | "";
42
- } | null;
43
- export declare const validateConditionBounds: (c: IAlertRuleCondition, evaluation?: AlertRuleEvaluation) => AlertRuleConditionViolation | null;
44
- export declare const isBuilderRepresentable: (c: IAlertRuleCondition) => boolean;