implement 60 min history chart

This commit is contained in:
Alex Holliday committed 2024-08-13 12:36:19 -07:00
1 parent 578eb33b91
commit 7336287a9c
3 files changed
+78 -6

No files matched your search

+9 -3
View File
@@ -127,9 +127,15 @@ const getIncidents = (checks) => {
* @returns {Array<Boolean>} 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