Skip to content

Commit

Permalink
📝 fix typo (#1030)
Browse files Browse the repository at this point in the history
* 📝 fix typo

* 📝 typo doc

* 📝 typo
  • Loading branch information
thibaultleouay authored Oct 6, 2024
1 parent cbeeb03 commit f592b10
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions apps/checker/handlers/ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 == "" {
Expand Down Expand Up @@ -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),
Expand Down
4 changes: 2 additions & 2 deletions apps/checker/handlers/tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand All @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
},
{
"group": "Check",
"pages": ["api-reference/check/post-check"]
"pages": ["api-reference/check/http/post-http"]
},
{
"group": "Status Page",
Expand Down

0 comments on commit f592b10

Please sign in to comment.