Openstatus www.openstatus.dev

๐Ÿ“ fix typo (#1030)

* ๐Ÿ“ fix typo

* ๐Ÿ“ typo doc

* ๐Ÿ“ typo

authored by

Thibault Le Ouay and committed by
GitHub
f592b103 cbeeb032

+7 -7
+4 -4
apps/checker/handlers/ping.go
··· 17 17 Body string `json:"body,omitempty"` 18 18 Headers string `json:"headers,omitempty"` 19 19 Region string `json:"region"` 20 + Timing string `json:"timing,omitempty"` 20 21 RequestId int64 `json:"requestId,omitempty"` 21 22 WorkspaceId int64 `json:"workspaceId,omitempty"` 22 23 Latency int64 `json:"latency"` 23 24 Timestamp int64 `json:"timestamp"` 24 - Status int `json:"status,omitempty"` 25 - Timing string `json:"timing,omitempty"` 25 + StatusCode int `json:"statusCode,omitempty"` 26 26 } 27 27 28 28 type Response struct { ··· 42 42 func (h Handler) PingRegionHandler(c *gin.Context) { 43 43 ctx := c.Request.Context() 44 44 45 - dataSourceName := "check_response__v1" 45 + dataSourceName := "check_response_http__v0" 46 46 region := c.Param("region") 47 47 48 48 if region == "" { ··· 125 125 tbData := PingResponse{ 126 126 RequestId: req.RequestId, 127 127 WorkspaceId: req.WorkspaceId, 128 - Status: r.Status, 128 + StatusCode: r.Status, 129 129 Latency: r.Latency, 130 130 Body: r.Body, 131 131 Headers: string(headersAsString),
+2 -2
apps/checker/handlers/tcp.go
··· 26 26 // Only used for Tinybird 27 27 type TCPData struct { 28 28 Timing string `json:"timing"` 29 - ErrorMessage string `json:"error"` 29 + ErrorMessage string `json:"errorMessage"` 30 30 Region string `json:"region"` 31 31 32 32 RequestId int64 `json:"requestId,omitempty"` ··· 35 35 Timestamp int64 `json:"timestamp"` 36 36 Latency int64 `json:"latency"` 37 37 38 - Error uint8 `json:"errorMessage"` 38 + Error uint8 `json:"error"` 39 39 } 40 40 41 41 func (h Handler) TCPHandler(c *gin.Context) {
+1 -1
apps/docs/mint.json
··· 150 150 }, 151 151 { 152 152 "group": "Check", 153 - "pages": ["api-reference/check/post-check"] 153 + "pages": ["api-reference/check/http/post-http"] 154 154 }, 155 155 { 156 156 "group": "Status Page",