Skip to content

Open-source status page, incident response and uptime monitoring

📝 fix typo (#1030)

Thibault Le Ouayf592b1035b32
diff --git a/apps/checker/handlers/ping.go b/apps/checker/handlers/ping.go
index e9e960c7e..9fcc03960 100644
--- a/apps/checker/handlers/ping.go
+++ b/apps/checker/handlers/ping.go
@@ -17,12 +17,12 @@ type PingResponse struct {
Body string `json:"body,omitempty"`
Headers string `json:"headers,omitempty"`
Region string `json:"region"`
+ Timing string `json:"timing,omitempty"`
RequestId int64 `json:"requestId,omitempty"`
WorkspaceId int64 `json:"workspaceId,omitempty"`
Latency int64 `json:"latency"`
Timestamp int64 `json:"timestamp"`
- Status int `json:"status,omitempty"`
- Timing string `json:"timing,omitempty"`
+ StatusCode int `json:"statusCode,omitempty"`
}
type Response struct {
@@ -42,7 +42,7 @@ type Response struct {
func (h Handler) PingRegionHandler(c *gin.Context) {
ctx := c.Request.Context()
- dataSourceName := "check_response__v1"
+ dataSourceName := "check_response_http__v0"
region := c.Param("region")
if region == "" {
@@ -125,7 +125,7 @@ func (h Handler) PingRegionHandler(c *gin.Context) {
tbData := PingResponse{
RequestId: req.RequestId,
WorkspaceId: req.WorkspaceId,
- Status: r.Status,
+ StatusCode: r.Status,
Latency: r.Latency,
Body: r.Body,
Headers: string(headersAsString),
diff --git a/apps/checker/handlers/tcp.go b/apps/checker/handlers/tcp.go
index 1a3b11451..be87ea350 100644
--- a/apps/checker/handlers/tcp.go
+++ b/apps/checker/handlers/tcp.go
@@ -26,7 +26,7 @@ type TCPResponse struct {
// Only used for Tinybird
type TCPData struct {
Timing string `json:"timing"`
- ErrorMessage string `json:"error"`
+ ErrorMessage string `json:"errorMessage"`
Region string `json:"region"`
RequestId int64 `json:"requestId,omitempty"`
@@ -35,7 +35,7 @@ type TCPData struct {
Timestamp int64 `json:"timestamp"`
Latency int64 `json:"latency"`
- Error uint8 `json:"errorMessage"`
+ Error uint8 `json:"error"`
}
func (h Handler) TCPHandler(c *gin.Context) {
diff --git a/apps/docs/mint.json b/apps/docs/mint.json
index 97bace357..4ce0b559a 100644
--- a/apps/docs/mint.json
+++ b/apps/docs/mint.json
@@ -150,7 +150,7 @@
},
{
"group": "Check",
- "pages": ["api-reference/check/post-check"]
+ "pages": ["api-reference/check/http/post-http"]
},
{
"group": "Status Page",