Skip to content

Open-source status page, incident response and uptime monitoring

fix: missing region (#1027)

Maximilian Kaskeebbc0920534d
diff --git a/apps/checker/handlers/ping.go b/apps/checker/handlers/ping.go
index 5168b2903..e9e960c7e 100644
--- a/apps/checker/handlers/ping.go
+++ b/apps/checker/handlers/ping.go
@@ -135,6 +135,7 @@ func (h Handler) PingRegionHandler(c *gin.Context) {
}
res = r
+ res.Region = h.Region
if tbData.RequestId != 0 {
if err := h.TbClient.SendEvent(ctx, tbData, dataSourceName); err != nil {
diff --git a/apps/checker/http.go b/apps/checker/http.go
index 84ca6ae1b..32c903426 100644
--- a/apps/checker/http.go
+++ b/apps/checker/http.go
@@ -35,6 +35,7 @@ type Response struct {
Headers map[string]string `json:"headers,omitempty"`
Body string `json:"body,omitempty"`
Error string `json:"error,omitempty"`
+ Region string `json:"region"`
Latency int64 `json:"latency"`
Timestamp int64 `json:"timestamp"`
Status int `json:"status,omitempty"`