Getting startedComponentsDesign tokensThemingTheme synthesizerFrameworksAccessibilityUtilitiesServer renderingBrowser supportContributingChangelogApp ShellAspect GridAuth ShellCenterContainerDashboard GridFloat BarInsetMasonryPage HeaderPage LayoutResizableResponsive SwitcherSectionSettings LayoutSplit PaneStatus BarStickyToolbarAnchor NavBottom NavBreadcrumbBreadcrumb MenuCommand BarDrawerFooterLinkMenubarNavigation MenuPage IndicatorPaginationRailScroll IndicatorScroll SpyScroll To TopSidebarSkip LinkStepper NavTabsTop BarTree ViewAccordionAspect RatioAvatarAvatar GroupCardCarouselCollapsibleColor SwatchCTA BannerDividerEmpty StateFeature CardIconImageImage CompareImage HotspotsInfinite ScrollLightboxMarqueeQR CodeScroll AreaSkeletonSpinnerStackVideoVirtual ListActivity HeatmapAnimated NumberBadgeBar ListChartClockComparisonCountdown TimerData GridDescription ListDiffGaugeJSON TreeKanbanLevel MeterListMeterSparklineStatStepperTagTimelineUptimeValue CardWaveformBlockquoteCode BlockCode GroupGradient TextHighlightKbdKeyboard MapMarkdownNumber FormatProseTerminalTextTime AgoTruncateTypewriterButtonButton GroupCalendarCheckboxChipColor PickerComboboxCopy ButtonDate PickerDate Range PickerField ListFieldsetFile UploadFormHotkeyIcon ButtonImage CropperInline EditInputInput GroupKnobLabelMasked InputMulti SelectNumber InputPassword InputPin InputRadio GroupRange SliderRatingSearchSegmented ControlSelectSignature PadSliderSortable ListSwitch GroupTag InputTextareaTheme ToggleTime PickerToggleTransfer ListTree SelectAlertAnnouncementBannerCommand PaletteConfirmConnection StatusContext MenuConversationDialogDropdown MenuHover CardLoading OverlayNotification PanelPopoverProgressSheetToastTooltip
ARC UIARC Radiant Components
v4.9DocsComponentsTokensSynthesizer
Getting startedFrameworksServer renderingDesign tokensThemingTheme synthesizerTypographyUtilitiesAll componentsAccessibilityBrowser supportChangelogContributingStatsApp ShellAspect GridAuth ShellCenterContainerDashboard GridFloat BarInsetMasonryPage HeaderPage LayoutResizableResponsive SwitcherSectionSettings LayoutSplit PaneStatus BarStickyToolbarAnchor NavBottom NavBreadcrumbBreadcrumb MenuCommand BarDrawerFooterLinkMenubarNavigation MenuPage IndicatorPaginationRailScroll IndicatorScroll SpyScroll To TopSidebarSkip LinkStepper NavTabsTop BarTree ViewAccordionAspect RatioAvatarAvatar GroupCardCarouselCollapsibleColor SwatchCTA BannerDividerEmpty StateFeature CardIconImageImage CompareImage HotspotsInfinite ScrollLightboxMarqueeQR CodeScroll AreaSkeletonSpinnerStackVideoVirtual ListActivity HeatmapAnimated NumberBadgeBar ListChartClockComparisonCountdown TimerData GridDescription ListDiffGaugeJSON TreeKanbanLevel MeterListMeterSparklineStatStepperTagTimelineUptimeValue CardWaveformBlockquoteCode BlockCode GroupGradient TextHighlightKbdKeyboard MapMarkdownNumber FormatProseTerminalTextTime AgoTruncateTypewriterButtonButton GroupCalendarCheckboxChipColor PickerComboboxCopy ButtonDate PickerDate Range PickerField ListFieldsetFile UploadFormHotkeyIcon ButtonImage CropperInline EditInputInput GroupKnobLabelMasked InputMulti SelectNumber InputPassword InputPin InputRadio GroupRange SliderRatingSearchSegmented ControlSelectSignature PadSliderSortable ListSwitch GroupTag InputTextareaTheme ToggleTime PickerToggleTransfer ListTree SelectAlertAnnouncementBannerCommand PaletteConfirmConnection StatusContext MenuConversationDialogDropdown MenuHover CardLoading OverlayNotification PanelPopoverProgressSheetToastTooltip

Uptime

A status-page strip of slim ticks, one per period, each colored by how that period went.

ComponentsUptime
datahybrid
<arc-uptime>

Overview

Uptime is a status-page history strip: a row of slim vertical ticks, one per period, each colored by how that period went. Green is operational, amber is degraded, red is an outage, and a neutral tick means no data. Hovering a tick, or focusing the strip and pressing the arrow keys, raises it with a glow in its status color and shows the period's label, exact percentage and status in a small bubble. `data` takes one entry per period, oldest first. The simplest form is an array of numbers from 0 to 1, read as uptime fractions: 0.99 and above is operational, 0.95 and above is degraded, and anything lower is an outage. For more control, pass objects. An explicit `status` always wins over the thresholds, a `value` still counts toward the summary when the status is set by hand, and a `label` names the period in the hover detail. Numbers and objects can be mixed in one array. The summary above the track is the mean of every value, set in the mono font. `start-label` and `end-label` caption the two ends. An empty array renders an empty track, not an error, so you can bind it before the data arrives. Assistive technology gets the strip as one image, described by its period count, overall percentage and incident counts. Keyboard users still get each period: the track is a single tab stop, the arrow keys move between ticks, and a live region announces each one.

Guidelines

Do

  • Order entries oldest first, so the newest period sits at the end where "Today" goes
  • Caption the ends with `start-label` and `end-label`. Without them readers have to guess the time span
  • Pass values, not only statuses, whenever you have them, so the summary has something to average
  • Use `label` for the period's date ("Mar 4"). The hover detail and the screen reader announcement read it
  • Set an explicit status when the number alone misleads. A 30-minute total outage still averages to 0.98 for the day
  • Use one strip per monitored service, stacked

Don't

  • Don't use Uptime for continuous metrics such as latency or throughput. Use Sparkline. Uptime shows health per period
  • Don't use it to show whether you're online right now. Use ConnectionStatus. Uptime is history
  • Don't go past about 120 periods. Ticks thinner than a couple of pixels stop reading as separate periods
  • Don't rely on tick color alone to report an incident. Link to an incident log that explains it

Features

  • Tick colors come from `--color-success`, `--color-warning` and `--color-error`
  • Renders fully on the server, and the hover and keyboard detail hydrate on the client
  • `--uptime-tick-gap` and `--uptime-tick-height` set the tick spacing and height

Preview

Usage

Its events and state need JavaScript, so use the Web Component or a framework wrapper for those.

<script type="module" src="@arclux/arc-ui"></script>

<arc-uptime id="api-uptime" start-label="90 days ago" end-label="Today"></arc-uptime>

<script>
  const strip = document.querySelector('#api-uptime');

  // Numbers are uptime fractions; thresholds pick the color.
  strip.data = [1, 1, 0.998, 0.97, 0.62, 1, 1];

  // Or objects, when you need labels or an explicit status:
  strip.data = [
    { value: 1, label: 'Mar 1' },
    { value: 0.98, status: 'down', label: 'Mar 2' }, // status wins over the threshold
    { status: 'none', label: 'Mar 3' },              // no data recorded
  ];
</script>

API

thresholdsobject{ up: 0.99, degraded: 0.95 }
Uptime fraction at or above up reads as up; at or above degraded, degraded; below, down.
start-labelstring''
Caption under the oldest end of the track (e.g. "90 days ago").
end-labelstring''
Caption under the newest end of the track (e.g. "Today").
summarybooleantrue
Whether to render the overall percentage above the track (default true; set the attribute to the string "false" to disable from markup). The percentage is the mean of every finite value in the data; when no entry carries a value the line is omitted regardless.
dataArray<number | {value?: number, status?: 'up' | 'degraded' | 'down' | 'none', label?: string}>[]
One entry per period, oldest first. A number is an uptime fraction from 0 to 1, mapped to a status by threshold (0.99 and up is "up", 0.95 and up is "degraded", below is "down"). An object may carry an explicit status (which wins over any threshold), a value used for the summary math, and a label shown in the hover detail. An entry with neither a finite value nor a status renders as the neutral "none" track. Set it from script, a framework binding, or a JSON attribute.

See also