Status Tracker

Implement status monitoring visualizations with the Tracker component.

The Tracker component monitors status from any source and displays uptime and operational status for services.

Basic Usage

status-tracker.vue
<template>
  <ExamplesTracker
    :bar-width="6"
    :bar-gap="1"
    :operational-status="true"
    domain="example.com"
    uptime="99.9%"
    :status-data="statusData"
  />
</template>

<script setup>
const statusData = computed(() => {
  const statusHistory = Array.from({ length: 100 }, () => ({
    status: 'online',
  }))
  statusHistory[74].status = 'offline'
  return statusHistory
})
</script>

Props

PropTypeDefaultDescription
bar-widthnumber4Width of each status bar
bar-gapnumber1Gap between status bars
operational-statusbooleantrueCurrent operational status
domainstring''Domain being monitored
uptimestring''Uptime percentage display
status-dataArray[]Array of status objects with status property

Status Data Format

Each item in the status-data array should have the following structure:

interface StatusItem {
  status: 'online' | 'offline' | 'maintenance'
}