Uptime

A strip of daily bars showing a service's status, day by day.

APIOperational
90 days ago99.98% uptimeToday
DashboardOperational
90 days ago100% uptimeToday
WebhooksDegraded
90 days ago99.99% uptimeToday

Installation

  1. Add the registryOnce per project
  2. Add uptime

Usage

data holds a day per entry, oldest first, and the last is today. A day with downtime minutes is an outage, and one with degraded minutes is degraded. Only downtime counts against uptime, which rounds down, so a day with any downtime never shows 100%. A day marked down with neither downtime nor uptime shows no percentage and is left out of the total. Days before the first in data show as no data, so strips for a newer service still line up with the rest.

Point at a bar, or focus the strip and move with the arrow keys, to see its day, uptime and incidents. On a touch screen, tap it.

The strip shows every day in data, or the last days of them. Where there's no room for each bar to be minBarWidth wide, it shows as many of the latest days as fit, and the footer counts them. The uptime is still worked out over every day, so it reads the same at any width.

Composition

Examples

Current status

UptimeStatus shows the last day's status. Set current on Uptime while an incident is underway, and give the status your own words.

CheckoutInvestigating
90 days ago99.98% uptimeToday

Compact

UptimeTrack works alone. Here each root takes contents, so its label and track sit in the grid's columns, and days={30} gives the newest region's strip the same 30 days as the others.

us-east-1
eu-west-1
ap-south-1

Labels

labels replaces the words the strip shows and reads out, and locale formats its dates and percentages. Pass only the ones to change.

ZahlungenBetriebsbereit
vor 90 Tagen99,97 % VerfügbarkeitHeute

Props

The tables leave out className, style and render. Parts built on Base UI take them as its styling and composition guides describe.

Uptime

UptimeStatus

Each day in data takes these fields.