mirror of
https://github.com/tormachris/cf-workers-status-page.git
synced 2025-09-21 16:35:15 +02:00
feat: collect avg response time by default
This commit is contained in:
17
src/components/monitorDayAverage.js
Normal file
17
src/components/monitorDayAverage.js
Normal file
@ -0,0 +1,17 @@
|
||||
const locations = {
|
||||
WAW: 'Warsaw',
|
||||
SCL: 'Santiago de Chile',
|
||||
MEL: 'Melbourne',
|
||||
SIN: 'Singapore',
|
||||
}
|
||||
|
||||
export default function MonitorDayAverage({ location, avg }) {
|
||||
return (
|
||||
<>
|
||||
<br />
|
||||
<small>
|
||||
{locations[location] || location}: {avg}ms
|
||||
</small>
|
||||
</>
|
||||
)
|
||||
}
|
Reference in New Issue
Block a user