Skip to content
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
102 changes: 14 additions & 88 deletions docs/openapi/monitoring-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -15794,7 +15794,7 @@
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/TableValueResultStatusPageComponentUptimeDayDto"
"$ref": "#/components/schemas/TableValueResultComponentUptimeDayDto"
}
}
}
Expand Down Expand Up @@ -22091,7 +22091,6 @@
"ComponentUptimeDayDto": {
"required": [
"date",
"source",
"partialOutageSeconds",
"majorOutageSeconds",
"degradedSeconds",
Expand All @@ -22101,7 +22100,7 @@
"properties": {
"date": {
"type": "string",
"description": "Date of the daily bucket (ISO 8601)",
"description": "Start-of-day timestamp for this bucket (UTC midnight, ISO 8601)",
"format": "date-time"
},
"partialOutageSeconds": {
Expand All @@ -22121,17 +22120,16 @@
},
"uptimePercentage": {
"type": "number",
"description": "Computed uptime percentage for the day",
"description": "Computed uptime percentage using the weighted formula (degraded does not lower it)",
"format": "double"
},
"eventsJson": {
"type": "string",
"description": "Incident event references for this day as raw JSON",
"nullable": true
},
"source": {
"type": "string",
"description": "Data source: vendor_reported or incident_derived"
"incidents": {
"type": "array",
"description": "Incidents that overlapped this day, in display order",
"nullable": true,
"items": {
"$ref": "#/components/schemas/IncidentRef"
}
}
},
"description": "Daily uptime data for a component"
Expand Down Expand Up @@ -25112,19 +25110,19 @@
"properties": {
"id": {
"type": "string",
"description": "Status page incident ID",
"description": "Internal incident ID — UUID for status-page incidents, service incident UUID for catalog",
"format": "uuid"
},
"title": {
"type": "string",
"description": "Incident title"
"description": "Incident title at the time of the overlap"
},
"impact": {
"type": "string",
"description": "Incident impact level"
"description": "Incident impact level (e.g. minor, major, critical for catalog; NONE/MINOR/MAJOR/CRITICAL for status pages)"
}
},
"description": "Lightweight reference to an incident overlapping this day"
"description": "Lightweight reference to an incident overlapping a given uptime day"
},
"IncidentsSummaryDto": {
"type": "object",
Expand Down Expand Up @@ -29827,46 +29825,6 @@
}
}
},
"StatusPageComponentUptimeDayDto": {
"required": [
"date",
"partialOutageSeconds",
"majorOutageSeconds",
"uptimePercentage"
],
"type": "object",
"properties": {
"date": {
"type": "string",
"description": "Start-of-day timestamp for this bucket (UTC midnight)",
"format": "date-time"
},
"partialOutageSeconds": {
"type": "integer",
"description": "Seconds of partial outage on this day",
"format": "int32"
},
"majorOutageSeconds": {
"type": "integer",
"description": "Seconds of major outage on this day",
"format": "int32"
},
"uptimePercentage": {
"type": "number",
"description": "Computed uptime percentage using weighted formula",
"format": "double"
},
"incidents": {
"type": "array",
"description": "Incidents that overlapped this day",
"nullable": true,
"items": {
"$ref": "#/components/schemas/IncidentRef"
}
}
},
"description": "Daily uptime data for a status page component"
},
"StatusPageCustomDomainDto": {
"required": [
"createdAt",
Expand Down Expand Up @@ -31113,38 +31071,6 @@
}
}
},
"TableValueResultStatusPageComponentUptimeDayDto": {
"required": [
"data",
"hasNext",
"hasPrev"
],
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/StatusPageComponentUptimeDayDto"
}
},
"hasNext": {
"type": "boolean"
},
"hasPrev": {
"type": "boolean"
},
"totalElements": {
"type": "integer",
"format": "int64",
"nullable": true
},
"totalPages": {
"type": "integer",
"format": "int32",
"nullable": true
}
}
},
"TableValueResultStatusPageCustomDomainDto": {
"required": [
"data",
Expand Down
21,893 changes: 21,892 additions & 1 deletion docs/openapi/monitoring-api.yaml

Large diffs are not rendered by default.

31 changes: 5 additions & 26 deletions src/lib/api-zod.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1459,15 +1459,17 @@ const AuthMeResponse = z
rateLimits: RateLimitInfo,
})
.strict();
const IncidentRef = z
.object({ id: z.string().uuid(), title: z.string(), impact: z.string() })
.strict();
const ComponentUptimeDayDto = z
.object({
date: z.string().datetime({ offset: true }),
partialOutageSeconds: z.number().int(),
majorOutageSeconds: z.number().int(),
degradedSeconds: z.number().int(),
uptimePercentage: z.number(),
eventsJson: z.string().nullish(),
source: z.string(),
incidents: z.array(IncidentRef).nullish(),
})
.strict();
const BatchComponentUptimeDto = z
Expand Down Expand Up @@ -1905,9 +1907,6 @@ const IncidentPolicyDto = z
checkFrequencySeconds: z.number().int().nullish(),
})
.strict();
const IncidentRef = z
.object({ id: z.string().uuid(), title: z.string(), impact: z.string() })
.strict();
const IntegrationFieldDto = z
.object({
key: z.string(),
Expand Down Expand Up @@ -2870,15 +2869,6 @@ const WorkspaceDto = z
const SingleValueResponseWorkspaceDto = z
.object({ data: WorkspaceDto })
.strict();
const StatusPageComponentUptimeDayDto = z
.object({
date: z.string().datetime({ offset: true }),
partialOutageSeconds: z.number().int(),
majorOutageSeconds: z.number().int(),
uptimePercentage: z.number(),
incidents: z.array(IncidentRef).nullish(),
})
.strict();
const TableValueResultAlertChannelDto = z
.object({
data: z.array(AlertChannelDto),
Expand Down Expand Up @@ -3113,15 +3103,6 @@ const TableValueResultStatusPageComponentGroupDto = z
totalPages: z.number().int().nullish(),
})
.strict();
const TableValueResultStatusPageComponentUptimeDayDto = z
.object({
data: z.array(StatusPageComponentUptimeDayDto),
hasNext: z.boolean(),
hasPrev: z.boolean(),
totalElements: z.number().int().nullish(),
totalPages: z.number().int().nullish(),
})
.strict();
const TableValueResultStatusPageCustomDomainDto = z
.object({
data: z.array(StatusPageCustomDomainDto),
Expand Down Expand Up @@ -3370,6 +3351,7 @@ export const schemas = {
PlanInfo,
RateLimitInfo,
AuthMeResponse,
IncidentRef,
ComponentUptimeDayDto,
BatchComponentUptimeDto,
FailureDetail,
Expand Down Expand Up @@ -3411,7 +3393,6 @@ export const schemas = {
IncidentDetailDto,
IncidentFilterParams,
IncidentPolicyDto,
IncidentRef,
IntegrationFieldDto,
IntegrationConfigSchemaDto,
IntegrationDto,
Expand Down Expand Up @@ -3522,7 +3503,6 @@ export const schemas = {
SingleValueResponseWebhookTestResult,
WorkspaceDto,
SingleValueResponseWorkspaceDto,
StatusPageComponentUptimeDayDto,
TableValueResultAlertChannelDto,
TableValueResultAlertDeliveryDto,
TableValueResultApiKeyDto,
Expand All @@ -3549,7 +3529,6 @@ export const schemas = {
TableValueResultServiceSubscriptionDto,
TableValueResultStatusPageComponentDto,
TableValueResultStatusPageComponentGroupDto,
TableValueResultStatusPageComponentUptimeDayDto,
TableValueResultStatusPageCustomDomainDto,
TableValueResultStatusPageDto,
TableValueResultStatusPageIncidentDto,
Expand Down
54 changes: 9 additions & 45 deletions src/lib/api.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2904,7 +2904,7 @@ export interface components {
ComponentUptimeDayDto: {
/**
* Format: date-time
* @description Date of the daily bucket (ISO 8601)
* @description Start-of-day timestamp for this bucket (UTC midnight, ISO 8601)
*/
date: string;
/**
Expand All @@ -2924,13 +2924,11 @@ export interface components {
degradedSeconds: number;
/**
* Format: double
* @description Computed uptime percentage for the day
* @description Computed uptime percentage using the weighted formula (degraded does not lower it)
*/
uptimePercentage: number;
/** @description Incident event references for this day as raw JSON */
eventsJson?: string | null;
/** @description Data source: vendor_reported or incident_derived */
source: string;
/** @description Incidents that overlapped this day, in display order */
incidents?: components["schemas"]["IncidentRef"][] | null;
};
/** @description Inline uptime percentages for 24h, 7d, 30d */
ComponentUptimeSummaryDto: {
Expand Down Expand Up @@ -4242,16 +4240,16 @@ export interface components {
*/
checkFrequencySeconds?: number | null;
};
/** @description Lightweight reference to an incident overlapping this day */
/** @description Lightweight reference to an incident overlapping a given uptime day */
IncidentRef: {
/**
* Format: uuid
* @description Status page incident ID
* @description Internal incident ID — UUID for status-page incidents, service incident UUID for catalog
*/
id: string;
/** @description Incident title */
/** @description Incident title at the time of the overlap */
title: string;
/** @description Incident impact level */
/** @description Incident impact level (e.g. minor, major, critical for catalog; NONE/MINOR/MAJOR/CRITICAL for status pages) */
impact: string;
};
/** @description Incident summary counters */
Expand Down Expand Up @@ -6134,31 +6132,6 @@ export interface components {
/** Format: date-time */
updatedAt: string;
};
/** @description Daily uptime data for a status page component */
StatusPageComponentUptimeDayDto: {
/**
* Format: date-time
* @description Start-of-day timestamp for this bucket (UTC midnight)
*/
date: string;
/**
* Format: int32
* @description Seconds of partial outage on this day
*/
partialOutageSeconds: number;
/**
* Format: int32
* @description Seconds of major outage on this day
*/
majorOutageSeconds: number;
/**
* Format: double
* @description Computed uptime percentage using weighted formula
*/
uptimePercentage: number;
/** @description Incidents that overlapped this day */
incidents?: components["schemas"]["IncidentRef"][] | null;
};
StatusPageCustomDomainDto: {
/** Format: uuid */
id: string;
Expand Down Expand Up @@ -6514,15 +6487,6 @@ export interface components {
/** Format: int32 */
totalPages?: number | null;
};
TableValueResultStatusPageComponentUptimeDayDto: {
data: components["schemas"]["StatusPageComponentUptimeDayDto"][];
hasNext: boolean;
hasPrev: boolean;
/** Format: int64 */
totalElements?: number | null;
/** Format: int32 */
totalPages?: number | null;
};
TableValueResultStatusPageCustomDomainDto: {
data: components["schemas"]["StatusPageCustomDomainDto"][];
hasNext: boolean;
Expand Down Expand Up @@ -20172,7 +20136,7 @@ export interface operations {
[name: string]: unknown;
};
content: {
"*/*": components["schemas"]["TableValueResultStatusPageComponentUptimeDayDto"];
"*/*": components["schemas"]["TableValueResultComponentUptimeDayDto"];
};
};
/** @description Bad request — the payload failed validation */
Expand Down
Loading