aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api/time-machine.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/api/time-machine.ts')
-rw-r--r--server/sonar-web/src/main/js/api/time-machine.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/api/time-machine.ts b/server/sonar-web/src/main/js/api/time-machine.ts
index 643b3fb9848..4423d563c8c 100644
--- a/server/sonar-web/src/main/js/api/time-machine.ts
+++ b/server/sonar-web/src/main/js/api/time-machine.ts
@@ -19,7 +19,7 @@
*/
import { getJSON } from '../helpers/request';
-interface ITimeMachineResponse {
+interface TimeMachineResponse {
measures: Array<{
metric: string;
history: Array<{ date: string; value: string }>;
@@ -31,7 +31,7 @@ export function getTimeMachineData(
component: string,
metrics: string[],
other?: { p?: number; ps?: number; from?: string; to?: string }
-): Promise<ITimeMachineResponse> {
+): Promise<TimeMachineResponse> {
return getJSON('/api/measures/search_history', {
component,
metrics: metrics.join(),
@@ -44,8 +44,8 @@ export function getAllTimeMachineData(
component: string,
metrics: Array<string>,
other?: { p?: number; from?: string; to?: string },
- prev?: ITimeMachineResponse
-): Promise<ITimeMachineResponse> {
+ prev?: TimeMachineResponse
+): Promise<TimeMachineResponse> {
return getTimeMachineData(component, metrics, { ...other, ps: 1000 }).then(r => {
const result = prev
? {