@abyss-project/monitor 1.0.18 → 1.0.19
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IGetSentinelMetricsParams, IGetSentinelMetricsResponse } from '../types';
|
|
2
|
-
export declare const getSentinelMetrics: (params: IGetSentinelMetricsParams) => Promise<IGetSentinelMetricsResponse>;
|
|
1
|
+
import { IGetSentinelMetricsParams, IGetSentinelMetricsQuery, IGetSentinelMetricsResponse } from '../types';
|
|
2
|
+
export declare const getSentinelMetrics: (params: IGetSentinelMetricsParams, query: IGetSentinelMetricsQuery) => Promise<IGetSentinelMetricsResponse>;
|
package/dist/api/metrics.api.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getSentinelMetrics = void 0;
|
|
4
4
|
const __1 = require("..");
|
|
5
|
-
const getSentinelMetrics = async (params) => {
|
|
6
|
-
return (await __1.AbyssMonitorCore.axios.get(`metrics/sentinel/${params.projectId}
|
|
5
|
+
const getSentinelMetrics = async (params, query) => {
|
|
6
|
+
return (await __1.AbyssMonitorCore.axios.get(`metrics/sentinel/${params.projectId}`, { params: query })).data;
|
|
7
7
|
};
|
|
8
8
|
exports.getSentinelMetrics = getSentinelMetrics;
|
|
@@ -61,3 +61,11 @@ export interface ITriggerApplicationSentinelParams {
|
|
|
61
61
|
applicationId: string;
|
|
62
62
|
applicationSentinelId: string;
|
|
63
63
|
}
|
|
64
|
+
export interface IMetricsLatencyApplicationSentinelParams {
|
|
65
|
+
applicationId: string;
|
|
66
|
+
applicationSentinelId: string;
|
|
67
|
+
}
|
|
68
|
+
export interface IMetricsLatencyApplicationSentinelQuery {
|
|
69
|
+
startDate?: Date;
|
|
70
|
+
endDate?: Date;
|
|
71
|
+
}
|
|
@@ -24,3 +24,7 @@ export interface ITriggerApplicationSentinelData {
|
|
|
24
24
|
applicationSentinelHistory: IApplicationSentinelHistory;
|
|
25
25
|
}
|
|
26
26
|
export type ITriggerApplicationSentinelResponse = IResponse<ITriggerApplicationSentinelData>;
|
|
27
|
+
export interface IMetricsLatencyApplicationSentinelData {
|
|
28
|
+
metrics: Record<string, number>;
|
|
29
|
+
}
|
|
30
|
+
export type IMetricsLatencyApplicationSentinelResponse = IResponse<IMetricsLatencyApplicationSentinelData>;
|