feat(api, web): enhance health check and domain management features
Build, Test, and Push CFDM Docker Image / test (push) Successful in 3m3s
Build, Test, and Push CFDM Docker Image / build-and-push (push) Successful in 1m48s
Build, Test, and Push CFDM Docker Image / update-wiki (push) Successful in 6s
Build, Test, and Push CFDM Docker Image / create-release (push) Has been skipped
Build, Test, and Push CFDM Docker Image / test (push) Successful in 3m3s
Build, Test, and Push CFDM Docker Image / build-and-push (push) Successful in 1m48s
Build, Test, and Push CFDM Docker Image / update-wiki (push) Successful in 6s
Build, Test, and Push CFDM Docker Image / create-release (push) Has been skipped
- Integrated domain monitoring routes and bulk update functionality for domains in the API. - Improved health check service to include domain monitoring and logging of health status changes. - Updated web components to reflect health status with new HealthCheckBadge and enhanced domain filtering options. - Refactored domain service to support bulk updates and improved domain management capabilities. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -115,6 +115,7 @@ export const domainSchema = z.object({
|
||||
cf_zone_id: z.string(),
|
||||
status: z.string(),
|
||||
cert_monitoring: z.enum(['auto', 'required', 'skipped']).default('auto'),
|
||||
environment: z.enum(['prod', 'staging', 'dev']).nullable().optional().default(null),
|
||||
last_synced_at: z.string().nullable(),
|
||||
created_at: z.string(),
|
||||
updated_at: z.string(),
|
||||
@@ -123,6 +124,9 @@ export const domainSchema = z.object({
|
||||
export const domainListItemSchema = domainSchema.extend({
|
||||
group_name: z.string().nullable(),
|
||||
service_count: z.number(),
|
||||
health_status: z.enum(['up', 'down', 'degraded', 'unknown']).default('unknown'),
|
||||
health_latency_ms: z.number().nullable().default(null),
|
||||
tags: z.array(z.string()).default([]),
|
||||
})
|
||||
|
||||
export const serviceBindingSchema = z
|
||||
@@ -369,11 +373,22 @@ export type LoginInput = z.infer<typeof loginSchema>
|
||||
export type CreateDnsRecordInput = z.infer<typeof createDnsRecordSchema>
|
||||
|
||||
export {
|
||||
bulkUpdateDomainsSchema,
|
||||
createDomainMonitorSchema,
|
||||
createSubdomainSchema,
|
||||
domainMonitorResultSchema,
|
||||
domainMonitorSchema,
|
||||
notificationLogSchema,
|
||||
subdomainSchema,
|
||||
updateDomainSchema,
|
||||
updateSubdomainSchema,
|
||||
type BulkUpdateDomainsInput,
|
||||
type CreateDomainMonitorInput,
|
||||
type CreateSubdomainInput,
|
||||
type DomainMonitor,
|
||||
type DomainMonitorResult,
|
||||
type DomainMonitorType,
|
||||
type NotificationLog,
|
||||
type SubdomainRecord,
|
||||
type UpdateDomainInput,
|
||||
type UpdateSubdomainInput,
|
||||
|
||||
Reference in New Issue
Block a user