@abyss-project/monitor 1.0.2 → 1.0.4
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-cron-task.admin.api.d.ts +10 -10
- package/dist/api/application-cron-task.admin.api.js +40 -40
- package/dist/api/application-cron-task.api.d.ts +10 -10
- package/dist/api/application-cron-task.api.js +40 -40
- package/dist/api/application-log.admin.api.d.ts +3 -3
- package/dist/api/application-log.admin.api.js +12 -12
- package/dist/api/application-log.api.d.ts +4 -4
- package/dist/api/application-log.api.js +16 -16
- package/dist/api/application-stats.admin.api.d.ts +3 -3
- package/dist/api/application-stats.admin.api.js +12 -12
- package/dist/api/application-stats.api.d.ts +4 -4
- package/dist/api/application-stats.api.js +16 -16
- package/dist/api/application-store.admin.api.d.ts +6 -6
- package/dist/api/application-store.admin.api.js +24 -24
- package/dist/api/application-store.api.d.ts +6 -6
- package/dist/api/application-store.api.js +24 -24
- package/dist/api/application-store.public.api.d.ts +3 -3
- package/dist/api/application-store.public.api.js +12 -12
- package/dist/api/application.admin.api.d.ts +7 -7
- package/dist/api/application.admin.api.js +28 -28
- package/dist/api/application.api.d.ts +10 -9
- package/dist/api/application.api.js +40 -36
- package/dist/api/index.d.ts +12 -12
- package/dist/api/index.js +28 -24
- package/dist/api/monitor.api.d.ts +2 -2
- package/dist/api/monitor.api.js +8 -8
- package/dist/frameworks/express/decorators.d.ts +52 -52
- package/dist/frameworks/express/decorators.js +163 -163
- package/dist/frameworks/express/index.d.ts +16 -16
- package/dist/frameworks/express/index.js +170 -166
- package/dist/frameworks/express/metadata.d.ts +9 -9
- package/dist/frameworks/express/metadata.js +12 -12
- package/dist/frameworks/index.d.ts +1 -1
- package/dist/frameworks/index.js +17 -13
- package/dist/index.d.ts +46 -46
- package/dist/index.js +105 -101
- package/dist/middlewares/context.middleware.d.ts +12 -12
- package/dist/middlewares/context.middleware.js +39 -39
- package/dist/middlewares/index.d.ts +3 -3
- package/dist/middlewares/index.js +19 -15
- package/dist/middlewares/logger-endpoint.middleware.d.ts +5 -5
- package/dist/middlewares/logger-endpoint.middleware.js +75 -75
- package/dist/middlewares/logger-setup.middleware.d.ts +5 -5
- package/dist/middlewares/logger-setup.middleware.js +16 -16
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +17 -13
- package/dist/models/logger.model.d.ts +55 -55
- package/dist/models/logger.model.js +201 -201
- package/dist/models/stats-publisher.model.d.ts +20 -20
- package/dist/models/stats-publisher.model.js +113 -113
- package/dist/types/enum/api-error.enum.d.ts +20 -20
- package/dist/types/enum/api-error.enum.js +25 -25
- package/dist/types/enum/api-method.enum.d.ts +7 -7
- package/dist/types/enum/api-method.enum.js +11 -11
- package/dist/types/enum/application-alert-type.enum.d.ts +5 -5
- package/dist/types/enum/application-alert-type.enum.js +9 -9
- package/dist/types/enum/application-stats-type.enum.d.ts +5 -5
- package/dist/types/enum/application-stats-type.enum.js +9 -9
- package/dist/types/enum/index.d.ts +7 -7
- package/dist/types/enum/index.js +23 -19
- package/dist/types/enum/log-level.enum.d.ts +6 -6
- package/dist/types/enum/log-level.enum.js +10 -10
- package/dist/types/enum/log-scenario.enum.d.ts +5 -5
- package/dist/types/enum/log-scenario.enum.js +9 -9
- package/dist/types/enum/webhook-type.enum.d.ts +3 -3
- package/dist/types/enum/webhook-type.enum.js +7 -7
- package/dist/types/index.d.ts +18 -18
- package/dist/types/index.js +18 -14
- package/dist/types/interface/api/index.d.ts +27 -27
- package/dist/types/interface/api/index.js +43 -39
- package/dist/types/interface/api/requests/application-cron-task.admin.request.d.ts +50 -51
- package/dist/types/interface/api/requests/application-cron-task.admin.request.js +2 -2
- package/dist/types/interface/api/requests/application-cron-task.request.d.ts +61 -62
- package/dist/types/interface/api/requests/application-cron-task.request.js +2 -2
- package/dist/types/interface/api/requests/application-log.admin.request.d.ts +19 -20
- package/dist/types/interface/api/requests/application-log.admin.request.js +2 -2
- package/dist/types/interface/api/requests/application-log.request.d.ts +53 -54
- package/dist/types/interface/api/requests/application-log.request.js +2 -2
- package/dist/types/interface/api/requests/application-stats.admin.request.d.ts +13 -14
- package/dist/types/interface/api/requests/application-stats.admin.request.js +2 -2
- package/dist/types/interface/api/requests/application-stats.request.d.ts +31 -32
- package/dist/types/interface/api/requests/application-stats.request.js +2 -2
- package/dist/types/interface/api/requests/application-store.admin.request.d.ts +34 -35
- package/dist/types/interface/api/requests/application-store.admin.request.js +2 -2
- package/dist/types/interface/api/requests/application-store.public.request.d.ts +8 -9
- package/dist/types/interface/api/requests/application-store.public.request.js +2 -2
- package/dist/types/interface/api/requests/application-store.request.d.ts +39 -40
- package/dist/types/interface/api/requests/application-store.request.js +2 -2
- package/dist/types/interface/api/requests/application.admin.request.d.ts +18 -19
- package/dist/types/interface/api/requests/application.admin.request.js +2 -2
- package/dist/types/interface/api/requests/application.request.d.ts +35 -33
- package/dist/types/interface/api/requests/application.request.js +2 -2
- package/dist/types/interface/api/responses/application-cron-task.admin.response.d.ts +30 -30
- package/dist/types/interface/api/responses/application-cron-task.admin.response.js +2 -2
- package/dist/types/interface/api/responses/application-cron-task.response.d.ts +30 -30
- package/dist/types/interface/api/responses/application-cron-task.response.js +2 -2
- package/dist/types/interface/api/responses/application-log.admin.response.d.ts +10 -10
- package/dist/types/interface/api/responses/application-log.admin.response.js +2 -2
- package/dist/types/interface/api/responses/application-log.response.d.ts +10 -10
- package/dist/types/interface/api/responses/application-log.response.js +2 -2
- package/dist/types/interface/api/responses/application-stats.admin.response.d.ts +6 -6
- package/dist/types/interface/api/responses/application-stats.admin.response.js +2 -2
- package/dist/types/interface/api/responses/application-stats.response.d.ts +10 -10
- package/dist/types/interface/api/responses/application-stats.response.js +2 -2
- package/dist/types/interface/api/responses/application-store.admin.response.d.ts +17 -17
- package/dist/types/interface/api/responses/application-store.admin.response.js +2 -2
- package/dist/types/interface/api/responses/application-store.public.response.d.ts +21 -21
- package/dist/types/interface/api/responses/application-store.public.response.js +2 -2
- package/dist/types/interface/api/responses/application-store.response.d.ts +17 -17
- package/dist/types/interface/api/responses/application-store.response.js +2 -2
- package/dist/types/interface/api/responses/application.admin.response.d.ts +33 -33
- package/dist/types/interface/api/responses/application.admin.response.js +2 -2
- package/dist/types/interface/api/responses/application.response.d.ts +129 -121
- package/dist/types/interface/api/responses/application.response.js +2 -2
- package/dist/types/interface/api/responses/monitor.response.d.ts +7 -7
- package/dist/types/interface/api/responses/monitor.response.js +2 -2
- package/dist/types/interface/api/type-message/api-error.d.ts +8 -8
- package/dist/types/interface/api/type-message/api-error.js +2 -2
- package/dist/types/interface/api/type-message/base-order.d.ts +4 -4
- package/dist/types/interface/api/type-message/base-order.js +2 -2
- package/dist/types/interface/api/type-message/base-paginate.d.ts +10 -10
- package/dist/types/interface/api/type-message/base-paginate.js +2 -2
- package/dist/types/interface/api/type-message/response.d.ts +5 -5
- package/dist/types/interface/api/type-message/response.js +2 -2
- package/dist/types/interface/index.d.ts +9 -8
- package/dist/types/interface/index.js +25 -20
- package/dist/types/interface/models/application-cron-task-history.model.d.ts +11 -11
- package/dist/types/interface/models/application-cron-task-history.model.js +2 -2
- package/dist/types/interface/models/application-cron-task.model.d.ts +14 -14
- package/dist/types/interface/models/application-cron-task.model.js +2 -2
- package/dist/types/interface/models/application-event.model.d.ts +18 -0
- package/dist/types/interface/{api/requests/abyss.admin.request.js → models/application-event.model.js} +2 -2
- package/dist/types/interface/models/application-log-endpoint.model.d.ts +20 -20
- package/dist/types/interface/models/application-log-endpoint.model.js +2 -2
- package/dist/types/interface/models/application-log.model.d.ts +23 -21
- package/dist/types/interface/models/application-log.model.js +2 -2
- package/dist/types/interface/models/application-stats.model.d.ts +14 -14
- package/dist/types/interface/models/application-stats.model.js +2 -2
- package/dist/types/interface/models/application-store-entry.model.d.ts +14 -14
- package/dist/types/interface/models/application-store-entry.model.js +2 -2
- package/dist/types/interface/models/application.model.d.ts +17 -15
- package/dist/types/interface/models/application.model.js +2 -2
- package/dist/utils/alert.utils.d.ts +35 -35
- package/dist/utils/alert.utils.js +138 -134
- package/dist/utils/discord-webhook-log-formatter.utils.d.ts +42 -42
- package/dist/utils/discord-webhook-log-formatter.utils.js +319 -319
- package/dist/utils/error.utils.d.ts +15 -15
- package/dist/utils/error.utils.js +24 -24
- package/dist/utils/import.utils.d.ts +1 -1
- package/dist/utils/import.utils.js +7 -7
- package/dist/utils/index.d.ts +5 -5
- package/dist/utils/index.js +21 -17
- package/dist/utils/json.utils.d.ts +1 -1
- package/dist/utils/json.utils.js +13 -13
- package/dist/utils/non-blocking-promise.utils.d.ts +2 -2
- package/dist/utils/non-blocking-promise.utils.js +11 -11
- package/package.json +5 -5
- package/dist/api/abyss.admin.api.d.ts +0 -2
- package/dist/api/abyss.admin.api.js +0 -8
- package/dist/api/application-store-entry.admin.api.d.ts +0 -6
- package/dist/api/application-store-entry.admin.api.js +0 -24
- package/dist/api/application-store-entry.api.d.ts +0 -6
- package/dist/api/application-store-entry.api.js +0 -24
- package/dist/api/application-store-entry.public.api.d.ts +0 -3
- package/dist/api/application-store-entry.public.api.js +0 -12
- package/dist/api/logger.admin.api.d.ts +0 -3
- package/dist/api/logger.admin.api.js +0 -14
- package/dist/api/user-application-alert.admin.api.d.ts +0 -7
- package/dist/api/user-application-alert.admin.api.js +0 -28
- package/dist/api/user-application-alert.api.d.ts +0 -7
- package/dist/api/user-application-alert.api.js +0 -28
- package/dist/api/user-application-cron-task.admin.api.d.ts +0 -9
- package/dist/api/user-application-cron-task.admin.api.js +0 -36
- package/dist/api/user-application-cron-task.api.d.ts +0 -9
- package/dist/api/user-application-cron-task.api.js +0 -36
- package/dist/api/user-application-log.admin.api.d.ts +0 -3
- package/dist/api/user-application-log.admin.api.js +0 -12
- package/dist/api/user-application-log.api.d.ts +0 -4
- package/dist/api/user-application-log.api.js +0 -16
- package/dist/api/user-application-stats.admin.api.d.ts +0 -3
- package/dist/api/user-application-stats.admin.api.js +0 -12
- package/dist/api/user-application-stats.api.d.ts +0 -4
- package/dist/api/user-application-stats.api.js +0 -16
- package/dist/api/user-application.admin.api.d.ts +0 -6
- package/dist/api/user-application.admin.api.js +0 -24
- package/dist/api/user-application.api.d.ts +0 -10
- package/dist/api/user-application.api.js +0 -40
- package/dist/api/user.admin.api.d.ts +0 -5
- package/dist/api/user.admin.api.js +0 -23
- package/dist/api/user.api.d.ts +0 -4
- package/dist/api/user.api.js +0 -17
- package/dist/consts.d.ts +0 -2
- package/dist/consts.js +0 -5
- package/dist/types/enum/log-type.enum.d.ts +0 -6
- package/dist/types/enum/log-type.enum.js +0 -10
- package/dist/types/enum/user-application-alert-type.enum.d.ts +0 -5
- package/dist/types/enum/user-application-alert-type.enum.js +0 -9
- package/dist/types/enum/user-application-stats-type.enum.d.ts +0 -5
- package/dist/types/enum/user-application-stats-type.enum.js +0 -9
- package/dist/types/interface/api/requests/abyss.admin.request.d.ts +0 -4
- package/dist/types/interface/api/requests/logger.admin.request.d.ts +0 -8
- package/dist/types/interface/api/requests/logger.admin.request.js +0 -2
- package/dist/types/interface/api/requests/user-application-alert.admin.request.d.ts +0 -44
- package/dist/types/interface/api/requests/user-application-alert.admin.request.js +0 -2
- package/dist/types/interface/api/requests/user-application-alert.request.d.ts +0 -50
- package/dist/types/interface/api/requests/user-application-alert.request.js +0 -2
- package/dist/types/interface/api/requests/user-application-cron-task.admin.request.d.ts +0 -48
- package/dist/types/interface/api/requests/user-application-cron-task.admin.request.js +0 -2
- package/dist/types/interface/api/requests/user-application-cron-task.request.d.ts +0 -58
- package/dist/types/interface/api/requests/user-application-cron-task.request.js +0 -2
- package/dist/types/interface/api/requests/user-application-log.admin.request.d.ts +0 -20
- package/dist/types/interface/api/requests/user-application-log.admin.request.js +0 -2
- package/dist/types/interface/api/requests/user-application-log.request.d.ts +0 -51
- package/dist/types/interface/api/requests/user-application-log.request.js +0 -2
- package/dist/types/interface/api/requests/user-application-stats.admin.request.d.ts +0 -14
- package/dist/types/interface/api/requests/user-application-stats.admin.request.js +0 -2
- package/dist/types/interface/api/requests/user-application-stats.request.d.ts +0 -29
- package/dist/types/interface/api/requests/user-application-stats.request.js +0 -2
- package/dist/types/interface/api/requests/user-application.admin.request.d.ts +0 -15
- package/dist/types/interface/api/requests/user-application.admin.request.js +0 -2
- package/dist/types/interface/api/requests/user-application.request.d.ts +0 -35
- package/dist/types/interface/api/requests/user-application.request.js +0 -2
- package/dist/types/interface/api/requests/user.admin.request.d.ts +0 -18
- package/dist/types/interface/api/requests/user.admin.request.js +0 -2
- package/dist/types/interface/api/requests/user.request.d.ts +0 -3
- package/dist/types/interface/api/requests/user.request.js +0 -2
- package/dist/types/interface/api/responses/abyss.admin.response.d.ts +0 -6
- package/dist/types/interface/api/responses/abyss.admin.response.js +0 -2
- package/dist/types/interface/api/responses/logger.admin.response.d.ts +0 -7
- package/dist/types/interface/api/responses/logger.admin.response.js +0 -2
- package/dist/types/interface/api/responses/user-application-alert.admin.response.d.ts +0 -22
- package/dist/types/interface/api/responses/user-application-alert.admin.response.js +0 -2
- package/dist/types/interface/api/responses/user-application-alert.response.d.ts +0 -22
- package/dist/types/interface/api/responses/user-application-alert.response.js +0 -2
- package/dist/types/interface/api/responses/user-application-cron-task.admin.response.d.ts +0 -27
- package/dist/types/interface/api/responses/user-application-cron-task.admin.response.js +0 -2
- package/dist/types/interface/api/responses/user-application-cron-task.response.d.ts +0 -27
- package/dist/types/interface/api/responses/user-application-cron-task.response.js +0 -2
- package/dist/types/interface/api/responses/user-application-log.admin.response.d.ts +0 -11
- package/dist/types/interface/api/responses/user-application-log.admin.response.js +0 -2
- package/dist/types/interface/api/responses/user-application-log.response.d.ts +0 -11
- package/dist/types/interface/api/responses/user-application-log.response.js +0 -2
- package/dist/types/interface/api/responses/user-application-stats.admin.response.d.ts +0 -7
- package/dist/types/interface/api/responses/user-application-stats.admin.response.js +0 -2
- package/dist/types/interface/api/responses/user-application-stats.response.d.ts +0 -11
- package/dist/types/interface/api/responses/user-application-stats.response.js +0 -2
- package/dist/types/interface/api/responses/user-application.admin.response.d.ts +0 -17
- package/dist/types/interface/api/responses/user-application.admin.response.js +0 -2
- package/dist/types/interface/api/responses/user-application.response.d.ts +0 -120
- package/dist/types/interface/api/responses/user-application.response.js +0 -2
- package/dist/types/interface/api/responses/user.admin.response.d.ts +0 -15
- package/dist/types/interface/api/responses/user.admin.response.js +0 -2
- package/dist/types/interface/api/responses/user.response.d.ts +0 -13
- package/dist/types/interface/api/responses/user.response.js +0 -2
- package/dist/types/interface/models/cron-task-history.model.d.ts +0 -12
- package/dist/types/interface/models/cron-task-history.model.js +0 -2
- package/dist/types/interface/models/cron-task.model.d.ts +0 -13
- package/dist/types/interface/models/cron-task.model.js +0 -2
- package/dist/types/interface/models/log-console.model.d.ts +0 -17
- package/dist/types/interface/models/log-console.model.js +0 -2
- package/dist/types/interface/models/log-endpoint.model.d.ts +0 -22
- package/dist/types/interface/models/log-endpoint.model.js +0 -2
- package/dist/types/interface/models/user-application-alert.model.d.ts +0 -44
- package/dist/types/interface/models/user-application-alert.model.js +0 -2
- package/dist/types/interface/models/user-application-cron-task-history.model.d.ts +0 -11
- package/dist/types/interface/models/user-application-cron-task-history.model.js +0 -2
- package/dist/types/interface/models/user-application-cron-task.model.d.ts +0 -14
- package/dist/types/interface/models/user-application-cron-task.model.js +0 -2
- package/dist/types/interface/models/user-application-log-endpoint.model.d.ts +0 -20
- package/dist/types/interface/models/user-application-log-endpoint.model.js +0 -2
- package/dist/types/interface/models/user-application-log.model.d.ts +0 -21
- package/dist/types/interface/models/user-application-log.model.js +0 -2
- package/dist/types/interface/models/user-application-stats.model.d.ts +0 -14
- package/dist/types/interface/models/user-application-stats.model.js +0 -2
- package/dist/types/interface/models/user-application.model.d.ts +0 -15
- package/dist/types/interface/models/user-application.model.js +0 -2
- package/dist/types/interface/models/user.model.d.ts +0 -8
- package/dist/types/interface/models/user.model.js +0 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { IApplicationCronTask } from './application-cron-task.model';
|
|
2
|
-
export interface IApplicationCronTaskHistory {
|
|
3
|
-
id?: string;
|
|
4
|
-
applicationCronTaskId: string;
|
|
5
|
-
startDate: Date;
|
|
6
|
-
requestId: string | null;
|
|
7
|
-
hasFailed: boolean | null;
|
|
8
|
-
updatedAt?: Date;
|
|
9
|
-
createdAt?: Date;
|
|
10
|
-
applicationCronTask?: IApplicationCronTask;
|
|
11
|
-
}
|
|
1
|
+
import { IApplicationCronTask } from './application-cron-task.model';
|
|
2
|
+
export interface IApplicationCronTaskHistory {
|
|
3
|
+
id?: string;
|
|
4
|
+
applicationCronTaskId: string;
|
|
5
|
+
startDate: Date;
|
|
6
|
+
requestId: string | null;
|
|
7
|
+
hasFailed: boolean | null;
|
|
8
|
+
updatedAt?: Date;
|
|
9
|
+
createdAt?: Date;
|
|
10
|
+
applicationCronTask?: IApplicationCronTask;
|
|
11
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { IApplication } from './application.model';
|
|
2
|
-
export interface IApplicationCronTask {
|
|
3
|
-
id?: string;
|
|
4
|
-
applicationId: string;
|
|
5
|
-
name: string;
|
|
6
|
-
description: string | null;
|
|
7
|
-
scheduleConfiguration: string;
|
|
8
|
-
webhookUrl: string;
|
|
9
|
-
webhookSecret: string;
|
|
10
|
-
isActivated: boolean;
|
|
11
|
-
updatedAt?: Date;
|
|
12
|
-
createdAt?: Date;
|
|
13
|
-
application?: IApplication;
|
|
14
|
-
}
|
|
1
|
+
import { IApplication } from './application.model';
|
|
2
|
+
export interface IApplicationCronTask {
|
|
3
|
+
id?: string;
|
|
4
|
+
applicationId: string;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string | null;
|
|
7
|
+
scheduleConfiguration: string;
|
|
8
|
+
webhookUrl: string;
|
|
9
|
+
webhookSecret: string;
|
|
10
|
+
isActivated: boolean;
|
|
11
|
+
updatedAt?: Date;
|
|
12
|
+
createdAt?: Date;
|
|
13
|
+
application?: IApplication;
|
|
14
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { LogLevel } from '../../enum';
|
|
2
|
+
import { IApplicationLog } from './application-log.model';
|
|
3
|
+
import { IApplication } from './application.model';
|
|
4
|
+
export interface IApplicationEvent {
|
|
5
|
+
id?: string;
|
|
6
|
+
applicationId: string;
|
|
7
|
+
prefix: string | null;
|
|
8
|
+
event: string;
|
|
9
|
+
message: string | null;
|
|
10
|
+
level: LogLevel;
|
|
11
|
+
data: unknown;
|
|
12
|
+
applicationLogId?: string | null;
|
|
13
|
+
updatedAt?: Date;
|
|
14
|
+
createdAt?: Date;
|
|
15
|
+
deletedAt?: Date | null;
|
|
16
|
+
application?: IApplication;
|
|
17
|
+
applicationLog?: IApplicationLog | null;
|
|
18
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { APIMethod } from '../../enum';
|
|
2
|
-
import { IApplicationLog } from './application-log.model';
|
|
3
|
-
export interface IApplicationLogEndpoint {
|
|
4
|
-
id?: string;
|
|
5
|
-
applicationLogId: string;
|
|
6
|
-
authentication: string | null;
|
|
7
|
-
controller: string;
|
|
8
|
-
endpoint: string;
|
|
9
|
-
requestParams: Record<string, string> | null;
|
|
10
|
-
requestQuery: Record<string, string | string[]> | null;
|
|
11
|
-
requestBody: Record<string, unknown> | string | null;
|
|
12
|
-
responseBody: Record<string, unknown> | string | null;
|
|
13
|
-
responseHttpCode: number;
|
|
14
|
-
ip: string[];
|
|
15
|
-
method: APIMethod;
|
|
16
|
-
responseTime: number;
|
|
17
|
-
updatedAt?: Date;
|
|
18
|
-
createdAt?: Date;
|
|
19
|
-
applicationLog?: IApplicationLog;
|
|
20
|
-
}
|
|
1
|
+
import { APIMethod } from '../../enum';
|
|
2
|
+
import { IApplicationLog } from './application-log.model';
|
|
3
|
+
export interface IApplicationLogEndpoint {
|
|
4
|
+
id?: string;
|
|
5
|
+
applicationLogId: string;
|
|
6
|
+
authentication: string | null;
|
|
7
|
+
controller: string;
|
|
8
|
+
endpoint: string;
|
|
9
|
+
requestParams: Record<string, string> | null;
|
|
10
|
+
requestQuery: Record<string, string | string[]> | null;
|
|
11
|
+
requestBody: Record<string, unknown> | string | null;
|
|
12
|
+
responseBody: Record<string, unknown> | string | null;
|
|
13
|
+
responseHttpCode: number;
|
|
14
|
+
ip: string[];
|
|
15
|
+
method: APIMethod;
|
|
16
|
+
responseTime: number;
|
|
17
|
+
updatedAt?: Date;
|
|
18
|
+
createdAt?: Date;
|
|
19
|
+
applicationLog?: IApplicationLog;
|
|
20
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
import { LogLevel } from '../../enum';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import { LogLevel } from '../../enum';
|
|
2
|
+
import { IApplicationEvent } from './application-event.model';
|
|
3
|
+
import { IApplicationLogEndpoint } from './application-log-endpoint.model';
|
|
4
|
+
import { IApplication } from './application.model';
|
|
5
|
+
export interface IApplicationLog {
|
|
6
|
+
id?: string;
|
|
7
|
+
applicationId: string;
|
|
8
|
+
title: string | null;
|
|
9
|
+
message: string;
|
|
10
|
+
level: LogLevel;
|
|
11
|
+
scenario: string | null;
|
|
12
|
+
context: string | null;
|
|
13
|
+
data: Record<string, unknown> | null;
|
|
14
|
+
stack: string | null;
|
|
15
|
+
processId: string;
|
|
16
|
+
requestId: string | null;
|
|
17
|
+
dateValue: Date;
|
|
18
|
+
updatedAt?: Date;
|
|
19
|
+
createdAt?: Date;
|
|
20
|
+
application?: IApplication;
|
|
21
|
+
applicationLogEndpoint?: IApplicationLogEndpoint;
|
|
22
|
+
applicationEvent?: IApplicationEvent;
|
|
23
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ApplicationStatsType } from '../../enum';
|
|
2
|
-
import { IApplication } from './application.model';
|
|
3
|
-
export interface IApplicationStats {
|
|
4
|
-
id?: string;
|
|
5
|
-
applicationId: string;
|
|
6
|
-
type: ApplicationStatsType;
|
|
7
|
-
dateValue: Date;
|
|
8
|
-
processId: string;
|
|
9
|
-
value: number | null;
|
|
10
|
-
percentValue: number | null;
|
|
11
|
-
updatedAt?: Date;
|
|
12
|
-
createdAt?: Date;
|
|
13
|
-
application?: IApplication;
|
|
14
|
-
}
|
|
1
|
+
import { ApplicationStatsType } from '../../enum';
|
|
2
|
+
import { IApplication } from './application.model';
|
|
3
|
+
export interface IApplicationStats {
|
|
4
|
+
id?: string;
|
|
5
|
+
applicationId: string;
|
|
6
|
+
type: ApplicationStatsType;
|
|
7
|
+
dateValue: Date;
|
|
8
|
+
processId: string;
|
|
9
|
+
value: number | null;
|
|
10
|
+
percentValue: number | null;
|
|
11
|
+
updatedAt?: Date;
|
|
12
|
+
createdAt?: Date;
|
|
13
|
+
application?: IApplication;
|
|
14
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { IApplication } from './application.model';
|
|
2
|
-
export interface IApplicationStoreEntry {
|
|
3
|
-
id?: string;
|
|
4
|
-
applicationId: string;
|
|
5
|
-
name: string;
|
|
6
|
-
value: string;
|
|
7
|
-
expireAt: Date | null;
|
|
8
|
-
isActive: boolean;
|
|
9
|
-
slug: string;
|
|
10
|
-
countAccess: number;
|
|
11
|
-
updatedAt?: Date;
|
|
12
|
-
createdAt?: Date;
|
|
13
|
-
application?: IApplication;
|
|
14
|
-
}
|
|
1
|
+
import { IApplication } from './application.model';
|
|
2
|
+
export interface IApplicationStoreEntry {
|
|
3
|
+
id?: string;
|
|
4
|
+
applicationId: string;
|
|
5
|
+
name: string;
|
|
6
|
+
value: string;
|
|
7
|
+
expireAt: Date | null;
|
|
8
|
+
isActive: boolean;
|
|
9
|
+
slug: string;
|
|
10
|
+
countAccess: number;
|
|
11
|
+
updatedAt?: Date;
|
|
12
|
+
createdAt?: Date;
|
|
13
|
+
application?: IApplication;
|
|
14
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { IApplicationCronTask } from './application-cron-task.model';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { IApplicationCronTask } from './application-cron-task.model';
|
|
2
|
+
import { IApplicationEvent } from './application-event.model';
|
|
3
|
+
import { IApplicationLog } from './application-log.model';
|
|
4
|
+
import { IApplicationStats } from './application-stats.model';
|
|
5
|
+
import { IApplicationStoreEntry } from './application-store-entry.model';
|
|
6
|
+
export interface IApplication {
|
|
7
|
+
id?: string;
|
|
8
|
+
projectId: string;
|
|
9
|
+
secretPublishToken: string;
|
|
10
|
+
updatedAt?: Date;
|
|
11
|
+
createdAt?: Date;
|
|
12
|
+
applicationStats?: IApplicationStats[];
|
|
13
|
+
applicationLog?: IApplicationLog[];
|
|
14
|
+
applicationCronTask?: IApplicationCronTask[];
|
|
15
|
+
applicationStoreEntry?: IApplicationStoreEntry[];
|
|
16
|
+
applicationEvent?: IApplicationEvent[];
|
|
17
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { LogData, Logger } from '..';
|
|
2
|
-
|
|
3
|
-
author?: string;
|
|
4
|
-
logger?: Logger;
|
|
5
|
-
};
|
|
6
|
-
export
|
|
7
|
-
logData: LogData;
|
|
8
|
-
applicationLogId?: string | null;
|
|
9
|
-
webhookUrl?: string;
|
|
10
|
-
compact?: boolean;
|
|
11
|
-
} & BaseSendAlertParams;
|
|
12
|
-
export
|
|
13
|
-
statsData: {
|
|
14
|
-
cpu?: {
|
|
15
|
-
value?: number | null;
|
|
16
|
-
percentValue?: number | null;
|
|
17
|
-
};
|
|
18
|
-
ram?: {
|
|
19
|
-
value?: number | null;
|
|
20
|
-
percentValue?: number | null;
|
|
21
|
-
};
|
|
22
|
-
disk?: {
|
|
23
|
-
value?: number | null;
|
|
24
|
-
percentValue?: number | null;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
processId: string;
|
|
28
|
-
dateValue: Date;
|
|
29
|
-
};
|
|
30
|
-
export
|
|
31
|
-
webhookUrl?: string;
|
|
32
|
-
} & BaseSendAlertParams & PayloadSendStatsAlert;
|
|
33
|
-
export declare const sendLogAlert: (params: ParamsSendLogAlert) => Promise<void>;
|
|
34
|
-
export declare const sendStatsAlert: (params: ParamsSendStatsAlert) => Promise<void>;
|
|
35
|
-
export {};
|
|
1
|
+
import { LogData, Logger } from '..';
|
|
2
|
+
type BaseSendAlertParams = {
|
|
3
|
+
author?: string;
|
|
4
|
+
logger?: Logger;
|
|
5
|
+
};
|
|
6
|
+
export type ParamsSendLogAlert = {
|
|
7
|
+
logData: LogData;
|
|
8
|
+
applicationLogId?: string | null;
|
|
9
|
+
webhookUrl?: string;
|
|
10
|
+
compact?: boolean;
|
|
11
|
+
} & BaseSendAlertParams;
|
|
12
|
+
export type PayloadSendStatsAlert = {
|
|
13
|
+
statsData: {
|
|
14
|
+
cpu?: {
|
|
15
|
+
value?: number | null;
|
|
16
|
+
percentValue?: number | null;
|
|
17
|
+
};
|
|
18
|
+
ram?: {
|
|
19
|
+
value?: number | null;
|
|
20
|
+
percentValue?: number | null;
|
|
21
|
+
};
|
|
22
|
+
disk?: {
|
|
23
|
+
value?: number | null;
|
|
24
|
+
percentValue?: number | null;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
processId: string;
|
|
28
|
+
dateValue: Date;
|
|
29
|
+
};
|
|
30
|
+
export type ParamsSendStatsAlert = {
|
|
31
|
+
webhookUrl?: string;
|
|
32
|
+
} & BaseSendAlertParams & PayloadSendStatsAlert;
|
|
33
|
+
export declare const sendLogAlert: (params: ParamsSendLogAlert) => Promise<void>;
|
|
34
|
+
export declare const sendStatsAlert: (params: ParamsSendStatsAlert) => Promise<void>;
|
|
35
|
+
export {};
|