@abyss-project/monitor 1.0.8 → 1.0.10

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.
@@ -20,7 +20,6 @@ export type PayloadLog = {
20
20
  applicationEvent?: {
21
21
  event: string;
22
22
  level: LogLevel;
23
- prefix?: string | null;
24
23
  message?: string | null;
25
24
  data?: Record<string, unknown> | null;
26
25
  };
@@ -4,10 +4,9 @@ export interface IGetApplicationEventAdminParams {
4
4
  applicationEventId: string;
5
5
  }
6
6
  export type IPaginateApplicationEventAdminQuery = {
7
- prefix?: (string | null)[];
8
- prefixContains?: string;
9
7
  event?: string[];
10
8
  eventContains?: string;
9
+ eventStartsWith?: string;
11
10
  level?: LogLevel[];
12
11
  messageContains?: string;
13
12
  applicationId?: string[];
@@ -10,7 +10,6 @@ export interface ICreateApplicationEventParams {
10
10
  export interface ICreateApplicationEventBody {
11
11
  event: string;
12
12
  level: LogLevel;
13
- prefix?: string | null;
14
13
  data?: Record<string, unknown> | null;
15
14
  message?: string | null;
16
15
  }
@@ -18,10 +17,9 @@ export interface IPaginateApplicationEventParams {
18
17
  applicationId: string;
19
18
  }
20
19
  export type IPaginateApplicationEventQuery = {
21
- prefix?: (string | null)[];
22
- prefixContains?: string;
23
20
  event?: string[];
24
21
  eventContains?: string;
22
+ eventStartsWith?: string;
25
23
  level?: LogLevel[];
26
24
  messageContains?: string;
27
25
  } & QueryPaginate;
@@ -53,7 +53,6 @@ export interface ICreateApplicationLogBody {
53
53
  applicationEvent?: {
54
54
  event: string;
55
55
  level: LogLevel;
56
- prefix?: string | null;
57
56
  message?: string | null;
58
57
  data?: Record<string, unknown> | null;
59
58
  };
@@ -27,6 +27,7 @@ export interface IGetMetricsApplicationEventData {
27
27
  totalErrorEvent: number;
28
28
  lastErrorDate: Date | null;
29
29
  eventLast24Hours: number;
30
+ errorLast24Hours: number;
30
31
  };
31
32
  }
32
33
  export type IGetMetricsApplicationEventResponse = IResponse<IGetMetricsApplicationEventData>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/monitor",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "Core package to interact with Abyss-Monitor",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",