use formatMs function to consistently format point times
This commit is contained in:
1 parent
65c6f567b5
commit
336dbe4de2
32 files changed
+153
-147
No files matched your search
@@ -1,13 +1,12 @@
|
|||||||
import Stack from "@mui/material/Stack";
|
import Stack from "@mui/material/Stack";
|
||||||
import Tooltip from "@mui/material/Tooltip";
|
import Tooltip from "@mui/material/Tooltip";
|
||||||
import Typography from "@mui/material/Typography";
|
import Typography from "@mui/material/Typography";
|
||||||
import { formatDateWithTz } from "@/Utils/TimeUtils";
|
import { formatDateWithTz, formatMs } from "@/Utils/TimeUtils";
|
||||||
import type { CheckSnapshot } from "@/Types/Check";
|
import type { CheckSnapshot } from "@/Types/Check";
|
||||||
import { useTheme } from "@mui/material/styles";
|
import { useTheme } from "@mui/material/styles";
|
||||||
import { useSelector } from "react-redux";
|
import { useSelector } from "react-redux";
|
||||||
import type { RootState } from "@/Types/state";
|
import type { RootState } from "@/Types/state";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import prettyMilliseconds from "pretty-ms";
|
|
||||||
|
|
||||||
type HeatmapCheck =
|
type HeatmapCheck =
|
||||||
| CheckSnapshot
|
| CheckSnapshot
|
||||||
@@ -59,9 +58,7 @@ export const HeatmapResponseTimeTooltip = ({
|
|||||||
</Typography>
|
</Typography>
|
||||||
<Typography>
|
<Typography>
|
||||||
{t("common.labels.responseTime")}:{" "}
|
{t("common.labels.responseTime")}:{" "}
|
||||||
{check?.responseTime
|
{check?.responseTime ? formatMs(check.responseTime) : "N/A"}
|
||||||
? prettyMilliseconds(check.responseTime, { compact: true })
|
|
||||||
: "N/A"}
|
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography textTransform={"capitalize"}>
|
<Typography textTransform={"capitalize"}>
|
||||||
Status:{" "}
|
Status:{" "}
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import { useMemo } from "react";
|
|||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { MAX_RECENT_CHECKS } from "@/Types/Monitor";
|
import { MAX_RECENT_CHECKS } from "@/Types/Monitor";
|
||||||
import { computeBarHeights } from "@/Utils/DataUtils";
|
import { computeBarHeights } from "@/Utils/DataUtils";
|
||||||
|
import { formatMs } from "@/Utils/TimeUtils";
|
||||||
|
|
||||||
interface HistogramResponseTimeProps {
|
interface HistogramResponseTimeProps {
|
||||||
checks: CheckSnapshot[];
|
checks: CheckSnapshot[];
|
||||||
@@ -19,25 +20,25 @@ interface HistogramResponseTimeProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
interface ResponseTimeStats {
|
interface ResponseTimeStats {
|
||||||
max: number | string;
|
max: string | null;
|
||||||
avg: number | string;
|
avg: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const DEFAULT_HEIGHT = 50;
|
const DEFAULT_HEIGHT = 50;
|
||||||
|
|
||||||
const calculateResponseTimeStats = (checks: CheckSnapshot[]): ResponseTimeStats => {
|
const calculateResponseTimeStats = (checks: CheckSnapshot[]): ResponseTimeStats => {
|
||||||
if (!Array.isArray(checks) || checks.length === 0) {
|
if (!Array.isArray(checks) || checks.length === 0) {
|
||||||
return { max: "-", avg: "-" };
|
return { max: null, avg: null };
|
||||||
}
|
}
|
||||||
|
|
||||||
const validChecks = checks.filter((check) => check.responseTime != null);
|
const validChecks = checks.filter((check) => check.responseTime != null);
|
||||||
if (validChecks.length === 0) {
|
if (validChecks.length === 0) {
|
||||||
return { max: "-", avg: "-" };
|
return { max: null, avg: null };
|
||||||
}
|
}
|
||||||
|
|
||||||
const responseTimes = validChecks.map((check) => check.responseTime);
|
const responseTimes = validChecks.map((check) => check.responseTime);
|
||||||
const max = Math.round(Math.max(...responseTimes));
|
const max = formatMs(Math.max(...responseTimes));
|
||||||
const avg = Math.round(
|
const avg = formatMs(
|
||||||
responseTimes.reduce((sum, time) => sum + time, 0) / responseTimes.length
|
responseTimes.reduce((sum, time) => sum + time, 0) / responseTimes.length
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -69,29 +70,28 @@ export const HistogramResponseTime = ({
|
|||||||
const chartHeight = typeof height === "number" ? `${height}px` : height;
|
const chartHeight = typeof height === "number" ? `${height}px` : height;
|
||||||
const gridGap = gap ?? theme.spacing(0.5);
|
const gridGap = gap ?? theme.spacing(0.5);
|
||||||
|
|
||||||
const statsContent = showStats &&
|
const statsContent = showStats && (stats.max !== null || stats.avg !== null) && (
|
||||||
(typeof stats.max === "number" || typeof stats.avg === "number") && (
|
<Stack
|
||||||
<Stack
|
justifyContent="center"
|
||||||
justifyContent="center"
|
alignItems={statsPosition === "left" ? "flex-end" : "flex-start"}
|
||||||
alignItems={statsPosition === "left" ? "flex-end" : "flex-start"}
|
width={110}
|
||||||
width={110}
|
pr={statsPosition === "left" ? theme.spacing(8) : 0}
|
||||||
pr={statsPosition === "left" ? theme.spacing(8) : 0}
|
pl={statsPosition === "right" ? theme.spacing(8) : 0}
|
||||||
pl={statsPosition === "right" ? theme.spacing(8) : 0}
|
>
|
||||||
|
<Typography
|
||||||
|
variant="body2"
|
||||||
|
noWrap
|
||||||
>
|
>
|
||||||
<Typography
|
{t("common.charts.histogram.avg", { value: stats.avg })}
|
||||||
variant="body2"
|
</Typography>
|
||||||
noWrap
|
<Typography
|
||||||
>
|
variant="body2"
|
||||||
{t("common.charts.histogram.avg", { value: stats.avg })}
|
noWrap
|
||||||
</Typography>
|
>
|
||||||
<Typography
|
{t("common.charts.histogram.max", { value: stats.max })}
|
||||||
variant="body2"
|
</Typography>
|
||||||
noWrap
|
</Stack>
|
||||||
>
|
);
|
||||||
{t("common.charts.histogram.max", { value: stats.max })}
|
|
||||||
</Typography>
|
|
||||||
</Stack>
|
|
||||||
);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Stack
|
<Stack
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import type { FlatGeoCheck } from "@/Types/GeoCheck";
|
|||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { formatStatusCode } from "@/Utils/statusCode";
|
import { formatStatusCode } from "@/Utils/statusCode";
|
||||||
import "maplibre-gl/dist/maplibre-gl.css";
|
import "maplibre-gl/dist/maplibre-gl.css";
|
||||||
|
import { formatMs } from "@/Utils/TimeUtils";
|
||||||
|
|
||||||
interface GeoChecksMapProps {
|
interface GeoChecksMapProps {
|
||||||
geoChecks: FlatGeoCheck[];
|
geoChecks: FlatGeoCheck[];
|
||||||
@@ -83,10 +84,6 @@ export const GeoChecksMap = ({ geoChecks }: GeoChecksMapProps) => {
|
|||||||
return status ? theme.palette.success.main : theme.palette.error.main;
|
return status ? theme.palette.success.main : theme.palette.error.main;
|
||||||
};
|
};
|
||||||
|
|
||||||
const formatResponseTime = (timing: number): string => {
|
|
||||||
return `${timing.toFixed(0)}ms`;
|
|
||||||
};
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{mapPopupStyles}
|
{mapPopupStyles}
|
||||||
@@ -186,7 +183,7 @@ export const GeoChecksMap = ({ geoChecks }: GeoChecksMapProps) => {
|
|||||||
>
|
>
|
||||||
Response Time:
|
Response Time:
|
||||||
</Typography>{" "}
|
</Typography>{" "}
|
||||||
{formatResponseTime(selectedCheck.timings.total)}
|
{formatMs(selectedCheck.timings.total)}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography
|
<Typography
|
||||||
variant="caption"
|
variant="caption"
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import { useTheme } from "@mui/material/styles";
|
|||||||
import type { MonitorStats, Monitor } from "@/Types/Monitor";
|
import type { MonitorStats, Monitor } from "@/Types/Monitor";
|
||||||
import { getStatusPalette } from "@/Utils/MonitorUtils";
|
import { getStatusPalette } from "@/Utils/MonitorUtils";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
import { formatMs } from "@/Utils/TimeUtils";
|
||||||
|
|
||||||
interface MonitorStatBoxesProps {
|
interface MonitorStatBoxesProps {
|
||||||
monitor?: Monitor;
|
monitor?: Monitor;
|
||||||
@@ -67,7 +68,7 @@ export const MonitorStatBoxes = ({
|
|||||||
/>
|
/>
|
||||||
<StatBox
|
<StatBox
|
||||||
title={t("pages.common.monitors.statBoxes.lastResponseTime")}
|
title={t("pages.common.monitors.statBoxes.lastResponseTime")}
|
||||||
subtitle={prettyMilliseconds(monitorStats?.lastResponseTime ?? 0)}
|
subtitle={formatMs(monitorStats?.lastResponseTime ?? 0)}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{monitor?.type === "http" && (
|
{monitor?.type === "http" && (
|
||||||
|
|||||||
@@ -14,11 +14,10 @@ import {
|
|||||||
import type { TooltipProps } from "recharts";
|
import type { TooltipProps } from "recharts";
|
||||||
import type { NameType, ValueType } from "recharts/types/component/DefaultTooltipContent";
|
import type { NameType, ValueType } from "recharts/types/component/DefaultTooltipContent";
|
||||||
import Typography from "@mui/material/Typography";
|
import Typography from "@mui/material/Typography";
|
||||||
import prettyMilliseconds from "pretty-ms";
|
|
||||||
import { XTick } from "@/Components/monitors/charts/XTick";
|
import { XTick } from "@/Components/monitors/charts/XTick";
|
||||||
import { useSelector } from "react-redux";
|
import { useSelector } from "react-redux";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { formatDateWithTz, tooltipDateFormatLookup } from "@/Utils/TimeUtils";
|
import { formatDateWithTz, formatMs, tooltipDateFormatLookup } from "@/Utils/TimeUtils";
|
||||||
import { useTheme } from "@mui/material/styles";
|
import { useTheme } from "@mui/material/styles";
|
||||||
import type { Theme } from "@mui/material/styles";
|
import type { Theme } from "@mui/material/styles";
|
||||||
import type { GroupedCheck, GroupedUptimeCheck } from "@/Types/Check";
|
import type { GroupedCheck, GroupedUptimeCheck } from "@/Types/Check";
|
||||||
@@ -56,16 +55,13 @@ const ResponseTimeToolTip = ({
|
|||||||
if (!active) return null;
|
if (!active) return null;
|
||||||
|
|
||||||
const format = tooltipDateFormatLookup(range);
|
const format = tooltipDateFormatLookup(range);
|
||||||
const responseTime = Math.floor(payload[0]?.payload?.avgResponseTime || 0);
|
const responseTime = payload[0]?.payload?.avgResponseTime ?? 0;
|
||||||
return (
|
return (
|
||||||
<BaseBox sx={{ py: theme.spacing(2), px: theme.spacing(4) }}>
|
<BaseBox sx={{ py: theme.spacing(2), px: theme.spacing(4) }}>
|
||||||
<Typography>{formatDateWithTz(String(label), format, uiTimezone)}</Typography>
|
<Typography>{formatDateWithTz(String(label), format, uiTimezone)}</Typography>
|
||||||
<Typography>
|
<Typography>
|
||||||
{t("common.charts.histogram.responseTime", {
|
{t("common.charts.histogram.responseTime", {
|
||||||
value: prettyMilliseconds(responseTime, {
|
value: formatMs(responseTime),
|
||||||
formatSubMilliseconds: true,
|
|
||||||
compact: true,
|
|
||||||
}),
|
|
||||||
})}
|
})}
|
||||||
</Typography>
|
</Typography>
|
||||||
</BaseBox>
|
</BaseBox>
|
||||||
@@ -94,7 +90,7 @@ const TimingPhasesToolTip = ({
|
|||||||
<BaseBox sx={{ py: theme.spacing(2), px: theme.spacing(4) }}>
|
<BaseBox sx={{ py: theme.spacing(2), px: theme.spacing(4) }}>
|
||||||
<Typography>{formatDateWithTz(bucket.bucketDate, format, uiTimezone)}</Typography>
|
<Typography>{formatDateWithTz(bucket.bucketDate, format, uiTimezone)}</Typography>
|
||||||
<Typography>
|
<Typography>
|
||||||
{t("common.charts.histogram.total", { value: prettyMilliseconds(total) })}
|
{t("common.charts.histogram.total", { value: formatMs(total) })}
|
||||||
</Typography>
|
</Typography>
|
||||||
{PHASE_KEYS.map((key) => (
|
{PHASE_KEYS.map((key) => (
|
||||||
<Stack
|
<Stack
|
||||||
@@ -108,11 +104,7 @@ const TimingPhasesToolTip = ({
|
|||||||
color={theme.palette.chart.phases[PHASE_COLOR_KEYS[key]]}
|
color={theme.palette.chart.phases[PHASE_COLOR_KEYS[key]]}
|
||||||
/>
|
/>
|
||||||
<Typography>
|
<Typography>
|
||||||
{t(PHASE_LABEL_KEYS[key])}:{" "}
|
{t(PHASE_LABEL_KEYS[key])}: {formatMs(bucket[key])}
|
||||||
{prettyMilliseconds(bucket[key], {
|
|
||||||
formatSubMilliseconds: true,
|
|
||||||
compact: true,
|
|
||||||
})}
|
|
||||||
</Typography>
|
</Typography>
|
||||||
</Stack>
|
</Stack>
|
||||||
))}
|
))}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import Typography from "@mui/material/Typography";
|
|||||||
import { BaseChart } from "@/Components/design-elements";
|
import { BaseChart } from "@/Components/design-elements";
|
||||||
import { useTheme } from "@mui/material/styles";
|
import { useTheme } from "@mui/material/styles";
|
||||||
import { useSelector } from "react-redux";
|
import { useSelector } from "react-redux";
|
||||||
import { formatDateWithTz } from "@/Utils/TimeUtils";
|
import { formatDateWithTz, formatMs } from "@/Utils/TimeUtils";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { ResponsiveContainer, BarChart, XAxis, Bar, Cell, Tooltip } from "recharts";
|
import { ResponsiveContainer, BarChart, XAxis, Bar, Cell, Tooltip } from "recharts";
|
||||||
import { getResponseTimeColor } from "@/Utils/MonitorUtils";
|
import { getResponseTimeColor } from "@/Utils/MonitorUtils";
|
||||||
@@ -100,7 +100,7 @@ export const HistogramStatus = ({
|
|||||||
</Typography>
|
</Typography>
|
||||||
) : null}
|
) : null}
|
||||||
<Typography variant="caption">{titleText}</Typography>
|
<Typography variant="caption">{titleText}</Typography>
|
||||||
<Typography variant="body2">{Math.floor(avg)} ms</Typography>
|
<Typography variant="body2">{formatMs(avg)}</Typography>
|
||||||
</Stack>
|
</Stack>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import { Cell, RadialBarChart, RadialBar, ResponsiveContainer } from "recharts";
|
|||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { getResponseTimeColor } from "@/Utils/MonitorUtils";
|
import { getResponseTimeColor } from "@/Utils/MonitorUtils";
|
||||||
import { useTheme } from "@mui/material/styles";
|
import { useTheme } from "@mui/material/styles";
|
||||||
|
import { formatMs } from "@/Utils/TimeUtils";
|
||||||
|
|
||||||
export const RadialAvgResponse = ({ avg, max }: { avg: number; max: number }) => {
|
export const RadialAvgResponse = ({ avg, max }: { avg: number; max: number }) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
@@ -84,7 +85,9 @@ export const RadialAvgResponse = ({ avg, max }: { avg: number; max: number }) =>
|
|||||||
<Typography
|
<Typography
|
||||||
variant="h1"
|
variant="h1"
|
||||||
textAlign={"center"}
|
textAlign={"center"}
|
||||||
>{`${avg?.toFixed()}ms`}</Typography>
|
>
|
||||||
|
{formatMs(avg)}
|
||||||
|
</Typography>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Stack>
|
</Stack>
|
||||||
</BaseChart>
|
</BaseChart>
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import prettyMilliseconds from "pretty-ms";
|
|||||||
import { useTheme } from "@mui/material";
|
import { useTheme } from "@mui/material";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import type { Diagnostics } from "@/Types/Diagnostics";
|
import type { Diagnostics } from "@/Types/Diagnostics";
|
||||||
|
import { formatMs } from "@/Utils/TimeUtils";
|
||||||
|
|
||||||
interface StatsProps {
|
interface StatsProps {
|
||||||
diagnostics: Diagnostics | null;
|
diagnostics: Diagnostics | null;
|
||||||
@@ -18,9 +19,7 @@ export const Stats = ({ diagnostics }: StatsProps) => {
|
|||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
|
|
||||||
const eventLoopDelay = diagnostics
|
const eventLoopDelay = diagnostics
|
||||||
? prettyMilliseconds(diagnostics.eventLoopDelayMs ?? 0, {
|
? formatMs(diagnostics.eventLoopDelayMs ?? 0)
|
||||||
millisecondsDecimalDigits: 2,
|
|
||||||
})
|
|
||||||
: PLACEHOLDER;
|
: PLACEHOLDER;
|
||||||
const uptime = diagnostics
|
const uptime = diagnostics
|
||||||
? prettyMilliseconds(diagnostics.uptimeMs ?? 0, { hideSeconds: true })
|
? prettyMilliseconds(diagnostics.uptimeMs ?? 0, { hideSeconds: true })
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
import type { CheckSnapshot } from "@/Types/Check";
|
import type { CheckSnapshot } from "@/Types/Check";
|
||||||
import Stack from "@mui/material/Stack";
|
import Stack from "@mui/material/Stack";
|
||||||
import Typography from "@mui/material/Typography";
|
import Typography from "@mui/material/Typography";
|
||||||
import prettyMilliseconds from "pretty-ms";
|
import { formatDateWithTz, formatMs } from "@/Utils/TimeUtils";
|
||||||
import { formatDateWithTz } from "@/Utils/TimeUtils";
|
|
||||||
import { useStatusPageTheme } from "@/Pages/StatusPage/Status/themes/StatusPageThemeProvider";
|
import { useStatusPageTheme } from "@/Pages/StatusPage/Status/themes/StatusPageThemeProvider";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
|
||||||
@@ -16,7 +15,7 @@ export const ThemedChartTooltip = ({ check }: { check: CheckSnapshot }) => {
|
|||||||
fontWeight={600}
|
fontWeight={600}
|
||||||
>
|
>
|
||||||
{check.status
|
{check.status
|
||||||
? `${prettyMilliseconds(check.responseTime, { compact: true })}`
|
? formatMs(check.responseTime)
|
||||||
: t("pages.statusPages.monitorsList.chart.downTooltip")}
|
: t("pages.statusPages.monitorsList.chart.downTooltip")}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography
|
<Typography
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import { useTranslation } from "react-i18next";
|
|||||||
import type { CheckSnapshot } from "@/Types/Check";
|
import type { CheckSnapshot } from "@/Types/Check";
|
||||||
import { MAX_RECENT_CHECKS } from "@/Types/Monitor";
|
import { MAX_RECENT_CHECKS } from "@/Types/Monitor";
|
||||||
import { ThemedChartTooltip } from "@/Pages/StatusPage/Status/themes/shared/ThemedChartTooltip";
|
import { ThemedChartTooltip } from "@/Pages/StatusPage/Status/themes/shared/ThemedChartTooltip";
|
||||||
|
import { formatMs } from "@/Utils/TimeUtils";
|
||||||
|
|
||||||
const CELLS = MAX_RECENT_CHECKS;
|
const CELLS = MAX_RECENT_CHECKS;
|
||||||
|
|
||||||
@@ -59,7 +60,7 @@ export const ThemedHeatmap = ({ checks, containerSx, cellSx }: Props) => {
|
|||||||
>
|
>
|
||||||
<Box
|
<Box
|
||||||
sx={cellSx(kind)}
|
sx={cellSx(kind)}
|
||||||
aria-label={`${check.responseTime} ms, ${check.status ? "up" : "down"}`}
|
aria-label={`${formatMs(check.responseTime)}, ${check.status ? "up" : "down"}`}
|
||||||
/>
|
/>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import { useTranslation } from "react-i18next";
|
|||||||
import type { CheckSnapshot } from "@/Types/Check";
|
import type { CheckSnapshot } from "@/Types/Check";
|
||||||
import { MAX_RECENT_CHECKS } from "@/Types/Monitor";
|
import { MAX_RECENT_CHECKS } from "@/Types/Monitor";
|
||||||
import { computeBarHeights } from "@/Utils/DataUtils";
|
import { computeBarHeights } from "@/Utils/DataUtils";
|
||||||
|
import { formatMs } from "@/Utils/TimeUtils";
|
||||||
import { ThemedChartTooltip } from "@/Pages/StatusPage/Status/themes/shared/ThemedChartTooltip";
|
import { ThemedChartTooltip } from "@/Pages/StatusPage/Status/themes/shared/ThemedChartTooltip";
|
||||||
const CELLS = MAX_RECENT_CHECKS;
|
const CELLS = MAX_RECENT_CHECKS;
|
||||||
const MIN_HEIGHT_PCT = 6;
|
const MIN_HEIGHT_PCT = 6;
|
||||||
@@ -41,11 +42,11 @@ export const ThemedHistogram = ({
|
|||||||
];
|
];
|
||||||
const heights = computeBarHeights(source);
|
const heights = computeBarHeights(source);
|
||||||
const valid = out.filter((c): c is CheckSnapshot => c !== null && c.responseTime > 0);
|
const valid = out.filter((c): c is CheckSnapshot => c !== null && c.responseTime > 0);
|
||||||
const maxRt = valid.length ? Math.max(...valid.map((c) => c.responseTime)) : 1;
|
const maxRt = valid.length ? Math.max(...valid.map((c) => c.responseTime)) : 0;
|
||||||
const avgRt = valid.length
|
const avgRt = valid.length
|
||||||
? Math.round(valid.reduce((s, c) => s + c.responseTime, 0) / valid.length)
|
? valid.reduce((s, c) => s + c.responseTime, 0) / valid.length
|
||||||
: 0;
|
: 0;
|
||||||
return { padded: out, heights, avg: avgRt, peak: maxRt };
|
return { padded: out, heights, avg: formatMs(avgRt), peak: formatMs(maxRt) };
|
||||||
}, [checks]);
|
}, [checks]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -71,7 +72,7 @@ export const ThemedHistogram = ({
|
|||||||
>
|
>
|
||||||
<Box
|
<Box
|
||||||
sx={barSx(tone(check), height)}
|
sx={barSx(tone(check), height)}
|
||||||
aria-label={`${check.responseTime} ms`}
|
aria-label={formatMs(check.responseTime)}
|
||||||
/>
|
/>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -8,10 +8,9 @@ import Box from "@mui/material/Box";
|
|||||||
import type { Header } from "@/Components/design-elements";
|
import type { Header } from "@/Components/design-elements";
|
||||||
import type { FlatGeoCheck } from "@/Types/GeoCheck";
|
import type { FlatGeoCheck } from "@/Types/GeoCheck";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { formatDateWithTz } from "@/Utils/TimeUtils";
|
import { formatDateWithTz, formatMs } from "@/Utils/TimeUtils";
|
||||||
import type { RootState } from "@/Types/state";
|
import type { RootState } from "@/Types/state";
|
||||||
import { useSelector } from "react-redux";
|
import { useSelector } from "react-redux";
|
||||||
import prettyMilliseconds from "pretty-ms";
|
|
||||||
|
|
||||||
export const GeoChecksTable = ({
|
export const GeoChecksTable = ({
|
||||||
geoChecks,
|
geoChecks,
|
||||||
@@ -69,7 +68,7 @@ export const GeoChecksTable = ({
|
|||||||
content: t("common.table.headers.responseTime"),
|
content: t("common.table.headers.responseTime"),
|
||||||
render: (row) => {
|
render: (row) => {
|
||||||
if (!row.timings?.total) return "N/A";
|
if (!row.timings?.total) return "N/A";
|
||||||
return prettyMilliseconds(row.timings.total, { compact: true });
|
return formatMs(row.timings.total);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -79,10 +79,27 @@ export const formatTimestamp = (timestamp: string | number | null): string => {
|
|||||||
return date.toLocaleString();
|
return date.toLocaleString();
|
||||||
};
|
};
|
||||||
|
|
||||||
export const formatMs = (ms: number): string => {
|
const DISPLAY_UNITS = [MS_PER_DAY, MS_PER_HOUR, MS_PER_MINUTE, MS_PER_SECOND];
|
||||||
return prettyMilliseconds(ms, {
|
|
||||||
|
// pretty-ms floors seconds-and-above and truncates fractional ms, so values
|
||||||
|
// must be rounded to their display unit first to land on the nearest whole
|
||||||
|
// unit (53.6 → "54 ms", 1937 → "2 s", 59500 → "1 m").
|
||||||
|
const roundToDisplayUnit = (ms: number): number => {
|
||||||
|
for (const unit of DISPLAY_UNITS) {
|
||||||
|
if (ms >= unit) return Math.round(ms / unit) * unit;
|
||||||
|
}
|
||||||
|
return ms >= 1 ? Math.round(ms) : ms;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const formatMs = (ms: number, hasSpace: boolean = true): string => {
|
||||||
|
const formatted = prettyMilliseconds(roundToDisplayUnit(ms), {
|
||||||
compact: true,
|
compact: true,
|
||||||
formatSubMilliseconds: true,
|
formatSubMilliseconds: true,
|
||||||
secondsDecimalDigits: 0,
|
secondsDecimalDigits: 0,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (hasSpace) {
|
||||||
|
return formatted.replace(/^(\d+)(\D+)$/, "$1 $2");
|
||||||
|
}
|
||||||
|
return formatted;
|
||||||
};
|
};
|
||||||
@@ -58,8 +58,8 @@
|
|||||||
"uptime": "وقت التشغيل"
|
"uptime": "وقت التشغيل"
|
||||||
},
|
},
|
||||||
"histogram": {
|
"histogram": {
|
||||||
"avg": "المتوسط: {{value}} مللي ثانية",
|
"avg": "المتوسط: {{value}}",
|
||||||
"max": "الحد الأقصى: {{value}} مللي ثانية"
|
"max": "الحد الأقصى: {{value}}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dialogs": {
|
"dialogs": {
|
||||||
@@ -1352,10 +1352,10 @@
|
|||||||
"responseTime": "وقت الاستجابة"
|
"responseTime": "وقت الاستجابة"
|
||||||
},
|
},
|
||||||
"chart": {
|
"chart": {
|
||||||
"avg": "متوسط {{value}} مللي ثانية",
|
"avg": "متوسط {{value}}",
|
||||||
"downTooltip": "متوقف",
|
"downTooltip": "متوقف",
|
||||||
"heatmapAria": "خريطة حرارية لزمن الاستجابة",
|
"heatmapAria": "خريطة حرارية لزمن الاستجابة",
|
||||||
"max": "أقصى {{value}} مللي ثانية"
|
"max": "أقصى {{value}}"
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"breached": "تم تجاوز الحد",
|
"breached": "تم تجاوز الحد",
|
||||||
|
|||||||
@@ -58,8 +58,8 @@
|
|||||||
"uptime": "Temps en línia"
|
"uptime": "Temps en línia"
|
||||||
},
|
},
|
||||||
"histogram": {
|
"histogram": {
|
||||||
"avg": "Mitjana: {{value}} ms",
|
"avg": "Mitjana: {{value}}",
|
||||||
"max": "Màx: {{value}} ms"
|
"max": "Màx: {{value}}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dialogs": {
|
"dialogs": {
|
||||||
@@ -1346,8 +1346,8 @@
|
|||||||
"initializing": "Inicialitzant"
|
"initializing": "Inicialitzant"
|
||||||
},
|
},
|
||||||
"chart": {
|
"chart": {
|
||||||
"avg": "mitj {{value}}ms",
|
"avg": "mitj {{value}}",
|
||||||
"max": "màx {{value}}ms",
|
"max": "màx {{value}}",
|
||||||
"downTooltip": "Caigut",
|
"downTooltip": "Caigut",
|
||||||
"heatmapAria": "Mapa de calor del temps de resposta"
|
"heatmapAria": "Mapa de calor del temps de resposta"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -58,8 +58,8 @@
|
|||||||
"uptime": "Dostupnost"
|
"uptime": "Dostupnost"
|
||||||
},
|
},
|
||||||
"histogram": {
|
"histogram": {
|
||||||
"avg": "Prům.: {{value}} ms",
|
"avg": "Prům.: {{value}}",
|
||||||
"max": "Max: {{value}} ms"
|
"max": "Max: {{value}}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dialogs": {
|
"dialogs": {
|
||||||
@@ -1352,10 +1352,10 @@
|
|||||||
"responseTime": "Doba odezvy"
|
"responseTime": "Doba odezvy"
|
||||||
},
|
},
|
||||||
"chart": {
|
"chart": {
|
||||||
"avg": "průměr {{value}}ms",
|
"avg": "průměr {{value}}",
|
||||||
"downTooltip": "Mimo provoz",
|
"downTooltip": "Mimo provoz",
|
||||||
"heatmapAria": "Tepelná mapa doby odezvy",
|
"heatmapAria": "Tepelná mapa doby odezvy",
|
||||||
"max": "max {{value}}ms"
|
"max": "max {{value}}"
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"breached": "Překročen limit",
|
"breached": "Překročen limit",
|
||||||
|
|||||||
@@ -58,8 +58,8 @@
|
|||||||
"uptime": "Verfügbarkeit"
|
"uptime": "Verfügbarkeit"
|
||||||
},
|
},
|
||||||
"histogram": {
|
"histogram": {
|
||||||
"avg": "Durchschn.: {{value}} ms",
|
"avg": "Durchschn.: {{value}}",
|
||||||
"max": "Max.: {{value}} ms"
|
"max": "Max.: {{value}}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dialogs": {
|
"dialogs": {
|
||||||
@@ -1352,10 +1352,10 @@
|
|||||||
"responseTime": "Antwortzeit"
|
"responseTime": "Antwortzeit"
|
||||||
},
|
},
|
||||||
"chart": {
|
"chart": {
|
||||||
"avg": "Ø {{value}}ms",
|
"avg": "Ø {{value}}",
|
||||||
"downTooltip": "Ausgefallen",
|
"downTooltip": "Ausgefallen",
|
||||||
"heatmapAria": "Heatmap der Antwortzeit",
|
"heatmapAria": "Heatmap der Antwortzeit",
|
||||||
"max": "max. {{value}}ms"
|
"max": "max. {{value}}"
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"breached": "Schwellenwert überschritten",
|
"breached": "Schwellenwert überschritten",
|
||||||
|
|||||||
@@ -74,8 +74,8 @@
|
|||||||
"uptime": "Uptime"
|
"uptime": "Uptime"
|
||||||
},
|
},
|
||||||
"histogram": {
|
"histogram": {
|
||||||
"avg": "Avg: {{value}} ms",
|
"avg": "Avg: {{value}}",
|
||||||
"max": "Max: {{value}} ms",
|
"max": "Max: {{value}}",
|
||||||
"responseTime": "Response time: {{value}}",
|
"responseTime": "Response time: {{value}}",
|
||||||
"total": "Total: {{value}}"
|
"total": "Total: {{value}}"
|
||||||
},
|
},
|
||||||
@@ -1455,8 +1455,8 @@
|
|||||||
"initializing": "Initializing"
|
"initializing": "Initializing"
|
||||||
},
|
},
|
||||||
"chart": {
|
"chart": {
|
||||||
"avg": "avg {{value}}ms",
|
"avg": "avg {{value}}",
|
||||||
"max": "max {{value}}ms",
|
"max": "max {{value}}",
|
||||||
"downTooltip": "Down",
|
"downTooltip": "Down",
|
||||||
"heatmapAria": "Response time heatmap"
|
"heatmapAria": "Response time heatmap"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -58,8 +58,8 @@
|
|||||||
"uptime": "Tiempo de actividad"
|
"uptime": "Tiempo de actividad"
|
||||||
},
|
},
|
||||||
"histogram": {
|
"histogram": {
|
||||||
"avg": "Prom: {{value}} ms",
|
"avg": "Prom: {{value}}",
|
||||||
"max": "Máx: {{value}} ms"
|
"max": "Máx: {{value}}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dialogs": {
|
"dialogs": {
|
||||||
@@ -1352,10 +1352,10 @@
|
|||||||
"responseTime": "Tiempo de respuesta"
|
"responseTime": "Tiempo de respuesta"
|
||||||
},
|
},
|
||||||
"chart": {
|
"chart": {
|
||||||
"avg": "prom {{value}}ms",
|
"avg": "prom {{value}}",
|
||||||
"downTooltip": "Caído",
|
"downTooltip": "Caído",
|
||||||
"heatmapAria": "Mapa de calor del tiempo de respuesta",
|
"heatmapAria": "Mapa de calor del tiempo de respuesta",
|
||||||
"max": "máx {{value}}ms"
|
"max": "máx {{value}}"
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"breached": "Umbral superado",
|
"breached": "Umbral superado",
|
||||||
|
|||||||
@@ -58,8 +58,8 @@
|
|||||||
"uptime": "Käytettävyys"
|
"uptime": "Käytettävyys"
|
||||||
},
|
},
|
||||||
"histogram": {
|
"histogram": {
|
||||||
"avg": "Keskim.: {{value}} ms",
|
"avg": "Keskim.: {{value}}",
|
||||||
"max": "Maks.: {{value}} ms"
|
"max": "Maks.: {{value}}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dialogs": {
|
"dialogs": {
|
||||||
@@ -1352,10 +1352,10 @@
|
|||||||
"responseTime": "Vasteaika"
|
"responseTime": "Vasteaika"
|
||||||
},
|
},
|
||||||
"chart": {
|
"chart": {
|
||||||
"avg": "ka {{value}}ms",
|
"avg": "ka {{value}}",
|
||||||
"downTooltip": "Alhaalla",
|
"downTooltip": "Alhaalla",
|
||||||
"heatmapAria": "Vasteajan lämpökartta",
|
"heatmapAria": "Vasteajan lämpökartta",
|
||||||
"max": "max {{value}}ms"
|
"max": "max {{value}}"
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"breached": "Kynnys ylittyi",
|
"breached": "Kynnys ylittyi",
|
||||||
|
|||||||
@@ -58,8 +58,8 @@
|
|||||||
"uptime": "Disponibilité"
|
"uptime": "Disponibilité"
|
||||||
},
|
},
|
||||||
"histogram": {
|
"histogram": {
|
||||||
"avg": "Moy : {{value}} ms",
|
"avg": "Moy : {{value}}",
|
||||||
"max": "Max : {{value}} ms"
|
"max": "Max : {{value}}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dialogs": {
|
"dialogs": {
|
||||||
@@ -1352,10 +1352,10 @@
|
|||||||
"responseTime": "Temps de réponse"
|
"responseTime": "Temps de réponse"
|
||||||
},
|
},
|
||||||
"chart": {
|
"chart": {
|
||||||
"avg": "moy {{value}}ms",
|
"avg": "moy {{value}}",
|
||||||
"downTooltip": "Hors service",
|
"downTooltip": "Hors service",
|
||||||
"heatmapAria": "Carte thermique des temps de réponse",
|
"heatmapAria": "Carte thermique des temps de réponse",
|
||||||
"max": "max {{value}}ms"
|
"max": "max {{value}}"
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"breached": "Seuil dépassé",
|
"breached": "Seuil dépassé",
|
||||||
|
|||||||
@@ -71,8 +71,8 @@
|
|||||||
"uptime": "Uptime"
|
"uptime": "Uptime"
|
||||||
},
|
},
|
||||||
"histogram": {
|
"histogram": {
|
||||||
"avg": "Media: {{value}} ms",
|
"avg": "Media: {{value}}",
|
||||||
"max": "Max: {{value}} ms"
|
"max": "Max: {{value}}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dialogs": {
|
"dialogs": {
|
||||||
@@ -1442,8 +1442,8 @@
|
|||||||
"initializing": "Inizializzazione"
|
"initializing": "Inizializzazione"
|
||||||
},
|
},
|
||||||
"chart": {
|
"chart": {
|
||||||
"avg": "media {{value}}ms",
|
"avg": "media {{value}}",
|
||||||
"max": "max {{value}}ms",
|
"max": "max {{value}}",
|
||||||
"downTooltip": "Non attivo",
|
"downTooltip": "Non attivo",
|
||||||
"heatmapAria": "Heatmap del tempo di risposta"
|
"heatmapAria": "Heatmap del tempo di risposta"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -58,8 +58,8 @@
|
|||||||
"uptime": "稼働時間"
|
"uptime": "稼働時間"
|
||||||
},
|
},
|
||||||
"histogram": {
|
"histogram": {
|
||||||
"avg": "平均: {{value}} ms",
|
"avg": "平均: {{value}}",
|
||||||
"max": "最大: {{value}} ms"
|
"max": "最大: {{value}}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dialogs": {
|
"dialogs": {
|
||||||
@@ -1352,10 +1352,10 @@
|
|||||||
"responseTime": "応答時間"
|
"responseTime": "応答時間"
|
||||||
},
|
},
|
||||||
"chart": {
|
"chart": {
|
||||||
"avg": "平均 {{value}}ms",
|
"avg": "平均 {{value}}",
|
||||||
"downTooltip": "ダウン",
|
"downTooltip": "ダウン",
|
||||||
"heatmapAria": "応答時間のヒートマップ",
|
"heatmapAria": "応答時間のヒートマップ",
|
||||||
"max": "最大 {{value}}ms"
|
"max": "最大 {{value}}"
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"breached": "しきい値超過",
|
"breached": "しきい値超過",
|
||||||
|
|||||||
@@ -53,8 +53,8 @@
|
|||||||
},
|
},
|
||||||
"charts": {
|
"charts": {
|
||||||
"histogram": {
|
"histogram": {
|
||||||
"avg": "Średnia: {{value}} ms",
|
"avg": "Średnia: {{value}}",
|
||||||
"max": "Maks: {{value}} ms"
|
"max": "Maks: {{value}}"
|
||||||
},
|
},
|
||||||
"labels": {
|
"labels": {
|
||||||
"averageResponseTime": "Średni czas odpowiedzi",
|
"averageResponseTime": "Średni czas odpowiedzi",
|
||||||
@@ -1542,10 +1542,10 @@
|
|||||||
},
|
},
|
||||||
"monitorsList": {
|
"monitorsList": {
|
||||||
"chart": {
|
"chart": {
|
||||||
"avg": "śr. {{value}}ms",
|
"avg": "śr. {{value}}",
|
||||||
"downTooltip": "Niedostępny",
|
"downTooltip": "Niedostępny",
|
||||||
"heatmapAria": "Heatmapa czasu odpowiedzi",
|
"heatmapAria": "Heatmapa czasu odpowiedzi",
|
||||||
"max": "maks. {{value}}ms"
|
"max": "maks. {{value}}"
|
||||||
},
|
},
|
||||||
"chartTypeHeatmap": "Heatmapa",
|
"chartTypeHeatmap": "Heatmapa",
|
||||||
"chartTypeHistogram": "Histogram",
|
"chartTypeHistogram": "Histogram",
|
||||||
|
|||||||
@@ -58,8 +58,8 @@
|
|||||||
"uptime": "Uptime"
|
"uptime": "Uptime"
|
||||||
},
|
},
|
||||||
"histogram": {
|
"histogram": {
|
||||||
"avg": "Média: {{value}} ms",
|
"avg": "Média: {{value}}",
|
||||||
"max": "Máx: {{value}} ms"
|
"max": "Máx: {{value}}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dialogs": {
|
"dialogs": {
|
||||||
@@ -1352,10 +1352,10 @@
|
|||||||
"responseTime": "Tempo de resposta"
|
"responseTime": "Tempo de resposta"
|
||||||
},
|
},
|
||||||
"chart": {
|
"chart": {
|
||||||
"avg": "méd {{value}}ms",
|
"avg": "méd {{value}}",
|
||||||
"downTooltip": "Fora do ar",
|
"downTooltip": "Fora do ar",
|
||||||
"heatmapAria": "Mapa de calor do tempo de resposta",
|
"heatmapAria": "Mapa de calor do tempo de resposta",
|
||||||
"max": "máx {{value}}ms"
|
"max": "máx {{value}}"
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"breached": "Limite excedido",
|
"breached": "Limite excedido",
|
||||||
|
|||||||
@@ -58,8 +58,8 @@
|
|||||||
"uptime": "Аптайм"
|
"uptime": "Аптайм"
|
||||||
},
|
},
|
||||||
"histogram": {
|
"histogram": {
|
||||||
"avg": "Сред: {{value}} мс",
|
"avg": "Сред: {{value}}",
|
||||||
"max": "Макс: {{value}} мс"
|
"max": "Макс: {{value}}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dialogs": {
|
"dialogs": {
|
||||||
@@ -1352,10 +1352,10 @@
|
|||||||
"responseTime": "Время ответа"
|
"responseTime": "Время ответа"
|
||||||
},
|
},
|
||||||
"chart": {
|
"chart": {
|
||||||
"avg": "ср {{value}}мс",
|
"avg": "ср {{value}}",
|
||||||
"downTooltip": "Не работает",
|
"downTooltip": "Не работает",
|
||||||
"heatmapAria": "Тепловая карта времени отклика",
|
"heatmapAria": "Тепловая карта времени отклика",
|
||||||
"max": "макс {{value}}мс"
|
"max": "макс {{value}}"
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"breached": "Превышен порог",
|
"breached": "Превышен порог",
|
||||||
|
|||||||
@@ -58,8 +58,8 @@
|
|||||||
"uptime": "อัปไทม์"
|
"uptime": "อัปไทม์"
|
||||||
},
|
},
|
||||||
"histogram": {
|
"histogram": {
|
||||||
"avg": "เฉลี่ย: {{value}} ms",
|
"avg": "เฉลี่ย: {{value}}",
|
||||||
"max": "สูงสุด: {{value}} ms"
|
"max": "สูงสุด: {{value}}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dialogs": {
|
"dialogs": {
|
||||||
@@ -1352,10 +1352,10 @@
|
|||||||
"responseTime": "เวลาตอบสนอง"
|
"responseTime": "เวลาตอบสนอง"
|
||||||
},
|
},
|
||||||
"chart": {
|
"chart": {
|
||||||
"avg": "เฉลี่ย {{value}}ms",
|
"avg": "เฉลี่ย {{value}}",
|
||||||
"downTooltip": "ไม่พร้อมใช้งาน",
|
"downTooltip": "ไม่พร้อมใช้งาน",
|
||||||
"heatmapAria": "แผนที่ความร้อนของเวลาตอบสนอง",
|
"heatmapAria": "แผนที่ความร้อนของเวลาตอบสนอง",
|
||||||
"max": "สูงสุด {{value}}ms"
|
"max": "สูงสุด {{value}}"
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"breached": "เกินขีดจำกัด",
|
"breached": "เกินขีดจำกัด",
|
||||||
|
|||||||
@@ -58,8 +58,8 @@
|
|||||||
"uptime": "Çalışma süresi"
|
"uptime": "Çalışma süresi"
|
||||||
},
|
},
|
||||||
"histogram": {
|
"histogram": {
|
||||||
"avg": "Ort: {{value}} ms",
|
"avg": "Ort: {{value}}",
|
||||||
"max": "Maks: {{value}} ms"
|
"max": "Maks: {{value}}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dialogs": {
|
"dialogs": {
|
||||||
@@ -1352,10 +1352,10 @@
|
|||||||
"responseTime": "Yanıt süresi"
|
"responseTime": "Yanıt süresi"
|
||||||
},
|
},
|
||||||
"chart": {
|
"chart": {
|
||||||
"avg": "ort {{value}}ms",
|
"avg": "ort {{value}}",
|
||||||
"downTooltip": "Çalışmıyor",
|
"downTooltip": "Çalışmıyor",
|
||||||
"heatmapAria": "Yanıt süresi ısı haritası",
|
"heatmapAria": "Yanıt süresi ısı haritası",
|
||||||
"max": "maks {{value}}ms"
|
"max": "maks {{value}}"
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"breached": "Eşik aşıldı",
|
"breached": "Eşik aşıldı",
|
||||||
|
|||||||
@@ -58,8 +58,8 @@
|
|||||||
"uptime": "Час роботи"
|
"uptime": "Час роботи"
|
||||||
},
|
},
|
||||||
"histogram": {
|
"histogram": {
|
||||||
"avg": "Сер: {{value}} мс",
|
"avg": "Сер: {{value}}",
|
||||||
"max": "Макс: {{value}} мс"
|
"max": "Макс: {{value}}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dialogs": {
|
"dialogs": {
|
||||||
@@ -1352,10 +1352,10 @@
|
|||||||
"responseTime": "Час відповіді"
|
"responseTime": "Час відповіді"
|
||||||
},
|
},
|
||||||
"chart": {
|
"chart": {
|
||||||
"avg": "сер {{value}}мс",
|
"avg": "сер {{value}}",
|
||||||
"downTooltip": "Не працює",
|
"downTooltip": "Не працює",
|
||||||
"heatmapAria": "Теплова карта часу відгуку",
|
"heatmapAria": "Теплова карта часу відгуку",
|
||||||
"max": "макс {{value}}мс"
|
"max": "макс {{value}}"
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"breached": "Перевищено поріг",
|
"breached": "Перевищено поріг",
|
||||||
|
|||||||
@@ -58,8 +58,8 @@
|
|||||||
"uptime": "Thời gian hoạt động"
|
"uptime": "Thời gian hoạt động"
|
||||||
},
|
},
|
||||||
"histogram": {
|
"histogram": {
|
||||||
"avg": "TB: {{value}} ms",
|
"avg": "TB: {{value}}",
|
||||||
"max": "Tối đa: {{value}} ms"
|
"max": "Tối đa: {{value}}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dialogs": {
|
"dialogs": {
|
||||||
@@ -1352,10 +1352,10 @@
|
|||||||
"responseTime": "Thời gian phản hồi"
|
"responseTime": "Thời gian phản hồi"
|
||||||
},
|
},
|
||||||
"chart": {
|
"chart": {
|
||||||
"avg": "TB {{value}}ms",
|
"avg": "TB {{value}}",
|
||||||
"downTooltip": "Ngừng hoạt động",
|
"downTooltip": "Ngừng hoạt động",
|
||||||
"heatmapAria": "Bản đồ nhiệt thời gian phản hồi",
|
"heatmapAria": "Bản đồ nhiệt thời gian phản hồi",
|
||||||
"max": "tối đa {{value}}ms"
|
"max": "tối đa {{value}}"
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"breached": "Vượt ngưỡng",
|
"breached": "Vượt ngưỡng",
|
||||||
|
|||||||
@@ -58,8 +58,8 @@
|
|||||||
"uptime": "正常运行时间"
|
"uptime": "正常运行时间"
|
||||||
},
|
},
|
||||||
"histogram": {
|
"histogram": {
|
||||||
"avg": "平均: {{value}} ms",
|
"avg": "平均: {{value}}",
|
||||||
"max": "最大: {{value}} ms"
|
"max": "最大: {{value}}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dialogs": {
|
"dialogs": {
|
||||||
@@ -1352,10 +1352,10 @@
|
|||||||
"responseTime": "响应时间"
|
"responseTime": "响应时间"
|
||||||
},
|
},
|
||||||
"chart": {
|
"chart": {
|
||||||
"avg": "平均 {{value}}ms",
|
"avg": "平均 {{value}}",
|
||||||
"downTooltip": "宕机",
|
"downTooltip": "宕机",
|
||||||
"heatmapAria": "响应时间热图",
|
"heatmapAria": "响应时间热图",
|
||||||
"max": "最大 {{value}}ms"
|
"max": "最大 {{value}}"
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"breached": "超出阈值",
|
"breached": "超出阈值",
|
||||||
|
|||||||
@@ -58,8 +58,8 @@
|
|||||||
"uptime": "正常運行時間"
|
"uptime": "正常運行時間"
|
||||||
},
|
},
|
||||||
"histogram": {
|
"histogram": {
|
||||||
"avg": "平均:{{value}} ms",
|
"avg": "平均:{{value}}",
|
||||||
"max": "最大:{{value}} ms"
|
"max": "最大:{{value}}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dialogs": {
|
"dialogs": {
|
||||||
@@ -1352,10 +1352,10 @@
|
|||||||
"responseTime": "回應時間"
|
"responseTime": "回應時間"
|
||||||
},
|
},
|
||||||
"chart": {
|
"chart": {
|
||||||
"avg": "平均 {{value}}ms",
|
"avg": "平均 {{value}}",
|
||||||
"downTooltip": "停機",
|
"downTooltip": "停機",
|
||||||
"heatmapAria": "回應時間熱圖",
|
"heatmapAria": "回應時間熱圖",
|
||||||
"max": "最大 {{value}}ms"
|
"max": "最大 {{value}}"
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"breached": "超過閾值",
|
"breached": "超過閾值",
|
||||||
|
|||||||
Reference in new issue
Block a user