Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📝 fix typo #1030

Merged
merged 3 commits into from
Oct 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading