@abyss-project/monitor 1.0.38 → 1.0.40
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/index.d.ts +1 -0
- package/dist/api/index.js +1 -0
- package/dist/api/infrastructure.admin.api.d.ts +3 -0
- package/dist/api/infrastructure.admin.api.js +12 -0
- package/dist/api/report.admin.api.js +2 -1
- package/dist/types/interface/api/index.d.ts +2 -0
- package/dist/types/interface/api/index.js +2 -0
- package/dist/types/interface/api/requests/infrastructure.admin.request.d.ts +3 -0
- package/dist/types/interface/api/requests/infrastructure.admin.request.js +2 -0
- package/dist/types/interface/api/responses/infrastructure.admin.response.d.ts +17 -0
- package/dist/types/interface/api/responses/infrastructure.admin.response.js +2 -0
- package/dist/types/interface/api/responses/report.admin.response.d.ts +17 -0
- package/package.json +1 -1
package/dist/api/index.d.ts
CHANGED
package/dist/api/index.js
CHANGED
|
@@ -33,3 +33,4 @@ __exportStar(require("./application-sentinel.api"), exports);
|
|
|
33
33
|
__exportStar(require("./application-sentinel.admin.api"), exports);
|
|
34
34
|
__exportStar(require("./metrics.api"), exports);
|
|
35
35
|
__exportStar(require("./report.admin.api"), exports);
|
|
36
|
+
__exportStar(require("./infrastructure.admin.api"), exports);
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { CreateFuturePartitionsInfrastructureBody, CreateFuturePartitionsInfrastructureResponse, GetPartitionsInfoInfrastructureResponse } from '../types';
|
|
2
|
+
export declare const createFuturePartitionsInfrastructureAdmin: (body: CreateFuturePartitionsInfrastructureBody) => Promise<CreateFuturePartitionsInfrastructureResponse>;
|
|
3
|
+
export declare const getPartitionsInfoInfrastructureAdmin: () => Promise<GetPartitionsInfoInfrastructureResponse>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPartitionsInfoInfrastructureAdmin = exports.createFuturePartitionsInfrastructureAdmin = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const createFuturePartitionsInfrastructureAdmin = async (body) => {
|
|
6
|
+
return (await __1.AbyssMonitorCore.axios.post(`infrastructure/admin/partitions/create-future`, body)).data;
|
|
7
|
+
};
|
|
8
|
+
exports.createFuturePartitionsInfrastructureAdmin = createFuturePartitionsInfrastructureAdmin;
|
|
9
|
+
const getPartitionsInfoInfrastructureAdmin = async () => {
|
|
10
|
+
return (await __1.AbyssMonitorCore.axios.get(`infrastructure/admin/partitions/info`)).data;
|
|
11
|
+
};
|
|
12
|
+
exports.getPartitionsInfoInfrastructureAdmin = getPartitionsInfoInfrastructureAdmin;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getReportAdmin = void 0;
|
|
4
4
|
const __1 = require("..");
|
|
5
5
|
const getReportAdmin = async (body) => {
|
|
6
|
-
return (await __1.AbyssMonitorCore.axios.post(`report/admin/report`, body))
|
|
6
|
+
return (await __1.AbyssMonitorCore.axios.post(`report/admin/report`, body))
|
|
7
|
+
.data;
|
|
7
8
|
};
|
|
8
9
|
exports.getReportAdmin = getReportAdmin;
|
|
@@ -20,6 +20,7 @@ export * from './requests/application-sentinel.admin.request';
|
|
|
20
20
|
export * from './requests/application-sentinel.request';
|
|
21
21
|
export * from './requests/metrics.request';
|
|
22
22
|
export * from './requests/report.admin.request';
|
|
23
|
+
export * from './requests/infrastructure.admin.request';
|
|
23
24
|
export * from './responses/application.response';
|
|
24
25
|
export * from './responses/application.admin.response';
|
|
25
26
|
export * from './responses/application-stats.admin.response';
|
|
@@ -39,3 +40,4 @@ export * from './responses/application-sentinel.admin.response';
|
|
|
39
40
|
export * from './responses/application-sentinel.response';
|
|
40
41
|
export * from './responses/metrics.response';
|
|
41
42
|
export * from './responses/report.admin.response';
|
|
43
|
+
export * from './responses/infrastructure.admin.response';
|
|
@@ -36,6 +36,7 @@ __exportStar(require("./requests/application-sentinel.admin.request"), exports);
|
|
|
36
36
|
__exportStar(require("./requests/application-sentinel.request"), exports);
|
|
37
37
|
__exportStar(require("./requests/metrics.request"), exports);
|
|
38
38
|
__exportStar(require("./requests/report.admin.request"), exports);
|
|
39
|
+
__exportStar(require("./requests/infrastructure.admin.request"), exports);
|
|
39
40
|
__exportStar(require("./responses/application.response"), exports);
|
|
40
41
|
__exportStar(require("./responses/application.admin.response"), exports);
|
|
41
42
|
__exportStar(require("./responses/application-stats.admin.response"), exports);
|
|
@@ -55,3 +56,4 @@ __exportStar(require("./responses/application-sentinel.admin.response"), exports
|
|
|
55
56
|
__exportStar(require("./responses/application-sentinel.response"), exports);
|
|
56
57
|
__exportStar(require("./responses/metrics.response"), exports);
|
|
57
58
|
__exportStar(require("./responses/report.admin.response"), exports);
|
|
59
|
+
__exportStar(require("./responses/infrastructure.admin.response"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface CreateFuturePartitionsInfrastructureResponse {
|
|
2
|
+
data: {
|
|
3
|
+
message: string;
|
|
4
|
+
partitionsCreated: number;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
export interface PartitionInfo {
|
|
8
|
+
tableName: string;
|
|
9
|
+
partitionName: string;
|
|
10
|
+
startDate: string;
|
|
11
|
+
endDate: string;
|
|
12
|
+
}
|
|
13
|
+
export interface GetPartitionsInfoInfrastructureResponse {
|
|
14
|
+
data: {
|
|
15
|
+
[tableName: string]: PartitionInfo[];
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { LogLevel } from '../../../enum';
|
|
1
2
|
export interface GetReportAdminResponse {
|
|
2
3
|
data: {
|
|
3
4
|
metrics: {
|
|
@@ -21,6 +22,22 @@ export interface GetReportAdminResponse {
|
|
|
21
22
|
endpoint: string;
|
|
22
23
|
count: number;
|
|
23
24
|
}>;
|
|
25
|
+
totalLogs: number;
|
|
26
|
+
totalCronTasks: number;
|
|
27
|
+
successfulCronTasks: number;
|
|
28
|
+
failedCronTasks: number;
|
|
29
|
+
totalEvents: number;
|
|
30
|
+
totalWebhooks: number;
|
|
31
|
+
successfulWebhooks: number;
|
|
32
|
+
failedWebhooks: number;
|
|
33
|
+
totalSentinelChecks: number;
|
|
34
|
+
successfulSentinelChecks: number;
|
|
35
|
+
failedSentinelChecks: number;
|
|
36
|
+
logsByMonth: Array<{
|
|
37
|
+
month: number;
|
|
38
|
+
level: LogLevel;
|
|
39
|
+
count: number;
|
|
40
|
+
}>;
|
|
24
41
|
};
|
|
25
42
|
};
|
|
26
43
|
}
|