feat(ui): expose 30d badges and response chart selector for duration (#994)
* chore: initial commit for 30d badge/chart UI support * chore revert some changes * chore build frontend * chore remove old line * rebuild frontend * re-order list * feat: add support for 1h response chart * chore(docs): add section about response time chart * chore(frontend): add missing select * chore: code format * chore: new web build * Revert "chore: code format" This reverts commit 517f0ce3c85e16e771cddc26ca67c2085703158b. * chore(responsechart): remove support for 1h charts response time is only stored at 1h intervals, having a chart for the past 1h does not make sense.
This commit is contained in:
committed by
GitHub
parent
9fd134ca9c
commit
64b4c53b4e
@ -23,7 +23,7 @@ func UptimeRaw(c *fiber.Ctx) error {
|
||||
case "1h":
|
||||
from = time.Now().Add(-2 * time.Hour) // Because uptime metrics are stored by hour, we have to cheat a little
|
||||
default:
|
||||
return c.Status(400).SendString("Durations supported: 30d,7d, 24h, 1h")
|
||||
return c.Status(400).SendString("Durations supported: 30d, 7d, 24h, 1h")
|
||||
}
|
||||
key := c.Params("key")
|
||||
uptime, err := store.Get().GetUptimeByKey(key, from, time.Now())
|
||||
|
Reference in New Issue
Block a user