Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
🚀 memory checker (#987)
Thibault Le Ouayf17eb2dadce7
diff --git a/apps/checker/cmd/main.go b/apps/checker/cmd/main.goindex e7ccb9eba..be5f9bedd 100644--- a/apps/checker/cmd/main.go+++ b/apps/checker/cmd/main.go@@ -26,15 +26,15 @@ type statusCode int// We should export ittype PingResponse struct {+ Body string `json:"body,omitempty"`+ Headers string `json:"headers,omitempty"`+ Region string `json:"region"`RequestId int64 `json:"requestId,omitempty"`WorkspaceId int64 `json:"workspaceId,omitempty"`- Status int `json:"status,omitempty"`Latency int64 `json:"latency"`- Body string `json:"body,omitempty"`- Headers string `json:"headers,omitempty"`Time int64 `json:"time"`Timing checker.Timing `json:"timing"`- Region string `json:"region"`+ Status int `json:"status,omitempty"`}func (s statusCode) IsSuccessful() bool {diff --git a/apps/checker/ping.go b/apps/checker/ping.goindex 47d48d6a4..c83351955 100644--- a/apps/checker/ping.go+++ b/apps/checker/ping.go@@ -21,18 +21,18 @@ import (type PingData struct {WorkspaceID string `json:"workspaceId"`MonitorID string `json:"monitorId"`- Timestamp int64 `json:"timestamp"`- StatusCode int `json:"statusCode,omitempty"`- Latency int64 `json:"latency"`- CronTimestamp int64 `json:"cronTimestamp"`URL string `json:"url"`Region string `json:"region"`Message string `json:"message,omitempty"`Timing string `json:"timing,omitempty"`Headers string `json:"headers,omitempty"`- Error uint8 `json:"error"`Assertions string `json:"assertions"`Body string `json:"body,omitempty"`+ Latency int64 `json:"latency"`+ CronTimestamp int64 `json:"cronTimestamp"`+ Timestamp int64 `json:"timestamp"`+ StatusCode int `json:"statusCode,omitempty"`+ Error uint8 `json:"error"`}type Timing struct {@@ -49,17 +49,17 @@ type Timing struct {}type Response struct {+ Headers map[string]string `json:"headers,omitempty"`+ Error string `json:"error,omitempty"`+ Body string `json:"body,omitempty"`+ Region string `json:"region"`+ Tags []string `json:"tags,omitempty"`RequestId int64 `json:"requestId,omitempty"`WorkspaceId int64 `json:"workspaceId,omitempty"`- Status int `json:"status,omitempty"`Latency int64 `json:"latency"`- Body string `json:"body,omitempty"`- Headers map[string]string `json:"headers,omitempty"`Time int64 `json:"time"`Timing Timing `json:"timing"`- Error string `json:"error,omitempty"`- Tags []string `json:"tags,omitempty"`- Region string `json:"region"`+ Status int `json:"status,omitempty"`}func Ping(ctx context.Context, client *http.Client, inputData request.CheckerRequest) (PingData, error) {diff --git a/apps/checker/request/request.go b/apps/checker/request/request.goindex 5629a08f1..c59b967b8 100644--- a/apps/checker/request/request.go+++ b/apps/checker/request/request.go@@ -46,27 +46,27 @@ type Assertion struct {}type CheckerRequest struct {- WorkspaceID string `json:"workspaceId"`- URL string `json:"url"`- MonitorID string `json:"monitorId"`- Method string `json:"method"`- CronTimestamp int64 `json:"cronTimestamp"`- Body string `json:"body"`- Timeout int64 `json:"timeout"`- DegradedAfter int64 `json:"degradedAfter,omitempty"`- Headers []struct {+ Headers []struct {Key string `json:"key"`Value string `json:"value"`} `json:"headers,omitempty"`+ WorkspaceID string `json:"workspaceId"`+ URL string `json:"url"`+ MonitorID string `json:"monitorId"`+ Method string `json:"method"`Status string `json:"status"`+ Body string `json:"body"`RawAssertions []json.RawMessage `json:"assertions,omitempty"`+ CronTimestamp int64 `json:"cronTimestamp"`+ Timeout int64 `json:"timeout"`+ DegradedAfter int64 `json:"degradedAfter,omitempty"`}type PingRequest struct {- RequestId int64 `json:"requestId"`- WorkspaceId int64 `json:"workspaceId"`+ Headers map[string]string `json:"headers"`URL string `json:"url"`Method string `json:"method"`Body string `json:"body"`- Headers map[string]string `json:"headers"`+ RequestId int64 `json:"requestId"`+ WorkspaceId int64 `json:"workspaceId"`}diff --git a/apps/checker/update.go b/apps/checker/update.goindex a8146300b..b9ac983a6 100644--- a/apps/checker/update.go+++ b/apps/checker/update.go@@ -15,9 +15,9 @@ type UpdateData struct {MonitorId string `json:"monitorId"`Status string `json:"status"`Message string `json:"message,omitempty"`- StatusCode int `json:"statusCode,omitempty"`Region string `json:"region"`CronTimestamp int64 `json:"cronTimestamp"`+ StatusCode int `json:"statusCode,omitempty"`}func UpdateStatus(ctx context.Context, updateData UpdateData) {diff --git a/apps/web/src/components/marketing/partners.tsx b/apps/web/src/components/marketing/partners.tsxindex fede0d29b..a11f7f97c 100644--- a/apps/web/src/components/marketing/partners.tsx+++ b/apps/web/src/components/marketing/partners.tsx@@ -40,7 +40,7 @@ export function Partners() {rel="noreferrer"className="group inline-flex items-center justify-center">- <Midday className="h-6 w-24 sm:h-8 sm:w-32" />+ <Midday className="h-6 w-24 sm:h-8 sm:w-24" /><ArrowUpRight className="ml-1 h-4 w-4 flex-shrink-0 text-muted-foreground group-hover:text-foreground" /></a></div>diff --git a/apps/web/src/components/svg/midday.tsx b/apps/web/src/components/svg/midday.tsxindex 32089afff..63a473921 100644--- a/apps/web/src/components/svg/midday.tsx+++ b/apps/web/src/components/svg/midday.tsx@@ -2,7 +2,12 @@ import type { SVGAttributes } from "react";export function Midday(props: SVGAttributes<SVGSVGElement>) {return (- <svg xmlns="http://www.w3.org/2000/svg" fill="none" {...props}>+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 102 30"+ fill="none"+ {...props}+ ><pathfill="currentColor"fillRule="evenodd"