Analytics & Reporting

Analytics & Reporting

The Repairs Analytics page provides deep insight into equipment reliability, repair efficiency, cost trends, and technician performance. Use these metrics to make data-driven decisions about equipment replacement, maintenance schedules, and team resourcing. Navigate to Repairs > Analytics to access the dashboard.

Filtering your data

At the top of the analytics page, a filter card lets you narrow the data set:

  • Time period presets — Quick-select buttons for 30 days, 3 months, 6 months, 1 year, all time, or a custom date range.
  • Start date / End date — Date pickers for defining a custom period.
  • Equipment filter — Limit analytics to a specific equipment item.

All charts, tables, and metric cards update dynamically when filters change.

Key metrics cards

Four summary cards are displayed at the top of the page:

  1. Avg MTBF — Mean Time Between Failures, measured in hours. Higher values indicate more reliable equipment. A reliability score (0–100) is derived where 720+ hours (30 days) scores 100.
  2. Avg MTTR — Mean Time To Repair, measured in hours. Lower values indicate faster turnaround. An efficiency score is calculated where under 2 hours scores 100 and over 24 hours scores 0.
  3. Total Downtime — The total number of days equipment spent in repair, plus the percentage of the selected period that represents.
  4. Total Cost — Combined repair expenditure broken down into labour, parts, and external vendor costs.

MTBF and MTTR charts

Two charts occupy the next row, each spanning six columns:

  • MTBF chart — Displays equipment failure frequency trends over time. Use this to identify items with declining reliability that may need replacement or a revised maintenance schedule.
  • MTTR chart — Shows repair time trends. Increasing MTTR may indicate parts sourcing delays, insufficient technician capacity, or growing equipment complexity.

The RepairAnalyticsController serves these charts via two endpoints:

  • GET /repairs/analytics/mtbf — Accepts optional equipment_id and months parameters.
  • GET /repairs/analytics/mttr — Accepts the same parameters.

Equipment downtime table

Below the charts, a data table lists equipment items ranked by downtime:

Column Description
EquipmentAvatar image alongside the equipment name and model number.
Downtime %Colour-coded chip: green (<10%), amber (10–25%), red (>25%).
Days in RepairTotal calendar days the item spent in an active repair status.
Revenue LostEstimated rental income lost during downtime periods.
ViewAction button to open the equipment's full downtime analysis.

Cost breakdown card

A dedicated card shows the three cost components with progress bars indicating their proportion of total spend:

  • Labour (blue) — The labor_cost across all repairs in the period.
  • Parts (orange) — The parts_cost across all repairs in the period.
  • External Vendor (purple) — The external_cost from outsourced repairs.

Each item shows its absolute value and percentage of the total. The total is displayed at the bottom. This breakdown is calculated by RepairAnalyticsService.getCostAnalysis().

Reliability scores card

This card ranks the top 5 equipment items by reliability. For each item it shows:

  • Failures count — Total number of completed repairs in the period.
  • MTBF hours — Average time between failures for this specific item.
  • Reliability % — A colour-coded chip: green (≥80%), amber (60–79%), red (<60%).

Backend services

The analytics are powered by two services:

  • RepairAnalyticsService — Provides calculateMTBF(), calculateMTTR(), getDowntimeAnalysis(), getCostAnalysis(), getTechnicianPerformance(), getFailureTypeAnalysis(), and getRepairTrends().
  • RepairsAnalyticsExportService — Handles data export with filters for date range, equipment, priority, and status.

Statistics endpoint

The GET /repairs/statistics endpoint (served by RepairAnalyticsController) returns aggregate repair statistics. It accepts optional equipment_id, start_date, and end_date query parameters.

Exporting data

An export menu in the top-right corner of the analytics page offers two formats:

  • PDF — A formatted report suitable for stakeholder presentations and compliance documentation.
  • Excel (.xlsx) — A spreadsheet with column headers, auto-sized columns, and a frozen header row. Includes repair number, equipment, costs, timestamps, and quality check results.

Exports respect the currently applied filters, so you can generate targeted reports for specific time periods, equipment items, or priority levels.

Interpreting results

Use these guidelines to interpret the key metrics:

Metric Excellent Good Fair Poor
MTBF≥720 hrs (30 days)≥360 hrs (15 days)≥168 hrs (7 days)<168 hrs
MTTR≤2 hrs≤8 hrs≤24 hrs>24 hrs

Equipment with consistently poor MTBF scores should be evaluated for replacement. Repairs with high MTTR should be investigated for process bottlenecks such as parts delays or technician availability.

Was this article helpful?