Skip to content

Commit 21fd56a

Browse files
[FIX]: correct casing of types in Dora Metrics Auditor (#147)
2 parents 692b859 + 439d9a9 commit 21fd56a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

v6y-apps/bfb-devops-auditor/src/auditors/dora-metrics/DoraMetricsUtils.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ import { devOpsCategories, devOpsType } from '@v6y/core-logic/src/config/DevOpsC
1010

1111
import {
1212
CalculateMeanTimeToRestoreServiceParams,
13+
CalculateUpTimeAverageParams,
1314
DeploymentFrequencyParamsType,
1415
DoraMetricType,
1516
DoraMetricsAuditParamsType,
1617
LeadReviewTimeParamsType,
1718
LeadTimeForChangesParamsType,
1819
ServerDowntimePeriodType,
19-
calculateUpTimeAverageParams,
2020
} from '../types/DoraMetricsAuditType.ts';
2121

2222
const { formatStringToDate, formatDateToTimestamp } = DateUtils;
@@ -354,7 +354,7 @@ const calculateUpTimeAverage = ({
354354
downtimePeriods,
355355
dateStart,
356356
dateEnd,
357-
}: calculateUpTimeAverageParams): DoraMetricType => {
357+
}: CalculateUpTimeAverageParams): DoraMetricType => {
358358
const dateStartTimeStamp = formatDateToTimestamp(formatStringToDate(dateStart), 'ms');
359359
const dateEndTimeStamp = formatDateToTimestamp(formatStringToDate(dateEnd), 'ms');
360360

v6y-apps/bfb-devops-auditor/src/auditors/types/DoraMetricsAuditType.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export interface CalculateMeanTimeToRestoreServiceParams {
3636
downtimePeriods: ServerDowntimePeriodType[];
3737
}
3838

39-
export interface calculateUpTimeAverageParams {
39+
export interface CalculateUpTimeAverageParams {
4040
downtimePeriods: ServerDowntimePeriodType[];
4141
dateStart: string;
4242
dateEnd: string;

0 commit comments

Comments
 (0)