implement 60 min history chart
This commit is contained in:
1 parent
578eb33b91
commit
7336287a9c
3 files changed
+78
-6
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user