@abyss-project/monitor 1.0.44 → 1.0.46

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/index.d.ts CHANGED
@@ -13,6 +13,7 @@ export declare const API_KEY_APPLICATION_HEADER = "abyss-monitor-api-key-applica
13
13
  export declare const ADMIN_TOKEN_HEADER = "abyss-admin-token";
14
14
  export declare const HEADER_CRON_TASK_SIGNATURE_NAME = "abyss-monitor-cron-task-signature";
15
15
  export declare const CRON_TASK_SIGNATURE_ALGORITHM = "sha256";
16
+ export declare const MAX_RESPONSE_DATA_SIZE = 10240;
16
17
  export declare const HEADER_WEBHOOK_SIGNATURE_NAME = "abyss-monitor-webhook-signature";
17
18
  export declare const WEBHOOK_SIGNATURE_ALGORITHM = "sha256";
18
19
  export declare const NUMBER_RETRY_API = 10;
package/dist/index.js CHANGED
@@ -30,7 +30,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
30
30
  };
31
31
  var _a;
32
32
  Object.defineProperty(exports, "__esModule", { value: true });
33
- exports.AbyssMonitorCore = exports.RETRY_CODES = exports.BASE_DELAY_BETWEEN_RETRY = exports.NUMBER_RETRY_API = exports.WEBHOOK_SIGNATURE_ALGORITHM = exports.HEADER_WEBHOOK_SIGNATURE_NAME = exports.CRON_TASK_SIGNATURE_ALGORITHM = exports.HEADER_CRON_TASK_SIGNATURE_NAME = exports.ADMIN_TOKEN_HEADER = exports.API_KEY_APPLICATION_HEADER = void 0;
33
+ exports.AbyssMonitorCore = exports.RETRY_CODES = exports.BASE_DELAY_BETWEEN_RETRY = exports.NUMBER_RETRY_API = exports.WEBHOOK_SIGNATURE_ALGORITHM = exports.HEADER_WEBHOOK_SIGNATURE_NAME = exports.MAX_RESPONSE_DATA_SIZE = exports.CRON_TASK_SIGNATURE_ALGORITHM = exports.HEADER_CRON_TASK_SIGNATURE_NAME = exports.ADMIN_TOKEN_HEADER = exports.API_KEY_APPLICATION_HEADER = void 0;
34
34
  require("reflect-metadata");
35
35
  const axios_1 = __importDefault(require("axios"));
36
36
  const axios_retry_1 = __importStar(require("axios-retry"));
@@ -47,6 +47,7 @@ exports.API_KEY_APPLICATION_HEADER = 'abyss-monitor-api-key-application';
47
47
  exports.ADMIN_TOKEN_HEADER = 'abyss-admin-token';
48
48
  exports.HEADER_CRON_TASK_SIGNATURE_NAME = 'abyss-monitor-cron-task-signature';
49
49
  exports.CRON_TASK_SIGNATURE_ALGORITHM = 'sha256';
50
+ exports.MAX_RESPONSE_DATA_SIZE = 10240;
50
51
  exports.HEADER_WEBHOOK_SIGNATURE_NAME = 'abyss-monitor-webhook-signature';
51
52
  exports.WEBHOOK_SIGNATURE_ALGORITHM = 'sha256';
52
53
  exports.NUMBER_RETRY_API = 10;
@@ -2,6 +2,7 @@ export interface CreateFuturePartitionsInfrastructureResponse {
2
2
  data: {
3
3
  message: string;
4
4
  partitionsCreated: number;
5
+ requestId: string;
5
6
  };
6
7
  }
7
8
  export interface PartitionInfo {
@@ -5,6 +5,12 @@ export interface IApplicationCronTaskHistory {
5
5
  startDate: Date;
6
6
  requestId: string | null;
7
7
  hasFailed: boolean | null;
8
+ responseStatusCode: number | null;
9
+ responseData: string | null;
10
+ responseHeaders: string | null;
11
+ responseTimeMs: number | null;
12
+ errorMessage: string | null;
13
+ retryCount: number | null;
8
14
  updatedAt?: Date;
9
15
  createdAt?: Date;
10
16
  applicationCronTask?: IApplicationCronTask;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/monitor",
3
- "version": "1.0.44",
3
+ "version": "1.0.46",
4
4
  "description": "Core package to interact with Abyss-Monitor",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",