@abyss-project/monitor 2.7.0 → 3.0.0
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/__tests__/latency-bucket.test.d.ts +1 -0
- package/dist/__tests__/latency-bucket.test.js +10 -0
- package/dist/__tests__/latency-bucket.test.js.map +1 -0
- package/dist/types/enum/index.d.ts +1 -0
- package/dist/types/enum/index.js +1 -0
- package/dist/types/enum/index.js.map +1 -1
- package/dist/types/enum/latency-bucket.enum.d.ts +4 -0
- package/dist/types/enum/latency-bucket.enum.js +9 -0
- package/dist/types/enum/latency-bucket.enum.js.map +1 -0
- package/dist/types/interface/api/requests/metrics.request.d.ts +0 -8
- package/dist/types/interface/api/responses/application-sentinel.response.d.ts +6 -0
- package/dist/types/interface/api/responses/metrics.response.d.ts +0 -14
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const index_1 = require("../index");
|
|
4
|
+
describe('LatencyBucket', () => {
|
|
5
|
+
it('is exported from the package root with its wire values', () => {
|
|
6
|
+
expect(index_1.LatencyBucket.HOUR).toBe('hour');
|
|
7
|
+
expect(index_1.LatencyBucket.DAY).toBe('day');
|
|
8
|
+
});
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=latency-bucket.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"latency-bucket.test.js","sourceRoot":"","sources":["../../src/__tests__/latency-bucket.test.ts"],"names":[],"mappings":";;AAAA,oCAAyC;AAEzC,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,EAAE,CAAC,wDAAwD,EAAE,GAAG,EAAE;QAChE,MAAM,CAAC,qBAAa,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACxC,MAAM,CAAC,qBAAa,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACxC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/dist/types/enum/index.js
CHANGED
|
@@ -23,4 +23,5 @@ __exportStar(require("./log-scenario.enum"), exports);
|
|
|
23
23
|
__exportStar(require("./application-webhook-scope.enum"), exports);
|
|
24
24
|
__exportStar(require("./application-sentinel-type.enum"), exports);
|
|
25
25
|
__exportStar(require("./application-sentinel-check-status.enum"), exports);
|
|
26
|
+
__exportStar(require("./latency-bucket.enum"), exports);
|
|
26
27
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/enum/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,oDAAkC;AAClC,gEAA8C;AAC9C,gEAA8C;AAC9C,mDAAiC;AACjC,sDAAoC;AACpC,mEAAiD;AACjD,mEAAiD;AACjD,2EAAyD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/enum/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,oDAAkC;AAClC,gEAA8C;AAC9C,gEAA8C;AAC9C,mDAAiC;AACjC,sDAAoC;AACpC,mEAAiD;AACjD,mEAAiD;AACjD,2EAAyD;AACzD,wDAAsC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LatencyBucket = void 0;
|
|
4
|
+
var LatencyBucket;
|
|
5
|
+
(function (LatencyBucket) {
|
|
6
|
+
LatencyBucket["HOUR"] = "hour";
|
|
7
|
+
LatencyBucket["DAY"] = "day";
|
|
8
|
+
})(LatencyBucket || (exports.LatencyBucket = LatencyBucket = {}));
|
|
9
|
+
//# sourceMappingURL=latency-bucket.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"latency-bucket.enum.js","sourceRoot":"","sources":["../../../src/types/enum/latency-bucket.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,8BAAa,CAAA;IACb,4BAAW,CAAA;AACb,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB"}
|
|
@@ -5,14 +5,6 @@ export interface IGetSentinelMetricsQuery {
|
|
|
5
5
|
applicationIds?: string[];
|
|
6
6
|
shouldGetAll?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export interface IGetLatencySentinelMetricsParams {
|
|
9
|
-
projectId: string;
|
|
10
|
-
}
|
|
11
|
-
export interface IGetLatencySentinelMetricsQuery {
|
|
12
|
-
applicationIds?: string[];
|
|
13
|
-
startDate?: Date;
|
|
14
|
-
endDate?: Date;
|
|
15
|
-
}
|
|
16
8
|
export interface IGetLastIncidentSentinelMetricsParams {
|
|
17
9
|
projectId: string;
|
|
18
10
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IResponse, IApplicationSentinel, IApplicationSentinelHistory, BasePaginate } from '../..';
|
|
2
|
+
import { LatencyBucket } from '../../../enum';
|
|
2
3
|
export interface IGetApplicationSentinelData {
|
|
3
4
|
applicationSentinel: IApplicationSentinel;
|
|
4
5
|
}
|
|
@@ -29,5 +30,10 @@ export interface IMetricsLatencyApplicationSentinelData {
|
|
|
29
30
|
date: string;
|
|
30
31
|
avgLatency: number | null;
|
|
31
32
|
}[];
|
|
33
|
+
bucket: LatencyBucket;
|
|
34
|
+
window: {
|
|
35
|
+
startDate: string;
|
|
36
|
+
endDate: string;
|
|
37
|
+
};
|
|
32
38
|
}
|
|
33
39
|
export type IMetricsLatencyApplicationSentinelResponse = IResponse<IMetricsLatencyApplicationSentinelData>;
|
|
@@ -5,20 +5,6 @@ export interface IGetSentinelMetricsData {
|
|
|
5
5
|
};
|
|
6
6
|
}
|
|
7
7
|
export type IGetSentinelMetricsResponse = IResponse<IGetSentinelMetricsData>;
|
|
8
|
-
export interface IGetLatencySentinelMetricsData {
|
|
9
|
-
metrics: Record<string, {
|
|
10
|
-
applicationId: string;
|
|
11
|
-
applicationSentinelId: string;
|
|
12
|
-
applicationSentinelName: string;
|
|
13
|
-
history: {
|
|
14
|
-
date: string;
|
|
15
|
-
avgLatency: number | null;
|
|
16
|
-
minLatency: number | null;
|
|
17
|
-
maxLatency: number | null;
|
|
18
|
-
}[];
|
|
19
|
-
}>;
|
|
20
|
-
}
|
|
21
|
-
export type IGetLatencySentinelMetricsResponse = IResponse<IGetLatencySentinelMetricsData>;
|
|
22
8
|
export interface IGetLastIncidentSentinelMetricsData {
|
|
23
9
|
metrics: {
|
|
24
10
|
incident: IApplicationSentinelHistory;
|