quality / commitlint (push) Skipped
CD / update-wiki (push) Failing after 8s
quality / changes (push) Successful in 5s
quality / docker-check (push) Skipped
quality / web (push) Successful in 50s
quality / api (push) Successful in 41s
CD / quality (push) Successful in 1m40s
CD / publish (push) Successful in 1m33s
- Introduced origin health check routes and integrated them into the application. - Updated health check configuration to include success recovery thresholds. - Expanded error handling with new error codes for health check failures. - Added new service routes for managing health checks, including creation and listing. - Improved health check service logic to track consecutive successes and failures. This commit enhances the health check capabilities, providing better monitoring and management of service health.
41 lines
952 B
TypeScript
41 lines
952 B
TypeScript
import {
|
|
Timeline,
|
|
TimelineContent,
|
|
TimelineHeader,
|
|
TimelineIndicator,
|
|
TimelineItem,
|
|
TimelineSeparator,
|
|
TimelineTitle,
|
|
} from '@/components/reui/timeline'
|
|
|
|
export interface FailoverEvent {
|
|
id: string
|
|
title: string
|
|
detail: string
|
|
}
|
|
|
|
export function FailoverTimeline({ events }: { events: FailoverEvent[] }) {
|
|
if (events.length === 0) {
|
|
return (
|
|
<p className="text-muted-foreground text-sm">
|
|
Событий failover пока нет.
|
|
</p>
|
|
)
|
|
}
|
|
|
|
return (
|
|
<Timeline defaultValue={events.length} className="w-full">
|
|
{events.map((event, index) => (
|
|
<TimelineItem key={event.id} step={index + 1}>
|
|
<TimelineSeparator />
|
|
<TimelineIndicator />
|
|
<TimelineHeader>
|
|
<TimelineTitle>{event.title}</TimelineTitle>
|
|
</TimelineHeader>
|
|
<TimelineContent>{event.detail}</TimelineContent>
|
|
</TimelineItem>
|
|
))}
|
|
</Timeline>
|
|
)
|
|
}
|