diff --git a/Client/src/Components/Charts/MonitorDetails60MinChart/index.jsx b/Client/src/Components/Charts/MonitorDetails60MinChart/index.jsx
new file mode 100644
index 000000000..2c181eaec
--- /dev/null
+++ b/Client/src/Components/Charts/MonitorDetails60MinChart/index.jsx
@@ -0,0 +1,62 @@
+import {
+ BarChart,
+ Bar,
+ XAxis,
+ YAxis,
+ Cell,
+ ResponsiveContainer,
+ ReferenceLine,
+ Label,
+} from "recharts";
+
+import PropTypes from "prop-types";
+
+const MonitorDetails60MinChart = ({ data }) => {
+ const labelStyle = {
+ fontSize: "8px",
+ fill: "black",
+ };
+ return (
+
+
+
+
+
+ {data.map((check, index) => (
+ |
+ ))}
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
+
+MonitorDetails60MinChart.propTypes = {
+ data: PropTypes.array.isRequired,
+};
+
+export default MonitorDetails60MinChart;
diff --git a/Client/src/Pages/Monitors/Details/index.jsx b/Client/src/Pages/Monitors/Details/index.jsx
index 5f3ddf9fc..a8b75e6cc 100644
--- a/Client/src/Pages/Monitors/Details/index.jsx
+++ b/Client/src/Pages/Monitors/Details/index.jsx
@@ -17,6 +17,7 @@ import {
formatDurationRounded,
} from "../../../Utils/timeUtils";
import "./index.css";
+import MonitorDetails60MinChart from "../../../Components/Charts/MonitorDetails60MinChart";
const StatBox = ({ title, value }) => {
return (
@@ -178,10 +179,13 @@ const DetailsPage = () => {
{monitor?.status ? : }
+
+ {monitor.url?.replace(/^https?:\/\//, "") || "..."}
+
+
+
+
-
- {monitor.url?.replace(/^https?:\/\//, "") || "..."}
-
{
* @returns {Array} Array of booleans representing up/down.
*/
const getStatusBarValues = (checks) => {
- return checks.map((check) => {
- return check.status;
- });
+ return checks
+ .map((check) => {
+ return {
+ status: check.status,
+ responseTime: check.responseTime,
+ value: 75,
+ };
+ })
+ .reverse();
};
/**
* Get stats by monitor ID