@abyss-project/monitor 1.0.37 → 1.0.39

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.
@@ -17,3 +17,4 @@ export * from './application-sentinel.api';
17
17
  export * from './application-sentinel.admin.api';
18
18
  export * from './metrics.api';
19
19
  export * from './report.admin.api';
20
+ export * from './infrastructure.admin.api';
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)).data;
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,3 @@
1
+ export interface CreateFuturePartitionsInfrastructureBody {
2
+ monthsAhead: number;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,5 @@
1
1
  export interface GetReportAdminBody {
2
- applicationId: string;
2
+ applicationId: string[];
3
3
  startDate: Date;
4
4
  endDate: Date;
5
5
  }
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/monitor",
3
- "version": "1.0.37",
3
+ "version": "1.0.39",
4
4
  "description": "Core package to interact with Abyss-Monitor",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",