Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
Add monitor response log API endpoints (#2129)
Bobby Christopher5de15f7bc288
diff --git a/apps/server/src/libs/test/preload.ts b/apps/server/src/libs/test/preload.tsindex eede029c8..b1a4761c8 100644--- a/apps/server/src/libs/test/preload.ts+++ b/apps/server/src/libs/test/preload.ts@@ -64,43 +64,133 @@ mock.module("@openstatus/upstash", () => ({},}));+const tinybirdMockData = {+ httpListBiweekly: [] as unknown[],+ httpGetBiweekly: [] as unknown[],+};+const tinybirdMockCalls = {+ httpListBiweekly: [] as unknown[],+ httpGetBiweekly: [] as unknown[],+};++(globalThis as Record<string, unknown>).__tinybirdMockData = tinybirdMockData;+(globalThis as Record<string, unknown>).__tinybirdMockCalls = tinybirdMockCalls;++const emptyTinybirdResponse = () => Promise.resolve({ data: [] });++const tbMock = {+ get legacy_httpStatus45d() {+ return emptyTinybirdResponse;+ },+ get legacy_tcpStatus45d() {+ return emptyTinybirdResponse;+ },+ get httpListBiweekly() {+ return (params: unknown) => {+ tinybirdMockCalls.httpListBiweekly.push(params);+ return Promise.resolve({ data: tinybirdMockData.httpListBiweekly });+ };+ },+ get httpGetBiweekly() {+ return (params: unknown) => {+ tinybirdMockCalls.httpGetBiweekly.push(params);+ return Promise.resolve({ data: tinybirdMockData.httpGetBiweekly });+ };+ },+ get httpMetricsDaily() {+ return emptyTinybirdResponse;+ },+ get httpMetricsWeekly() {+ return emptyTinybirdResponse;+ },+ get httpMetricsBiweekly() {+ return emptyTinybirdResponse;+ },+ get tcpMetricsDaily() {+ return emptyTinybirdResponse;+ },+ get tcpMetricsWeekly() {+ return emptyTinybirdResponse;+ },+ get tcpMetricsBiweekly() {+ return emptyTinybirdResponse;+ },+ get dnsMetricsDaily() {+ return emptyTinybirdResponse;+ },+ get dnsMetricsWeekly() {+ return emptyTinybirdResponse;+ },+ get dnsMetricsBiweekly() {+ return emptyTinybirdResponse;+ },+};++mock.module("@/libs/clients", () => ({+ tb: tbMock,+ redis: {+ get: (key: string) => Promise.resolve(testRedisStore.get(key) ?? null),+ set: (key: string, value: string) => {+ testRedisStore.set(key, value);+ return Promise.resolve("OK");+ },+ del: (key: string) => {+ const existed = testRedisStore.has(key) ? 1 : 0;+ testRedisStore.delete(key);+ return Promise.resolve(existed);+ },+ getdel: (key: string) => {+ const value = testRedisStore.get(key) ?? null;+ testRedisStore.delete(key);+ return Promise.resolve(value);+ },+ expire: (_key: string, _seconds: number) => Promise.resolve(1),+ },+}));+mock.module("@openstatus/tinybird", () => ({OSTinybird: class {get legacy_httpStatus45d() {- return () => Promise.resolve({ data: [] });+ return tbMock.legacy_httpStatus45d;}get legacy_tcpStatus45d() {- return () => Promise.resolve({ data: [] });+ return tbMock.legacy_tcpStatus45d;+ }+ get httpListBiweekly() {+ return tbMock.httpListBiweekly;+ }+ get httpGetBiweekly() {+ return tbMock.httpGetBiweekly;}// HTTP metrics for GetMonitorSummaryget httpMetricsDaily() {- return () => Promise.resolve({ data: [] });+ return tbMock.httpMetricsDaily;}get httpMetricsWeekly() {- return () => Promise.resolve({ data: [] });+ return tbMock.httpMetricsWeekly;}get httpMetricsBiweekly() {- return () => Promise.resolve({ data: [] });+ return tbMock.httpMetricsBiweekly;}// TCP metrics for GetMonitorSummaryget tcpMetricsDaily() {- return () => Promise.resolve({ data: [] });+ return tbMock.tcpMetricsDaily;}get tcpMetricsWeekly() {- return () => Promise.resolve({ data: [] });+ return tbMock.tcpMetricsWeekly;}get tcpMetricsBiweekly() {- return () => Promise.resolve({ data: [] });+ return tbMock.tcpMetricsBiweekly;}// DNS metrics for GetMonitorSummaryget dnsMetricsDaily() {- return () => Promise.resolve({ data: [] });+ return tbMock.dnsMetricsDaily;}get dnsMetricsWeekly() {- return () => Promise.resolve({ data: [] });+ return tbMock.dnsMetricsWeekly;}get dnsMetricsBiweekly() {- return () => Promise.resolve({ data: [] });+ return tbMock.dnsMetricsBiweekly;}},}));diff --git a/apps/server/src/routes/rpc/handlers/monitor/__tests__/monitor.test.ts b/apps/server/src/routes/rpc/handlers/monitor/__tests__/monitor.test.tsindex 0184faff6..3875da6de 100644--- a/apps/server/src/routes/rpc/handlers/monitor/__tests__/monitor.test.ts+++ b/apps/server/src/routes/rpc/handlers/monitor/__tests__/monitor.test.ts@@ -1,4 +1,11 @@-import { afterAll, beforeAll, describe, expect, test } from "bun:test";+import {+ afterAll,+ beforeAll,+ beforeEach,+ describe,+ expect,+ test,+} from "bun:test";import { and, db, eq } from "@openstatus/db";import {auditLog,@@ -31,12 +38,68 @@ async function connectRequest(}const TEST_PREFIX = "rpc-monitor-test";+const FREE_PLAN_KEY = "2";let testHttpMonitorId: number;let testTcpMonitorId: number;let testDnsMonitorId: number;let testMonitorToDeleteId: number;let testMonitorWithStatusId: number;+type TinybirdMockData = {+ httpListBiweekly: unknown[];+ httpGetBiweekly: unknown[];+};++type TinybirdMockCalls = {+ httpListBiweekly: unknown[];+ httpGetBiweekly: unknown[];+};++function getTinybirdMocks() {+ return {+ data: (+ globalThis as typeof globalThis & {+ __tinybirdMockData: TinybirdMockData;+ }+ ).__tinybirdMockData,+ calls: (+ globalThis as typeof globalThis & {+ __tinybirdMockCalls: TinybirdMockCalls;+ }+ ).__tinybirdMockCalls,+ };+}++function responseLog(overrides: Record<string, unknown> = {}) {+ return {+ id: "log_1",+ latency: 123,+ statusCode: 503,+ monitorId: String(testHttpMonitorId),+ requestStatus: "error",+ region: "iad",+ cronTimestamp: 1777667323000,+ trigger: "api",+ timestamp: 1777667323740,+ timing: {+ dns: 1,+ connect: 2,+ tls: 3,+ ttfb: 4,+ transfer: 5,+ },+ ...overrides,+ };+}++beforeEach(() => {+ const { data, calls } = getTinybirdMocks();+ data.httpListBiweekly = [];+ data.httpGetBiweekly = [];+ calls.httpListBiweekly = [];+ calls.httpGetBiweekly = [];+});+beforeAll(async () => {// Clean up any existing test dataawait db.delete(monitor).where(eq(monitor.name, `${TEST_PREFIX}-http`));@@ -1601,8 +1664,6 @@ describe("MonitorService - Default Values", () => {describe("MonitorService - Limits", () => {// Workspace 2 has free plan with limited periodicity (10m, 30m, 1h) and max 6 regions- const FREE_PLAN_KEY = "2";-test("returns error when periodicity is not allowed by plan", async () => {// Free plan only allows 10m, 30m, 1h - PERIODICITY_30S is not allowedconst res = await connectRequest(@@ -2398,3 +2459,211 @@ describe("MonitorService.GetMonitorSummary", () => {expect(res.status).toBe(401);});});++describe("MonitorService.ListMonitorHTTPResponseLogs", () => {+ test("returns paginated response logs for an HTTP monitor", async () => {+ const { data: mockData, calls } = getTinybirdMocks();+ mockData.httpListBiweekly = [+ responseLog({ id: "log_1", statusCode: 200, requestStatus: "success" }),+ responseLog({ id: "log_2", statusCode: 503, requestStatus: "error" }),+ responseLog({ id: "log_3", statusCode: 200, requestStatus: "success" }),+ ];++ const res = await connectRequest(+ "ListMonitorHTTPResponseLogs",+ {+ id: String(testHttpMonitorId),+ limit: 2,+ offset: 20,+ },+ { "x-openstatus-key": "1" },+ );++ expect(res.status).toBe(200);++ const result = await res.json();+ expect(result.logs).toHaveLength(2);+ expect(result.logs[0]).toMatchObject({+ id: "log_1",+ statusCode: 200,+ monitorId: String(testHttpMonitorId),+ requestStatus: "HTTP_RESPONSE_LOG_REQUEST_STATUS_SUCCESS",+ region: "REGION_FLY_IAD",+ trigger: "HTTP_RESPONSE_LOG_TRIGGER_API",+ timestamp: "1777667323740",+ timing: { dns: 1, connect: 2, tls: 3, ttfb: 4, transfer: 5 },+ });+ expect(result.pagination.limit).toBe(2);+ expect(result.pagination.offset).toBe(20);+ expect(result.pagination.hasMore).toBe(true);+ expect(result.pagination.nextOffset).toBe(22);+ expect(calls.httpListBiweekly).toEqual([+ {+ monitorId: String(testHttpMonitorId),+ fromDate: undefined,+ toDate: undefined,+ limit: 3,+ offset: 20,+ },+ ]);+ });++ test("returns not found for a monitor in another workspace", async () => {+ const { calls } = getTinybirdMocks();+ const otherWorkspaceMon = await db+ .insert(monitor)+ .values({+ workspaceId: 2,+ name: `${TEST_PREFIX}-response-logs-other-ws`,+ url: "https://other-ws-response-logs.example.com",+ periodicity: "1m",+ active: true,+ regions: "ams",+ jobType: "http",+ })+ .returning()+ .get();++ try {+ const res = await connectRequest(+ "ListMonitorHTTPResponseLogs",+ { id: String(otherWorkspaceMon.id) },+ { "x-openstatus-key": "1" },+ );++ expect(res.status).toBe(404);+ expect(calls.httpListBiweekly).toEqual([]);+ } finally {+ await db.delete(monitor).where(eq(monitor.id, otherWorkspaceMon.id));+ }+ });++ test("requires the response logs entitlement", async () => {+ const { calls } = getTinybirdMocks();+ const res = await connectRequest(+ "ListMonitorHTTPResponseLogs",+ { id: String(testHttpMonitorId) },+ { "x-openstatus-key": FREE_PLAN_KEY },+ );++ expect(res.status).toBe(403);+ expect(calls.httpListBiweekly).toEqual([]);+ });++ test("rejects non-HTTP monitors", async () => {+ const res = await connectRequest(+ "ListMonitorHTTPResponseLogs",+ { id: String(testTcpMonitorId) },+ { "x-openstatus-key": "1" },+ );++ expect(res.status).toBe(400);+ });+});++describe("MonitorService.GetMonitorHTTPResponseLog", () => {+ test("returns response log details without exposing the response body", async () => {+ const { data } = getTinybirdMocks();+ data.httpGetBiweekly = [+ responseLog({+ id: "log_error",+ url: "https://example.com/fail",+ error: true,+ message: "status assertion failed",+ headers: {+ "Content-Type": "text/plain",+ "X-Trace-Id": "trace_123",+ Authorization: "Bearer secret",+ "X-Session-Id": "session_123",+ },+ assertions: '[{"type":"status","compare":"eq","target":200}]',+ body: "sensitive body",+ }),+ ];++ const res = await connectRequest(+ "GetMonitorHTTPResponseLog",+ { id: String(testHttpMonitorId), logId: "log_error" },+ { "x-openstatus-key": "1" },+ );++ expect(res.status).toBe(200);++ const result = await res.json();+ expect(result.log).toMatchObject({+ url: "https://example.com/fail",+ error: true,+ message: "status assertion failed",+ headers: {+ "Content-Type": "text/plain",+ "X-Trace-Id": "trace_123",+ Authorization: "[redacted]",+ "X-Session-Id": "[redacted]",+ },+ assertions: '[{"type":"status","compare":"eq","target":200}]',+ });+ expect(result.log.body).toBeUndefined();+ });++ test("requires the response logs entitlement", async () => {+ const { calls } = getTinybirdMocks();+ const res = await connectRequest(+ "GetMonitorHTTPResponseLog",+ { id: String(testHttpMonitorId), logId: "log_error" },+ { "x-openstatus-key": FREE_PLAN_KEY },+ );++ expect(res.status).toBe(403);+ expect(calls.httpGetBiweekly).toEqual([]);+ });++ test("returns not found for a monitor in another workspace", async () => {+ const { calls } = getTinybirdMocks();+ const otherWorkspaceMon = await db+ .insert(monitor)+ .values({+ workspaceId: 2,+ name: `${TEST_PREFIX}-response-log-detail-other-ws`,+ url: "https://other-ws-response-log-detail.example.com",+ periodicity: "1m",+ active: true,+ regions: "ams",+ jobType: "http",+ })+ .returning()+ .get();++ try {+ const res = await connectRequest(+ "GetMonitorHTTPResponseLog",+ { id: String(otherWorkspaceMon.id), logId: "log_error" },+ { "x-openstatus-key": "1" },+ );++ expect(res.status).toBe(404);+ expect(calls.httpGetBiweekly).toEqual([]);+ } finally {+ await db.delete(monitor).where(eq(monitor.id, otherWorkspaceMon.id));+ }+ });++ test("returns not found when the response log does not exist", async () => {+ const res = await connectRequest(+ "GetMonitorHTTPResponseLog",+ { id: String(testHttpMonitorId), logId: "missing-log-id" },+ { "x-openstatus-key": "1" },+ );++ expect(res.status).toBe(404);+ });++ test("requires a log id", async () => {+ const res = await connectRequest(+ "GetMonitorHTTPResponseLog",+ { id: String(testHttpMonitorId) },+ { "x-openstatus-key": "1" },+ );++ expect(res.status).toBe(400);+ });+});diff --git a/apps/server/src/routes/rpc/handlers/monitor/errors.ts b/apps/server/src/routes/rpc/handlers/monitor/errors.tsindex 1911c35cf..ac512618c 100644--- a/apps/server/src/routes/rpc/handlers/monitor/errors.ts+++ b/apps/server/src/routes/rpc/handlers/monitor/errors.ts@@ -13,6 +13,8 @@ export const ErrorReason = {MONITOR_RUN_CREATE_FAILED: "MONITOR_RUN_CREATE_FAILED",MONITOR_INVALID_DATA: "MONITOR_INVALID_DATA",MONITOR_TYPE_MISMATCH: "MONITOR_TYPE_MISMATCH",+ RESPONSE_LOG_NOT_FOUND: "RESPONSE_LOG_NOT_FOUND",+ RESPONSE_LOGS_NOT_ENABLED: "RESPONSE_LOGS_NOT_ENABLED",RATE_LIMIT_EXCEEDED: "RATE_LIMIT_EXCEEDED",} as const;@@ -123,6 +125,32 @@ export function monitorTypeMismatchError();}+/**+ * Creates a "response log not found" error.+ */+export function responseLogNotFoundError(+ monitorId: string,+ logId: string,+): ConnectError {+ return createError(+ "Response log not found",+ Code.NotFound,+ ErrorReason.RESPONSE_LOG_NOT_FOUND,+ { "monitor-id": monitorId, "log-id": logId },+ );+}++/**+ * Creates a "response logs not enabled" error.+ */+export function responseLogsNotEnabledError(): ConnectError {+ return createError(+ "Upgrade for response logs",+ Code.PermissionDenied,+ ErrorReason.RESPONSE_LOGS_NOT_ENABLED,+ );+}+/*** Creates a "failed to parse monitor data" error.*/diff --git a/apps/server/src/routes/rpc/handlers/monitor/index.ts b/apps/server/src/routes/rpc/handlers/monitor/index.tsindex b50821d44..f6c66631b 100644--- a/apps/server/src/routes/rpc/handlers/monitor/index.ts+++ b/apps/server/src/routes/rpc/handlers/monitor/index.ts@@ -11,6 +11,8 @@ import type {GetMonitorResponse,GetMonitorSummaryResponse,HTTPMonitor,+ HTTPResponseLogPagination,+ ListMonitorHTTPResponseLogsResponse,MonitorConfig,MonitorService,RegionStatus,@@ -49,8 +51,14 @@ import {monitorTypeMismatchError,monitorUpdateFailedError,rateLimitExceededError,+ responseLogNotFoundError,+ responseLogsNotEnabledError,} from "./errors";import { checkMonitorLimits } from "./limits";+import {+ toHTTPResponseLogDetail,+ toHTTPResponseLogListItem,+} from "./response-logs";import {getCommonDbValues,getCommonDbValuesForUpdate,@@ -819,6 +827,87 @@ export const monitorServiceImpl: ServiceImpl<typeof MonitorService> = {regions: stringsToRegions(regionStrings),} satisfies GetMonitorSummaryResponse;},++ async listMonitorHTTPResponseLogs(req, ctx) {+ const rpcCtx = getRpcContext(ctx);+ const workspaceId = rpcCtx.workspace.id;++ if (!rpcCtx.workspace.limits["response-logs"]) {+ throw responseLogsNotEnabledError();+ }++ const dbMon = await getMonitorById(Number(req.id), workspaceId);+ if (!dbMon) {+ throw monitorNotFoundError(req.id);+ }++ if (dbMon.jobType !== "http") {+ throw monitorTypeMismatchError(req.id, "http", dbMon.jobType);+ }++ const limit = Math.min(Math.max(req.limit ?? 25, 1), 100);+ const offset = Math.max(req.offset ?? 0, 0);++ // Fetch one extra row so the response can report whether another page exists.+ const result = await tb.httpListBiweekly({+ monitorId: req.id,+ fromDate: req.fromTimestamp ? Number(req.fromTimestamp) : undefined,+ toDate: req.toTimestamp ? Number(req.toTimestamp) : undefined,+ limit: limit + 1,+ offset,+ });+ const logs = result.data.slice(0, limit).map(toHTTPResponseLogListItem);+ const hasMore = result.data.length > limit;++ const pagination: HTTPResponseLogPagination = {+ $typeName: "openstatus.monitor.v1.HTTPResponseLogPagination",+ limit,+ offset,+ hasMore,+ nextOffset: hasMore ? offset + limit : undefined,+ };++ return {+ $typeName:+ "openstatus.monitor.v1.ListMonitorHTTPResponseLogsResponse" as const,+ logs,+ pagination,+ } satisfies ListMonitorHTTPResponseLogsResponse;+ },++ async getMonitorHTTPResponseLog(req, ctx) {+ const rpcCtx = getRpcContext(ctx);+ const workspaceId = rpcCtx.workspace.id;++ if (!rpcCtx.workspace.limits["response-logs"]) {+ throw responseLogsNotEnabledError();+ }++ const dbMon = await getMonitorById(Number(req.id), workspaceId);+ if (!dbMon) {+ throw monitorNotFoundError(req.id);+ }++ if (dbMon.jobType !== "http") {+ throw monitorTypeMismatchError(req.id, "http", dbMon.jobType);+ }++ const result = await tb.httpGetBiweekly({+ id: req.logId,+ monitorId: req.id,+ });+ const log = result.data[0];++ if (!log) {+ throw responseLogNotFoundError(req.id, req.logId);+ }++ return {+ $typeName:+ "openstatus.monitor.v1.GetMonitorHTTPResponseLogResponse" as const,+ log: toHTTPResponseLogDetail(log),+ };+ },};/**diff --git a/apps/server/src/routes/rpc/handlers/monitor/response-logs.test.ts b/apps/server/src/routes/rpc/handlers/monitor/response-logs.test.tsnew file mode 100644index 000000000..b7312a9cf--- /dev/null+++ b/apps/server/src/routes/rpc/handlers/monitor/response-logs.test.ts@@ -0,0 +1,47 @@+import { expect, test } from "bun:test";++import { redactSensitiveHeaders } from "./response-logs";++test("redactSensitiveHeaders returns an empty object when headers are missing", () => {+ expect(redactSensitiveHeaders(null)).toEqual({});+});++test("redactSensitiveHeaders redacts secret-bearing response headers", () => {+ const headers = redactSensitiveHeaders({+ "X-Request-Id": "req_123",+ "X-Trace-Id": "trace_123",+ "X-Deployment": "deploy_123",+ "X-Api-Key": "key",+ "X-Session-Id": "session",+ "X-Credential-Id": "credential",+ "Set-Cookie": "atid=secret",+ "X-Service-Token": "secret",+ Authorization: "Bearer secret",+ });++ expect(headers).toEqual({+ "X-Request-Id": "req_123",+ "X-Trace-Id": "trace_123",+ "X-Deployment": "deploy_123",+ "X-Api-Key": "[redacted]",+ "X-Session-Id": "[redacted]",+ "X-Credential-Id": "[redacted]",+ "Set-Cookie": "[redacted]",+ "X-Service-Token": "[redacted]",+ Authorization: "[redacted]",+ });+});++test("redactSensitiveHeaders redacts mixed-case sensitive headers", () => {+ const headers = redactSensitiveHeaders({+ AUTHORIZATION: "Bearer secret",+ "x-auth-token": "token",+ "X-Trace-Id": "trace_123",+ });++ expect(headers).toEqual({+ AUTHORIZATION: "[redacted]",+ "x-auth-token": "[redacted]",+ "X-Trace-Id": "trace_123",+ });+});diff --git a/apps/server/src/routes/rpc/handlers/monitor/response-logs.ts b/apps/server/src/routes/rpc/handlers/monitor/response-logs.tsnew file mode 100644index 000000000..70ac92616--- /dev/null+++ b/apps/server/src/routes/rpc/handlers/monitor/response-logs.ts@@ -0,0 +1,150 @@+import {+ type HTTPResponseLogDetail,+ type HTTPResponseLogListItem,+ HTTPResponseLogRequestStatus,+ type HTTPResponseLogTiming,+ HTTPResponseLogTrigger,+} from "@openstatus/proto/monitor/v1";+import { stringToRegion } from "./converters";++const REDACTED = "[redacted]";+const SENSITIVE_HEADER_NAMES = new Set([+ "authorization",+ "cookie",+ "set-cookie",+ "proxy-authorization",+ "x-api-key",+ "x-auth-token",+]);+const SENSITIVE_HEADER_PARTS = [+ "auth",+ "cookie",+ "credential",+ "key",+ "secret",+ "session",+ "token",+];++type TinybirdTiming = {+ dns: number;+ connect: number;+ tls: number;+ ttfb: number;+ transfer: number;+} | null;++type TinybirdHTTPResponseLogListItem = {+ id: string | null;+ latency: number;+ statusCode: number | null;+ monitorId: string;+ requestStatus: "error" | "success" | "degraded" | null;+ region: string;+ cronTimestamp: number;+ trigger: "cron" | "api" | null;+ timestamp: number;+ timing: TinybirdTiming;+};++type TinybirdHTTPResponseLogDetail = TinybirdHTTPResponseLogListItem & {+ url: string;+ error: boolean;+ message: string | null;+ headers: Record<string, string> | null;+ assertions: string | null;+};++function isSensitiveHeader(name: string) {+ const normalized = name.toLowerCase();+ return (+ SENSITIVE_HEADER_NAMES.has(normalized) ||+ SENSITIVE_HEADER_PARTS.some((part) => normalized.includes(part))+ );+}++export function redactSensitiveHeaders(headers: Record<string, string> | null) {+ if (!headers) return {};++ return Object.fromEntries(+ Object.entries(headers).map(([name, value]) => [+ name,+ isSensitiveHeader(name) ? REDACTED : value,+ ]),+ );+}++function toHTTPResponseLogRequestStatus(+ status: TinybirdHTTPResponseLogListItem["requestStatus"],+) {+ switch (status) {+ case "success":+ return HTTPResponseLogRequestStatus.HTTP_RESPONSE_LOG_REQUEST_STATUS_SUCCESS;+ case "error":+ return HTTPResponseLogRequestStatus.HTTP_RESPONSE_LOG_REQUEST_STATUS_ERROR;+ case "degraded":+ return HTTPResponseLogRequestStatus.HTTP_RESPONSE_LOG_REQUEST_STATUS_DEGRADED;+ default:+ return HTTPResponseLogRequestStatus.HTTP_RESPONSE_LOG_REQUEST_STATUS_UNSPECIFIED;+ }+}++function toHTTPResponseLogTrigger(+ trigger: TinybirdHTTPResponseLogListItem["trigger"],+) {+ switch (trigger) {+ case "cron":+ return HTTPResponseLogTrigger.HTTP_RESPONSE_LOG_TRIGGER_CRON;+ case "api":+ return HTTPResponseLogTrigger.HTTP_RESPONSE_LOG_TRIGGER_API;+ default:+ return HTTPResponseLogTrigger.HTTP_RESPONSE_LOG_TRIGGER_UNSPECIFIED;+ }+}++function toHTTPResponseLogTiming(+ timing: TinybirdTiming,+): HTTPResponseLogTiming | undefined {+ if (!timing) return undefined;++ return {+ $typeName: "openstatus.monitor.v1.HTTPResponseLogTiming",+ dns: timing.dns,+ connect: timing.connect,+ tls: timing.tls,+ ttfb: timing.ttfb,+ transfer: timing.transfer,+ };+}++export function toHTTPResponseLogListItem(+ log: TinybirdHTTPResponseLogListItem,+): HTTPResponseLogListItem {+ return {+ $typeName: "openstatus.monitor.v1.HTTPResponseLogListItem",+ id: log.id ?? undefined,+ latency: log.latency,+ statusCode: log.statusCode ?? undefined,+ monitorId: log.monitorId,+ requestStatus: toHTTPResponseLogRequestStatus(log.requestStatus),+ region: stringToRegion(log.region),+ cronTimestamp: BigInt(log.cronTimestamp),+ trigger: toHTTPResponseLogTrigger(log.trigger),+ timestamp: BigInt(log.timestamp),+ timing: toHTTPResponseLogTiming(log.timing),+ };+}++export function toHTTPResponseLogDetail(+ log: TinybirdHTTPResponseLogDetail,+): HTTPResponseLogDetail {+ return {+ $typeName: "openstatus.monitor.v1.HTTPResponseLogDetail",+ log: toHTTPResponseLogListItem(log),+ url: log.url,+ error: log.error,+ message: log.message ?? undefined,+ headers: redactSensitiveHeaders(log.headers),+ assertions: log.assertions ?? undefined,+ };+}diff --git a/apps/server/static/openapi.yaml b/apps/server/static/openapi.yamlindex 198fd6a6e..ebddda9eb 100644--- a/apps/server/static/openapi.yaml+++ b/apps/server/static/openapi.yaml@@ -609,6 +609,32 @@ components:title: DeleteMonitorResponseadditionalProperties: falsedescription: DeleteMonitorResponse is the response after deleting a monitor.+ openstatus.monitor.v1.GetMonitorHTTPResponseLogRequest:+ type: object+ properties:+ id:+ type: string+ title: id+ minLength: 1+ description: Monitor ID to get a response log for (required).+ logId:+ type: string+ title: log_id+ minLength: 1+ description: Response log ID to retrieve (required).+ title: GetMonitorHTTPResponseLogRequest+ additionalProperties: false+ description: GetMonitorHTTPResponseLogRequest is the request to get one response log.+ openstatus.monitor.v1.GetMonitorHTTPResponseLogResponse:+ type: object+ properties:+ log:+ title: log+ description: Response log details.+ $ref: '#/components/schemas/openstatus.monitor.v1.HTTPResponseLogDetail'+ title: GetMonitorHTTPResponseLogResponse+ additionalProperties: false+ description: GetMonitorHTTPResponseLogResponse is the response containing one response log.openstatus.monitor.v1.GetMonitorRequest:type: objectproperties:@@ -911,6 +937,189 @@ components:title: HTTPMonitoradditionalProperties: falsedescription: HTTPMonitor defines the configuration for an HTTP monitor.+ openstatus.monitor.v1.HTTPResponseLogDetail:+ type: object+ properties:+ log:+ title: log+ description: Compact response log fields.+ $ref: '#/components/schemas/openstatus.monitor.v1.HTTPResponseLogListItem'+ url:+ type: string+ title: url+ description: Checked URL.+ error:+ type: boolean+ title: error+ description: Whether the check errored.+ message:+ type:+ - string+ - "null"+ title: message+ description: Error message, when present.+ headers:+ type: object+ title: headers+ additionalProperties:+ type: string+ title: value+ description: Redacted response headers.+ assertions:+ type:+ - string+ - "null"+ title: assertions+ description: Serialized assertions used for the check.+ title: HTTPResponseLogDetail+ additionalProperties: false+ description: HTTPResponseLogDetail contains full response log debugging data.+ openstatus.monitor.v1.HTTPResponseLogDetail.HeadersEntry:+ type: object+ properties:+ key:+ type: string+ title: key+ value:+ type: string+ title: value+ title: HeadersEntry+ additionalProperties: false+ openstatus.monitor.v1.HTTPResponseLogListItem:+ type: object+ properties:+ id:+ type:+ - string+ - "null"+ title: id+ description: Response log ID.+ latency:+ type: integer+ title: latency+ format: int32+ description: Latency in milliseconds.+ statusCode:+ type:+ - integer+ - "null"+ title: status_code+ format: int32+ description: HTTP status code.+ monitorId:+ type: string+ title: monitor_id+ description: Monitor ID.+ requestStatus:+ title: request_status+ description: Request status classification.+ $ref: '#/components/schemas/openstatus.monitor.v1.HTTPResponseLogRequestStatus'+ region:+ title: region+ description: Region where the check ran.+ $ref: '#/components/schemas/openstatus.monitor.v1.Region'+ cronTimestamp:+ type:+ - integer+ - string+ title: cron_timestamp+ format: int64+ description: Cron bucket timestamp in Unix milliseconds.+ trigger:+ title: trigger+ description: Check trigger.+ $ref: '#/components/schemas/openstatus.monitor.v1.HTTPResponseLogTrigger'+ timestamp:+ type:+ - integer+ - string+ title: timestamp+ format: int64+ description: Response timestamp in Unix milliseconds.+ timing:+ oneOf:+ - $ref: '#/components/schemas/openstatus.monitor.v1.HTTPResponseLogTiming'+ - type: "null"+ title: timing+ description: Timing phases.+ title: HTTPResponseLogListItem+ additionalProperties: false+ description: HTTPResponseLogListItem is a compact response log entry.+ openstatus.monitor.v1.HTTPResponseLogPagination:+ type: object+ properties:+ limit:+ type: integer+ title: limit+ format: int32+ description: Requested page size.+ offset:+ type: integer+ title: offset+ format: int32+ description: Requested offset.+ hasMore:+ type: boolean+ title: has_more+ description: Whether more logs are available.+ nextOffset:+ type:+ - integer+ - "null"+ title: next_offset+ format: int32+ description: Next offset if more logs are available.+ title: HTTPResponseLogPagination+ additionalProperties: false+ description: HTTPResponseLogPagination contains offset pagination metadata.+ openstatus.monitor.v1.HTTPResponseLogRequestStatus:+ type: string+ title: HTTPResponseLogRequestStatus+ enum:+ - HTTP_RESPONSE_LOG_REQUEST_STATUS_UNSPECIFIED+ - HTTP_RESPONSE_LOG_REQUEST_STATUS_SUCCESS+ - HTTP_RESPONSE_LOG_REQUEST_STATUS_ERROR+ - HTTP_RESPONSE_LOG_REQUEST_STATUS_DEGRADED+ description: HTTPResponseLogRequestStatus is the result classification for an HTTP response log.+ openstatus.monitor.v1.HTTPResponseLogTiming:+ type: object+ properties:+ dns:+ type: integer+ title: dns+ format: int32+ description: DNS lookup duration.+ connect:+ type: integer+ title: connect+ format: int32+ description: TCP connection duration.+ tls:+ type: integer+ title: tls+ format: int32+ description: TLS handshake duration.+ ttfb:+ type: integer+ title: ttfb+ format: int32+ description: Time to first byte duration.+ transfer:+ type: integer+ title: transfer+ format: int32+ description: Response transfer duration.+ title: HTTPResponseLogTiming+ additionalProperties: false+ description: HTTPResponseLogTiming contains calculated timing phases in milliseconds.+ openstatus.monitor.v1.HTTPResponseLogTrigger:+ type: string+ title: HTTPResponseLogTrigger+ enum:+ - HTTP_RESPONSE_LOG_TRIGGER_UNSPECIFIED+ - HTTP_RESPONSE_LOG_TRIGGER_CRON+ - HTTP_RESPONSE_LOG_TRIGGER_API+ description: HTTPResponseLogTrigger describes what started the monitor check.openstatus.monitor.v1.HeaderAssertion:type: objectproperties:@@ -952,6 +1161,66 @@ components:title: HeadersadditionalProperties: falsedescription: Headers represents a key-value pair for HTTP headers.+ openstatus.monitor.v1.ListMonitorHTTPResponseLogsRequest:+ type: object+ properties:+ id:+ type: string+ title: id+ minLength: 1+ description: Monitor ID to list response logs for (required).+ fromTimestamp:+ type:+ - integer+ - string+ - "null"+ title: from_timestamp+ format: int64+ description: Start of the response log window as Unix milliseconds within the 14-day retention window.+ toTimestamp:+ type:+ - integer+ - string+ - "null"+ title: to_timestamp+ format: int64+ description: End of the response log window as Unix milliseconds within the 14-day retention window.+ limit:+ type:+ - integer+ - "null"+ title: limit+ maximum: 100+ minimum: 1+ format: int32+ description: Maximum number of logs to return (1-100, defaults to 25).+ offset:+ type:+ - integer+ - "null"+ title: offset+ minimum: 0+ format: int32+ description: Number of logs to skip for pagination (defaults to 0).+ title: ListMonitorHTTPResponseLogsRequest+ additionalProperties: false+ description: ListMonitorHTTPResponseLogsRequest is the request to list response logs within the 14-day HTTP response-log window.+ openstatus.monitor.v1.ListMonitorHTTPResponseLogsResponse:+ type: object+ properties:+ logs:+ type: array+ items:+ $ref: '#/components/schemas/openstatus.monitor.v1.HTTPResponseLogListItem'+ title: logs+ description: Response logs.+ pagination:+ title: pagination+ description: Pagination metadata.+ $ref: '#/components/schemas/openstatus.monitor.v1.HTTPResponseLogPagination'+ title: ListMonitorHTTPResponseLogsResponse+ additionalProperties: false+ description: ListMonitorHTTPResponseLogsResponse is the response containing response logs.openstatus.monitor.v1.ListMonitorsRequest:type: objectproperties:@@ -4038,6 +4307,58 @@ paths:application/json:schema:$ref: '#/components/schemas/openstatus.monitor.v1.GetMonitorResponse'+ /rpc/openstatus.monitor.v1.MonitorService/GetMonitorHTTPResponseLog:+ get:+ tags:+ - MonitorService+ summary: GetMonitorHTTPResponseLog+ description: GetMonitorHTTPResponseLog returns one response log for an HTTP monitor.+ operationId: MonitorService_GetMonitorHTTPResponseLog.get+ parameters:+ - name: message+ in: query+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/openstatus.monitor.v1.GetMonitorHTTPResponseLogRequest'+ responses:+ default:+ description: Error+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/connect.error'+ "200":+ description: Success+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/openstatus.monitor.v1.GetMonitorHTTPResponseLogResponse'+ post:+ tags:+ - MonitorService+ summary: GetMonitorHTTPResponseLog+ description: GetMonitorHTTPResponseLog returns one response log for an HTTP monitor.+ operationId: MonitorService_GetMonitorHTTPResponseLog+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/openstatus.monitor.v1.GetMonitorHTTPResponseLogRequest'+ required: true+ responses:+ default:+ description: Error+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/connect.error'+ "200":+ description: Success+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/openstatus.monitor.v1.GetMonitorHTTPResponseLogResponse'/rpc/openstatus.monitor.v1.MonitorService/GetMonitorStatus:get:tags:@@ -4142,6 +4463,58 @@ paths:application/json:schema:$ref: '#/components/schemas/openstatus.monitor.v1.GetMonitorSummaryResponse'+ /rpc/openstatus.monitor.v1.MonitorService/ListMonitorHTTPResponseLogs:+ get:+ tags:+ - MonitorService+ summary: ListMonitorHTTPResponseLogs+ description: ListMonitorHTTPResponseLogs returns paginated response logs for an HTTP monitor from the 14-day HTTP response-log window.+ operationId: MonitorService_ListMonitorHTTPResponseLogs.get+ parameters:+ - name: message+ in: query+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/openstatus.monitor.v1.ListMonitorHTTPResponseLogsRequest'+ responses:+ default:+ description: Error+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/connect.error'+ "200":+ description: Success+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/openstatus.monitor.v1.ListMonitorHTTPResponseLogsResponse'+ post:+ tags:+ - MonitorService+ summary: ListMonitorHTTPResponseLogs+ description: ListMonitorHTTPResponseLogs returns paginated response logs for an HTTP monitor from the 14-day HTTP response-log window.+ operationId: MonitorService_ListMonitorHTTPResponseLogs+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/openstatus.monitor.v1.ListMonitorHTTPResponseLogsRequest'+ required: true+ responses:+ default:+ description: Error+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/connect.error'+ "200":+ description: Success+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/openstatus.monitor.v1.ListMonitorHTTPResponseLogsResponse'/rpc/openstatus.monitor.v1.MonitorService/ListMonitors:get:tags:diff --git a/packages/proto/api/openstatus/monitor/v1/service.proto b/packages/proto/api/openstatus/monitor/v1/service.protoindex 8b93f2354..284664a7c 100644--- a/packages/proto/api/openstatus/monitor/v1/service.proto+++ b/packages/proto/api/openstatus/monitor/v1/service.proto@@ -80,6 +80,16 @@ service MonitorService {rpc GetMonitor(GetMonitorRequest) returns (GetMonitorResponse) {option idempotency_level = NO_SIDE_EFFECTS;}++ // ListMonitorHTTPResponseLogs returns paginated response logs for an HTTP monitor from the 14-day HTTP response-log window.+ rpc ListMonitorHTTPResponseLogs(ListMonitorHTTPResponseLogsRequest) returns (ListMonitorHTTPResponseLogsResponse) {+ option idempotency_level = NO_SIDE_EFFECTS;+ }++ // GetMonitorHTTPResponseLog returns one response log for an HTTP monitor.+ rpc GetMonitorHTTPResponseLog(GetMonitorHTTPResponseLogRequest) returns (GetMonitorHTTPResponseLogResponse) {+ option idempotency_level = NO_SIDE_EFFECTS;+ }}// CreateHTTPMonitorRequest is the request to create a new HTTP monitor.@@ -312,3 +322,134 @@ message GetMonitorResponse {// The monitor configuration (one of HTTP, TCP, or DNS).MonitorConfig monitor = 1;}++// HTTPResponseLogRequestStatus is the result classification for an HTTP response log.+enum HTTPResponseLogRequestStatus {+ // Unspecified request status.+ HTTP_RESPONSE_LOG_REQUEST_STATUS_UNSPECIFIED = 0;+ // The monitor response satisfied its assertions.+ HTTP_RESPONSE_LOG_REQUEST_STATUS_SUCCESS = 1;+ // The monitor response failed its assertions or request.+ HTTP_RESPONSE_LOG_REQUEST_STATUS_ERROR = 2;+ // The monitor response was slower than the degraded threshold.+ HTTP_RESPONSE_LOG_REQUEST_STATUS_DEGRADED = 3;+}++// HTTPResponseLogTrigger describes what started the monitor check.+enum HTTPResponseLogTrigger {+ // Unspecified trigger.+ HTTP_RESPONSE_LOG_TRIGGER_UNSPECIFIED = 0;+ // Scheduled monitor run.+ HTTP_RESPONSE_LOG_TRIGGER_CRON = 1;+ // API-triggered monitor run.+ HTTP_RESPONSE_LOG_TRIGGER_API = 2;+}++// HTTPResponseLogTiming contains calculated timing phases in milliseconds.+message HTTPResponseLogTiming {+ // DNS lookup duration.+ int32 dns = 1;+ // TCP connection duration.+ int32 connect = 2;+ // TLS handshake duration.+ int32 tls = 3;+ // Time to first byte duration.+ int32 ttfb = 4;+ // Response transfer duration.+ int32 transfer = 5;+}++// HTTPResponseLogListItem is a compact response log entry.+message HTTPResponseLogListItem {+ // Response log ID.+ optional string id = 1;+ // Latency in milliseconds.+ int32 latency = 2;+ // HTTP status code.+ optional int32 status_code = 3;+ // Monitor ID.+ string monitor_id = 4;+ // Request status classification.+ HTTPResponseLogRequestStatus request_status = 5;+ // Region where the check ran.+ Region region = 6;+ // Cron bucket timestamp in Unix milliseconds.+ int64 cron_timestamp = 7;+ // Check trigger.+ HTTPResponseLogTrigger trigger = 8;+ // Response timestamp in Unix milliseconds.+ int64 timestamp = 9;+ // Timing phases.+ optional HTTPResponseLogTiming timing = 10;+}++// HTTPResponseLogDetail contains full response log debugging data.+message HTTPResponseLogDetail {+ // Compact response log fields.+ HTTPResponseLogListItem log = 1;+ // Checked URL.+ string url = 2;+ // Whether the check errored.+ bool error = 3;+ // Error message, when present.+ optional string message = 4;+ // Redacted response headers.+ map<string, string> headers = 5;+ // Serialized assertions used for the check.+ optional string assertions = 6;+}++// ListMonitorHTTPResponseLogsRequest is the request to list response logs within the 14-day HTTP response-log window.+message ListMonitorHTTPResponseLogsRequest {+ // Monitor ID to list response logs for (required).+ string id = 1 [(buf.validate.field).string.min_len = 1];++ // Start of the response log window as Unix milliseconds within the 14-day retention window.+ optional int64 from_timestamp = 2;++ // End of the response log window as Unix milliseconds within the 14-day retention window.+ optional int64 to_timestamp = 3;++ // Maximum number of logs to return (1-100, defaults to 25).+ optional int32 limit = 4 [(buf.validate.field).int32 = {+ gte: 1+ lte: 100+ }];++ // Number of logs to skip for pagination (defaults to 0).+ optional int32 offset = 5 [(buf.validate.field).int32.gte = 0];+}++// HTTPResponseLogPagination contains offset pagination metadata.+message HTTPResponseLogPagination {+ // Requested page size.+ int32 limit = 1;+ // Requested offset.+ int32 offset = 2;+ // Whether more logs are available.+ bool has_more = 3;+ // Next offset if more logs are available.+ optional int32 next_offset = 4;+}++// ListMonitorHTTPResponseLogsResponse is the response containing response logs.+message ListMonitorHTTPResponseLogsResponse {+ // Response logs.+ repeated HTTPResponseLogListItem logs = 1;+ // Pagination metadata.+ HTTPResponseLogPagination pagination = 2;+}++// GetMonitorHTTPResponseLogRequest is the request to get one response log.+message GetMonitorHTTPResponseLogRequest {+ // Monitor ID to get a response log for (required).+ string id = 1 [(buf.validate.field).string.min_len = 1];+ // Response log ID to retrieve (required).+ string log_id = 2 [(buf.validate.field).string.min_len = 1];+}++// GetMonitorHTTPResponseLogResponse is the response containing one response log.+message GetMonitorHTTPResponseLogResponse {+ // Response log details.+ HTTPResponseLogDetail log = 1;+}diff --git a/packages/proto/gen/openapi.yaml b/packages/proto/gen/openapi.yamlindex 198fd6a6e..ebddda9eb 100644--- a/packages/proto/gen/openapi.yaml+++ b/packages/proto/gen/openapi.yaml@@ -609,6 +609,32 @@ components:title: DeleteMonitorResponseadditionalProperties: falsedescription: DeleteMonitorResponse is the response after deleting a monitor.+ openstatus.monitor.v1.GetMonitorHTTPResponseLogRequest:+ type: object+ properties:+ id:+ type: string+ title: id+ minLength: 1+ description: Monitor ID to get a response log for (required).+ logId:+ type: string+ title: log_id+ minLength: 1+ description: Response log ID to retrieve (required).+ title: GetMonitorHTTPResponseLogRequest+ additionalProperties: false+ description: GetMonitorHTTPResponseLogRequest is the request to get one response log.+ openstatus.monitor.v1.GetMonitorHTTPResponseLogResponse:+ type: object+ properties:+ log:+ title: log+ description: Response log details.+ $ref: '#/components/schemas/openstatus.monitor.v1.HTTPResponseLogDetail'+ title: GetMonitorHTTPResponseLogResponse+ additionalProperties: false+ description: GetMonitorHTTPResponseLogResponse is the response containing one response log.openstatus.monitor.v1.GetMonitorRequest:type: objectproperties:@@ -911,6 +937,189 @@ components:title: HTTPMonitoradditionalProperties: falsedescription: HTTPMonitor defines the configuration for an HTTP monitor.+ openstatus.monitor.v1.HTTPResponseLogDetail:+ type: object+ properties:+ log:+ title: log+ description: Compact response log fields.+ $ref: '#/components/schemas/openstatus.monitor.v1.HTTPResponseLogListItem'+ url:+ type: string+ title: url+ description: Checked URL.+ error:+ type: boolean+ title: error+ description: Whether the check errored.+ message:+ type:+ - string+ - "null"+ title: message+ description: Error message, when present.+ headers:+ type: object+ title: headers+ additionalProperties:+ type: string+ title: value+ description: Redacted response headers.+ assertions:+ type:+ - string+ - "null"+ title: assertions+ description: Serialized assertions used for the check.+ title: HTTPResponseLogDetail+ additionalProperties: false+ description: HTTPResponseLogDetail contains full response log debugging data.+ openstatus.monitor.v1.HTTPResponseLogDetail.HeadersEntry:+ type: object+ properties:+ key:+ type: string+ title: key+ value:+ type: string+ title: value+ title: HeadersEntry+ additionalProperties: false+ openstatus.monitor.v1.HTTPResponseLogListItem:+ type: object+ properties:+ id:+ type:+ - string+ - "null"+ title: id+ description: Response log ID.+ latency:+ type: integer+ title: latency+ format: int32+ description: Latency in milliseconds.+ statusCode:+ type:+ - integer+ - "null"+ title: status_code+ format: int32+ description: HTTP status code.+ monitorId:+ type: string+ title: monitor_id+ description: Monitor ID.+ requestStatus:+ title: request_status+ description: Request status classification.+ $ref: '#/components/schemas/openstatus.monitor.v1.HTTPResponseLogRequestStatus'+ region:+ title: region+ description: Region where the check ran.+ $ref: '#/components/schemas/openstatus.monitor.v1.Region'+ cronTimestamp:+ type:+ - integer+ - string+ title: cron_timestamp+ format: int64+ description: Cron bucket timestamp in Unix milliseconds.+ trigger:+ title: trigger+ description: Check trigger.+ $ref: '#/components/schemas/openstatus.monitor.v1.HTTPResponseLogTrigger'+ timestamp:+ type:+ - integer+ - string+ title: timestamp+ format: int64+ description: Response timestamp in Unix milliseconds.+ timing:+ oneOf:+ - $ref: '#/components/schemas/openstatus.monitor.v1.HTTPResponseLogTiming'+ - type: "null"+ title: timing+ description: Timing phases.+ title: HTTPResponseLogListItem+ additionalProperties: false+ description: HTTPResponseLogListItem is a compact response log entry.+ openstatus.monitor.v1.HTTPResponseLogPagination:+ type: object+ properties:+ limit:+ type: integer+ title: limit+ format: int32+ description: Requested page size.+ offset:+ type: integer+ title: offset+ format: int32+ description: Requested offset.+ hasMore:+ type: boolean+ title: has_more+ description: Whether more logs are available.+ nextOffset:+ type:+ - integer+ - "null"+ title: next_offset+ format: int32+ description: Next offset if more logs are available.+ title: HTTPResponseLogPagination+ additionalProperties: false+ description: HTTPResponseLogPagination contains offset pagination metadata.+ openstatus.monitor.v1.HTTPResponseLogRequestStatus:+ type: string+ title: HTTPResponseLogRequestStatus+ enum:+ - HTTP_RESPONSE_LOG_REQUEST_STATUS_UNSPECIFIED+ - HTTP_RESPONSE_LOG_REQUEST_STATUS_SUCCESS+ - HTTP_RESPONSE_LOG_REQUEST_STATUS_ERROR+ - HTTP_RESPONSE_LOG_REQUEST_STATUS_DEGRADED+ description: HTTPResponseLogRequestStatus is the result classification for an HTTP response log.+ openstatus.monitor.v1.HTTPResponseLogTiming:+ type: object+ properties:+ dns:+ type: integer+ title: dns+ format: int32+ description: DNS lookup duration.+ connect:+ type: integer+ title: connect+ format: int32+ description: TCP connection duration.+ tls:+ type: integer+ title: tls+ format: int32+ description: TLS handshake duration.+ ttfb:+ type: integer+ title: ttfb+ format: int32+ description: Time to first byte duration.+ transfer:+ type: integer+ title: transfer+ format: int32+ description: Response transfer duration.+ title: HTTPResponseLogTiming+ additionalProperties: false+ description: HTTPResponseLogTiming contains calculated timing phases in milliseconds.+ openstatus.monitor.v1.HTTPResponseLogTrigger:+ type: string+ title: HTTPResponseLogTrigger+ enum:+ - HTTP_RESPONSE_LOG_TRIGGER_UNSPECIFIED+ - HTTP_RESPONSE_LOG_TRIGGER_CRON+ - HTTP_RESPONSE_LOG_TRIGGER_API+ description: HTTPResponseLogTrigger describes what started the monitor check.openstatus.monitor.v1.HeaderAssertion:type: objectproperties:@@ -952,6 +1161,66 @@ components:title: HeadersadditionalProperties: falsedescription: Headers represents a key-value pair for HTTP headers.+ openstatus.monitor.v1.ListMonitorHTTPResponseLogsRequest:+ type: object+ properties:+ id:+ type: string+ title: id+ minLength: 1+ description: Monitor ID to list response logs for (required).+ fromTimestamp:+ type:+ - integer+ - string+ - "null"+ title: from_timestamp+ format: int64+ description: Start of the response log window as Unix milliseconds within the 14-day retention window.+ toTimestamp:+ type:+ - integer+ - string+ - "null"+ title: to_timestamp+ format: int64+ description: End of the response log window as Unix milliseconds within the 14-day retention window.+ limit:+ type:+ - integer+ - "null"+ title: limit+ maximum: 100+ minimum: 1+ format: int32+ description: Maximum number of logs to return (1-100, defaults to 25).+ offset:+ type:+ - integer+ - "null"+ title: offset+ minimum: 0+ format: int32+ description: Number of logs to skip for pagination (defaults to 0).+ title: ListMonitorHTTPResponseLogsRequest+ additionalProperties: false+ description: ListMonitorHTTPResponseLogsRequest is the request to list response logs within the 14-day HTTP response-log window.+ openstatus.monitor.v1.ListMonitorHTTPResponseLogsResponse:+ type: object+ properties:+ logs:+ type: array+ items:+ $ref: '#/components/schemas/openstatus.monitor.v1.HTTPResponseLogListItem'+ title: logs+ description: Response logs.+ pagination:+ title: pagination+ description: Pagination metadata.+ $ref: '#/components/schemas/openstatus.monitor.v1.HTTPResponseLogPagination'+ title: ListMonitorHTTPResponseLogsResponse+ additionalProperties: false+ description: ListMonitorHTTPResponseLogsResponse is the response containing response logs.openstatus.monitor.v1.ListMonitorsRequest:type: objectproperties:@@ -4038,6 +4307,58 @@ paths:application/json:schema:$ref: '#/components/schemas/openstatus.monitor.v1.GetMonitorResponse'+ /rpc/openstatus.monitor.v1.MonitorService/GetMonitorHTTPResponseLog:+ get:+ tags:+ - MonitorService+ summary: GetMonitorHTTPResponseLog+ description: GetMonitorHTTPResponseLog returns one response log for an HTTP monitor.+ operationId: MonitorService_GetMonitorHTTPResponseLog.get+ parameters:+ - name: message+ in: query+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/openstatus.monitor.v1.GetMonitorHTTPResponseLogRequest'+ responses:+ default:+ description: Error+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/connect.error'+ "200":+ description: Success+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/openstatus.monitor.v1.GetMonitorHTTPResponseLogResponse'+ post:+ tags:+ - MonitorService+ summary: GetMonitorHTTPResponseLog+ description: GetMonitorHTTPResponseLog returns one response log for an HTTP monitor.+ operationId: MonitorService_GetMonitorHTTPResponseLog+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/openstatus.monitor.v1.GetMonitorHTTPResponseLogRequest'+ required: true+ responses:+ default:+ description: Error+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/connect.error'+ "200":+ description: Success+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/openstatus.monitor.v1.GetMonitorHTTPResponseLogResponse'/rpc/openstatus.monitor.v1.MonitorService/GetMonitorStatus:get:tags:@@ -4142,6 +4463,58 @@ paths:application/json:schema:$ref: '#/components/schemas/openstatus.monitor.v1.GetMonitorSummaryResponse'+ /rpc/openstatus.monitor.v1.MonitorService/ListMonitorHTTPResponseLogs:+ get:+ tags:+ - MonitorService+ summary: ListMonitorHTTPResponseLogs+ description: ListMonitorHTTPResponseLogs returns paginated response logs for an HTTP monitor from the 14-day HTTP response-log window.+ operationId: MonitorService_ListMonitorHTTPResponseLogs.get+ parameters:+ - name: message+ in: query+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/openstatus.monitor.v1.ListMonitorHTTPResponseLogsRequest'+ responses:+ default:+ description: Error+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/connect.error'+ "200":+ description: Success+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/openstatus.monitor.v1.ListMonitorHTTPResponseLogsResponse'+ post:+ tags:+ - MonitorService+ summary: ListMonitorHTTPResponseLogs+ description: ListMonitorHTTPResponseLogs returns paginated response logs for an HTTP monitor from the 14-day HTTP response-log window.+ operationId: MonitorService_ListMonitorHTTPResponseLogs+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/openstatus.monitor.v1.ListMonitorHTTPResponseLogsRequest'+ required: true+ responses:+ default:+ description: Error+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/connect.error'+ "200":+ description: Success+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/openstatus.monitor.v1.ListMonitorHTTPResponseLogsResponse'/rpc/openstatus.monitor.v1.MonitorService/ListMonitors:get:tags:diff --git a/packages/proto/gen/ts/openstatus/monitor/v1/service_pb.ts b/packages/proto/gen/ts/openstatus/monitor/v1/service_pb.tsindex abc876b55..861d0d890 100644--- a/packages/proto/gen/ts/openstatus/monitor/v1/service_pb.ts+++ b/packages/proto/gen/ts/openstatus/monitor/v1/service_pb.ts@@ -20,7 +20,7 @@ import type { Message } from "@bufbuild/protobuf";* Describes the file openstatus/monitor/v1/service.proto.*/export const file_openstatus_monitor_v1_service: GenFile = /*@__PURE__*/- fileDesc("CiNvcGVuc3RhdHVzL21vbml0b3IvdjEvc2VydmljZS5wcm90bxIVb3BlbnN0YXR1cy5tb25pdG9yLnYxIlcKGENyZWF0ZUhUVFBNb25pdG9yUmVxdWVzdBI7Cgdtb25pdG9yGAEgASgLMiIub3BlbnN0YXR1cy5tb25pdG9yLnYxLkhUVFBNb25pdG9yQga6SAPIAQEiUAoZQ3JlYXRlSFRUUE1vbml0b3JSZXNwb25zZRIzCgdtb25pdG9yGAEgASgLMiIub3BlbnN0YXR1cy5tb25pdG9yLnYxLkhUVFBNb25pdG9yIlUKF0NyZWF0ZVRDUE1vbml0b3JSZXF1ZXN0EjoKB21vbml0b3IYASABKAsyIS5vcGVuc3RhdHVzLm1vbml0b3IudjEuVENQTW9uaXRvckIGukgDyAEBIk4KGENyZWF0ZVRDUE1vbml0b3JSZXNwb25zZRIyCgdtb25pdG9yGAEgASgLMiEub3BlbnN0YXR1cy5tb25pdG9yLnYxLlRDUE1vbml0b3IiVQoXQ3JlYXRlRE5TTW9uaXRvclJlcXVlc3QSOgoHbW9uaXRvchgBIAEoCzIhLm9wZW5zdGF0dXMubW9uaXRvci52MS5ETlNNb25pdG9yQga6SAPIAQEiTgoYQ3JlYXRlRE5TTW9uaXRvclJlc3BvbnNlEjIKB21vbml0b3IYASABKAsyIS5vcGVuc3RhdHVzLm1vbml0b3IudjEuRE5TTW9uaXRvciJ1ChhVcGRhdGVIVFRQTW9uaXRvclJlcXVlc3QSEwoCaWQYASABKAlCB7pIBHICEAESOAoHbW9uaXRvchgCIAEoCzIiLm9wZW5zdGF0dXMubW9uaXRvci52MS5IVFRQTW9uaXRvckgAiAEBQgoKCF9tb25pdG9yIlAKGVVwZGF0ZUhUVFBNb25pdG9yUmVzcG9uc2USM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CBwOTUsIHA5OSksIHJlcXVlc3QgY291bnRzIGJ5IHN0YXR1cyAoc3VjY2Vzc2Z1bCwgZGVncmFkZWQsIGZhaWxlZCksIGFuZCB0aGUgdGltZXN0YW1wIG9mIHRoZSBsYXN0IGNoZWNrLiBNZXRyaWNzIGNhbiBiZSBzY29wZWQgdG8gYSB0aW1lIHJhbmdlICgxIGRheSwgNyBkYXlzLCBvciAxNCBkYXlzKSBhbmQgZmlsdGVyZWQgYnkgc3BlY2lmaWMgcmVnaW9ucy4SZgoKR2V0TW9uaXRvchIoLm9wZW5zdGF0dXMubW9uaXRvci52MS5HZXRNb25pdG9yUmVxdWVzdBopLm9wZW5zdGF0dXMubW9uaXRvci52MS5HZXRNb25pdG9yUmVzcG9uc2UiA5ACAUJTWlFnaXRodWIuY29tL29wZW5zdGF0dXNocS9vcGVuc3RhdHVzL3BhY2thZ2VzL3Byb3RvL29wZW5zdGF0dXMvbW9uaXRvci92MTttb25pdG9ydjFiBnByb3RvMw", [file_buf_validate_validate, file_gnostic_openapi_v3_annotations, file_openstatus_monitor_v1_dns_monitor, file_openstatus_monitor_v1_http_monitor, file_openstatus_monitor_v1_monitor, file_openstatus_monitor_v1_tcp_monitor]);+ fileDesc("CiNvcGVuc3RhdHVzL21vbml0b3IvdjEvc2VydmljZS5wcm90bxIVb3BlbnN0YXR1cy5tb25pdG9yLnYxIlcKGENyZWF0ZUhUVFBNb25pdG9yUmVxdWVzdBI7Cgdtb25pdG9yGAEgASgLMiIub3BlbnN0YXR1cy5tb25pdG9yLnYxLkhUVFBNb25pdG9yQga6SAPIAQEiUAoZQ3JlYXRlSFRUUE1vbml0b3JSZXNwb25zZRIzCgdtb25pdG9yGAEgASgLMiIub3BlbnN0YXR1cy5tb25pdG9yLnYxLkhUVFBNb25pdG9yIlUKF0NyZWF0ZVRDUE1vbml0b3JSZXF1ZXN0EjoKB21vbml0b3IYASABKAsyIS5vcGVuc3RhdHVzLm1vbml0b3IudjEuVENQTW9uaXRvckIGukg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mljcyBjYW4gYmUgc2NvcGVkIHRvIGEgdGltZSByYW5nZSAoMSBkYXksIDcgZGF5cywgb3IgMTQgZGF5cykgYW5kIGZpbHRlcmVkIGJ5IHNwZWNpZmljIHJlZ2lvbnMuEmYKCkdldE1vbml0b3ISKC5vcGVuc3RhdHVzLm1vbml0b3IudjEuR2V0TW9uaXRvclJlcXVlc3QaKS5vcGVuc3RhdHVzLm1vbml0b3IudjEuR2V0TW9uaXRvclJlc3BvbnNlIgOQAgESmQEKG0xpc3RNb25pdG9ySFRUUFJlc3BvbnNlTG9ncxI5Lm9wZW5zdGF0dXMubW9uaXRvci52MS5MaXN0TW9uaXRvckhUVFBSZXNwb25zZUxvZ3NSZXF1ZXN0Gjoub3BlbnN0YXR1cy5tb25pdG9yLnYxLkxpc3RNb25pdG9ySFRUUFJlc3BvbnNlTG9nc1Jlc3BvbnNlIgOQAgESkwEKGUdldE1vbml0b3JIVFRQUmVzcG9uc2VMb2cSNy5vcGVuc3RhdHVzLm1vbml0b3IudjEuR2V0TW9uaXRvckhUVFBSZXNwb25zZUxvZ1JlcXVlc3QaOC5vcGVuc3RhdHVzLm1vbml0b3IudjEuR2V0TW9uaXRvckhUVFBSZXNwb25zZUxvZ1Jlc3BvbnNlIgOQAgFCU1pRZ2l0aHViLmNvbS9vcGVuc3RhdHVzaHEvb3BlbnN0YXR1cy9wYWNrYWdlcy9wcm90by9vcGVuc3RhdHVzL21vbml0b3IvdjE7bW9uaXRvcnYxYgZwcm90bzM", [file_buf_validate_validate, file_gnostic_openapi_v3_annotations, file_openstatus_monitor_v1_dns_monitor, file_openstatus_monitor_v1_http_monitor, file_openstatus_monitor_v1_monitor, file_openstatus_monitor_v1_tcp_monitor]);/*** CreateHTTPMonitorRequest is the request to create a new HTTP monitor.@@ -744,6 +744,363 @@ export type GetMonitorResponse = Message<"openstatus.monitor.v1.GetMonitorResponexport const GetMonitorResponseSchema: GenMessage<GetMonitorResponse> = /*@__PURE__*/messageDesc(file_openstatus_monitor_v1_service, 25);+/**+ * HTTPResponseLogTiming contains calculated timing phases in milliseconds.+ *+ * @generated from message openstatus.monitor.v1.HTTPResponseLogTiming+ */+export type HTTPResponseLogTiming = Message<"openstatus.monitor.v1.HTTPResponseLogTiming"> & {+ /**+ * DNS lookup duration.+ *+ * @generated from field: int32 dns = 1;+ */+ dns: number;++ /**+ * TCP connection duration.+ *+ * @generated from field: int32 connect = 2;+ */+ connect: number;++ /**+ * TLS handshake duration.+ *+ * @generated from field: int32 tls = 3;+ */+ tls: number;++ /**+ * Time to first byte duration.+ *+ * @generated from field: int32 ttfb = 4;+ */+ ttfb: number;++ /**+ * Response transfer duration.+ *+ * @generated from field: int32 transfer = 5;+ */+ transfer: number;+};++/**+ * Describes the message openstatus.monitor.v1.HTTPResponseLogTiming.+ * Use `create(HTTPResponseLogTimingSchema)` to create a new message.+ */+export const HTTPResponseLogTimingSchema: GenMessage<HTTPResponseLogTiming> = /*@__PURE__*/+ messageDesc(file_openstatus_monitor_v1_service, 26);++/**+ * HTTPResponseLogListItem is a compact response log entry.+ *+ * @generated from message openstatus.monitor.v1.HTTPResponseLogListItem+ */+export type HTTPResponseLogListItem = Message<"openstatus.monitor.v1.HTTPResponseLogListItem"> & {+ /**+ * Response log ID.+ *+ * @generated from field: optional string id = 1;+ */+ id?: string;++ /**+ * Latency in milliseconds.+ *+ * @generated from field: int32 latency = 2;+ */+ latency: number;++ /**+ * HTTP status code.+ *+ * @generated from field: optional int32 status_code = 3;+ */+ statusCode?: number;++ /**+ * Monitor ID.+ *+ * @generated from field: string monitor_id = 4;+ */+ monitorId: string;++ /**+ * Request status classification.+ *+ * @generated from field: openstatus.monitor.v1.HTTPResponseLogRequestStatus request_status = 5;+ */+ requestStatus: HTTPResponseLogRequestStatus;++ /**+ * Region where the check ran.+ *+ * @generated from field: openstatus.monitor.v1.Region region = 6;+ */+ region: Region;++ /**+ * Cron bucket timestamp in Unix milliseconds.+ *+ * @generated from field: int64 cron_timestamp = 7;+ */+ cronTimestamp: bigint;++ /**+ * Check trigger.+ *+ * @generated from field: openstatus.monitor.v1.HTTPResponseLogTrigger trigger = 8;+ */+ trigger: HTTPResponseLogTrigger;++ /**+ * Response timestamp in Unix milliseconds.+ *+ * @generated from field: int64 timestamp = 9;+ */+ timestamp: bigint;++ /**+ * Timing phases.+ *+ * @generated from field: optional openstatus.monitor.v1.HTTPResponseLogTiming timing = 10;+ */+ timing?: HTTPResponseLogTiming;+};++/**+ * Describes the message openstatus.monitor.v1.HTTPResponseLogListItem.+ * Use `create(HTTPResponseLogListItemSchema)` to create a new message.+ */+export const HTTPResponseLogListItemSchema: GenMessage<HTTPResponseLogListItem> = /*@__PURE__*/+ messageDesc(file_openstatus_monitor_v1_service, 27);++/**+ * HTTPResponseLogDetail contains full response log debugging data.+ *+ * @generated from message openstatus.monitor.v1.HTTPResponseLogDetail+ */+export type HTTPResponseLogDetail = Message<"openstatus.monitor.v1.HTTPResponseLogDetail"> & {+ /**+ * Compact response log fields.+ *+ * @generated from field: openstatus.monitor.v1.HTTPResponseLogListItem log = 1;+ */+ log?: HTTPResponseLogListItem;++ /**+ * Checked URL.+ *+ * @generated from field: string url = 2;+ */+ url: string;++ /**+ * Whether the check errored.+ *+ * @generated from field: bool error = 3;+ */+ error: boolean;++ /**+ * Error message, when present.+ *+ * @generated from field: optional string message = 4;+ */+ message?: string;++ /**+ * Redacted response headers.+ *+ * @generated from field: map<string, string> headers = 5;+ */+ headers: { [key: string]: string };++ /**+ * Serialized assertions used for the check.+ *+ * @generated from field: optional string assertions = 6;+ */+ assertions?: string;+};++/**+ * Describes the message openstatus.monitor.v1.HTTPResponseLogDetail.+ * Use `create(HTTPResponseLogDetailSchema)` to create a new message.+ */+export const HTTPResponseLogDetailSchema: GenMessage<HTTPResponseLogDetail> = /*@__PURE__*/+ messageDesc(file_openstatus_monitor_v1_service, 28);++/**+ * ListMonitorHTTPResponseLogsRequest is the request to list response logs within the 14-day HTTP response-log window.+ *+ * @generated from message openstatus.monitor.v1.ListMonitorHTTPResponseLogsRequest+ */+export type ListMonitorHTTPResponseLogsRequest = Message<"openstatus.monitor.v1.ListMonitorHTTPResponseLogsRequest"> & {+ /**+ * Monitor ID to list response logs for (required).+ *+ * @generated from field: string id = 1;+ */+ id: string;++ /**+ * Start of the response log window as Unix milliseconds within the 14-day retention window.+ *+ * @generated from field: optional int64 from_timestamp = 2;+ */+ fromTimestamp?: bigint;++ /**+ * End of the response log window as Unix milliseconds within the 14-day retention window.+ *+ * @generated from field: optional int64 to_timestamp = 3;+ */+ toTimestamp?: bigint;++ /**+ * Maximum number of logs to return (1-100, defaults to 25).+ *+ * @generated from field: optional int32 limit = 4;+ */+ limit?: number;++ /**+ * Number of logs to skip for pagination (defaults to 0).+ *+ * @generated from field: optional int32 offset = 5;+ */+ offset?: number;+};++/**+ * Describes the message openstatus.monitor.v1.ListMonitorHTTPResponseLogsRequest.+ * Use `create(ListMonitorHTTPResponseLogsRequestSchema)` to create a new message.+ */+export const ListMonitorHTTPResponseLogsRequestSchema: GenMessage<ListMonitorHTTPResponseLogsRequest> = /*@__PURE__*/+ messageDesc(file_openstatus_monitor_v1_service, 29);++/**+ * HTTPResponseLogPagination contains offset pagination metadata.+ *+ * @generated from message openstatus.monitor.v1.HTTPResponseLogPagination+ */+export type HTTPResponseLogPagination = Message<"openstatus.monitor.v1.HTTPResponseLogPagination"> & {+ /**+ * Requested page size.+ *+ * @generated from field: int32 limit = 1;+ */+ limit: number;++ /**+ * Requested offset.+ *+ * @generated from field: int32 offset = 2;+ */+ offset: number;++ /**+ * Whether more logs are available.+ *+ * @generated from field: bool has_more = 3;+ */+ hasMore: boolean;++ /**+ * Next offset if more logs are available.+ *+ * @generated from field: optional int32 next_offset = 4;+ */+ nextOffset?: number;+};++/**+ * Describes the message openstatus.monitor.v1.HTTPResponseLogPagination.+ * Use `create(HTTPResponseLogPaginationSchema)` to create a new message.+ */+export const HTTPResponseLogPaginationSchema: GenMessage<HTTPResponseLogPagination> = /*@__PURE__*/+ messageDesc(file_openstatus_monitor_v1_service, 30);++/**+ * ListMonitorHTTPResponseLogsResponse is the response containing response logs.+ *+ * @generated from message openstatus.monitor.v1.ListMonitorHTTPResponseLogsResponse+ */+export type ListMonitorHTTPResponseLogsResponse = Message<"openstatus.monitor.v1.ListMonitorHTTPResponseLogsResponse"> & {+ /**+ * Response logs.+ *+ * @generated from field: repeated openstatus.monitor.v1.HTTPResponseLogListItem logs = 1;+ */+ logs: HTTPResponseLogListItem[];++ /**+ * Pagination metadata.+ *+ * @generated from field: openstatus.monitor.v1.HTTPResponseLogPagination pagination = 2;+ */+ pagination?: HTTPResponseLogPagination;+};++/**+ * Describes the message openstatus.monitor.v1.ListMonitorHTTPResponseLogsResponse.+ * Use `create(ListMonitorHTTPResponseLogsResponseSchema)` to create a new message.+ */+export const ListMonitorHTTPResponseLogsResponseSchema: GenMessage<ListMonitorHTTPResponseLogsResponse> = /*@__PURE__*/+ messageDesc(file_openstatus_monitor_v1_service, 31);++/**+ * GetMonitorHTTPResponseLogRequest is the request to get one response log.+ *+ * @generated from message openstatus.monitor.v1.GetMonitorHTTPResponseLogRequest+ */+export type GetMonitorHTTPResponseLogRequest = Message<"openstatus.monitor.v1.GetMonitorHTTPResponseLogRequest"> & {+ /**+ * Monitor ID to get a response log for (required).+ *+ * @generated from field: string id = 1;+ */+ id: string;++ /**+ * Response log ID to retrieve (required).+ *+ * @generated from field: string log_id = 2;+ */+ logId: string;+};++/**+ * Describes the message openstatus.monitor.v1.GetMonitorHTTPResponseLogRequest.+ * Use `create(GetMonitorHTTPResponseLogRequestSchema)` to create a new message.+ */+export const GetMonitorHTTPResponseLogRequestSchema: GenMessage<GetMonitorHTTPResponseLogRequest> = /*@__PURE__*/+ messageDesc(file_openstatus_monitor_v1_service, 32);++/**+ * GetMonitorHTTPResponseLogResponse is the response containing one response log.+ *+ * @generated from message openstatus.monitor.v1.GetMonitorHTTPResponseLogResponse+ */+export type GetMonitorHTTPResponseLogResponse = Message<"openstatus.monitor.v1.GetMonitorHTTPResponseLogResponse"> & {+ /**+ * Response log details.+ *+ * @generated from field: openstatus.monitor.v1.HTTPResponseLogDetail log = 1;+ */+ log?: HTTPResponseLogDetail;+};++/**+ * Describes the message openstatus.monitor.v1.GetMonitorHTTPResponseLogResponse.+ * Use `create(GetMonitorHTTPResponseLogResponseSchema)` to create a new message.+ */+export const GetMonitorHTTPResponseLogResponseSchema: GenMessage<GetMonitorHTTPResponseLogResponse> = /*@__PURE__*/+ messageDesc(file_openstatus_monitor_v1_service, 33);+/*** TimeRange represents the time period for metrics aggregation.*@@ -785,6 +1142,81 @@ export enum TimeRange {export const TimeRangeSchema: GenEnum<TimeRange> = /*@__PURE__*/enumDesc(file_openstatus_monitor_v1_service, 0);+/**+ * HTTPResponseLogRequestStatus is the result classification for an HTTP response log.+ *+ * @generated from enum openstatus.monitor.v1.HTTPResponseLogRequestStatus+ */+export enum HTTPResponseLogRequestStatus {+ /**+ * Unspecified request status.+ *+ * @generated from enum value: HTTP_RESPONSE_LOG_REQUEST_STATUS_UNSPECIFIED = 0;+ */+ HTTP_RESPONSE_LOG_REQUEST_STATUS_UNSPECIFIED = 0,++ /**+ * The monitor response satisfied its assertions.+ *+ * @generated from enum value: HTTP_RESPONSE_LOG_REQUEST_STATUS_SUCCESS = 1;+ */+ HTTP_RESPONSE_LOG_REQUEST_STATUS_SUCCESS = 1,++ /**+ * The monitor response failed its assertions or request.+ *+ * @generated from enum value: HTTP_RESPONSE_LOG_REQUEST_STATUS_ERROR = 2;+ */+ HTTP_RESPONSE_LOG_REQUEST_STATUS_ERROR = 2,++ /**+ * The monitor response was slower than the degraded threshold.+ *+ * @generated from enum value: HTTP_RESPONSE_LOG_REQUEST_STATUS_DEGRADED = 3;+ */+ HTTP_RESPONSE_LOG_REQUEST_STATUS_DEGRADED = 3,+}++/**+ * Describes the enum openstatus.monitor.v1.HTTPResponseLogRequestStatus.+ */+export const HTTPResponseLogRequestStatusSchema: GenEnum<HTTPResponseLogRequestStatus> = /*@__PURE__*/+ enumDesc(file_openstatus_monitor_v1_service, 1);++/**+ * HTTPResponseLogTrigger describes what started the monitor check.+ *+ * @generated from enum openstatus.monitor.v1.HTTPResponseLogTrigger+ */+export enum HTTPResponseLogTrigger {+ /**+ * Unspecified trigger.+ *+ * @generated from enum value: HTTP_RESPONSE_LOG_TRIGGER_UNSPECIFIED = 0;+ */+ HTTP_RESPONSE_LOG_TRIGGER_UNSPECIFIED = 0,++ /**+ * Scheduled monitor run.+ *+ * @generated from enum value: HTTP_RESPONSE_LOG_TRIGGER_CRON = 1;+ */+ HTTP_RESPONSE_LOG_TRIGGER_CRON = 1,++ /**+ * API-triggered monitor run.+ *+ * @generated from enum value: HTTP_RESPONSE_LOG_TRIGGER_API = 2;+ */+ HTTP_RESPONSE_LOG_TRIGGER_API = 2,+}++/**+ * Describes the enum openstatus.monitor.v1.HTTPResponseLogTrigger.+ */+export const HTTPResponseLogTriggerSchema: GenEnum<HTTPResponseLogTrigger> = /*@__PURE__*/+ enumDesc(file_openstatus_monitor_v1_service, 2);+/*** MonitorService provides CRUD and operational commands for monitors.*@@ -912,6 +1344,26 @@ export const MonitorService: GenService<{input: typeof GetMonitorRequestSchema;output: typeof GetMonitorResponseSchema;},+ /**+ * ListMonitorHTTPResponseLogs returns paginated response logs for an HTTP monitor from the 14-day HTTP response-log window.+ *+ * @generated from rpc openstatus.monitor.v1.MonitorService.ListMonitorHTTPResponseLogs+ */+ listMonitorHTTPResponseLogs: {+ methodKind: "unary";+ input: typeof ListMonitorHTTPResponseLogsRequestSchema;+ output: typeof ListMonitorHTTPResponseLogsResponseSchema;+ },+ /**+ * GetMonitorHTTPResponseLog returns one response log for an HTTP monitor.+ *+ * @generated from rpc openstatus.monitor.v1.MonitorService.GetMonitorHTTPResponseLog+ */+ getMonitorHTTPResponseLog: {+ methodKind: "unary";+ input: typeof GetMonitorHTTPResponseLogRequestSchema;+ output: typeof GetMonitorHTTPResponseLogResponseSchema;+ },}> = /*@__PURE__*/serviceDesc(file_openstatus_monitor_v1_service, 0);diff --git a/packages/tinybird/endpoints/endpoint__http_list_14d__v1.pipe b/packages/tinybird/endpoints/endpoint__http_list_14d__v1.pipeindex 66d1b4ab5..fa5313f20 100644--- a/packages/tinybird/endpoints/endpoint__http_list_14d__v1.pipe+++ b/packages/tinybird/endpoints/endpoint__http_list_14d__v1.pipe@@ -14,6 +14,10 @@ SQL >AND time <= toDateTime(fromUnixTimestamp64Milli(toInt64({{ String(toDate) }}))){% end %}ORDER BY time DESC+ {% if defined(limit) %}+ LIMIT {{ Int32(limit) }}+ OFFSET {{ Int32(offset, 0) }}+ {% end %}TYPE ENDPOINTdiff --git a/packages/tinybird/src/client.ts b/packages/tinybird/src/client.tsindex c9ab823ed..3aedfee16 100644--- a/packages/tinybird/src/client.ts+++ b/packages/tinybird/src/client.ts@@ -16,18 +16,19 @@ export class OSTinybird {private readonly tb: Client;constructor(token: string) {+ const tinybirdUrl = process.env.TINYBIRD_URL;if (- process.env.NODE_ENV === "development" ||- process.env.NODE_ENV === "test"+ (process.env.NODE_ENV === "development" ||+ process.env.NODE_ENV === "test") &&+ !tinybirdUrl) {this.tb = new NoopTinybird();} else {// Use local Tinybird container if available (Docker/self-hosted)// https://www.tinybird.co/docs/api-reference- const tinybirdUrl = process.env.TINYBIRD_URL || "https://api.tinybird.co";this.tb = new Client({token,- baseUrl: tinybirdUrl,+ baseUrl: tinybirdUrl || "https://api.tinybird.co",});}}@@ -170,6 +171,8 @@ export class OSTinybird {monitorId: z.string(),fromDate: z.int().optional(),toDate: z.int().optional(),+ limit: z.int().optional(),+ offset: z.int().optional(),}),data: z.object({type: z.literal("http").prefault("http"),