Function: calculateGlobalMonitoringMetrics()
calculateGlobalMonitoringMetrics(
sites: readonlySite[]):GlobalMonitoringMetrics
Defined in: src/utils/monitoring/globalMetrics.ts:73
Calculates aggregated monitoring metrics for a collection of sites.
Parametersโ
sitesโ
readonly Site[]
All sites available in the store.
Returnsโ
A metrics object with totals, status counters, incidents, and derived figures used by the dashboard UI.
Remarksโ
Iterates all monitors across the provided sites, deriving totals, incident counts, uptime percentage, and averaged response times. Results feed the dashboard summary cards and sparklines, ensuring renderer components remain presentation-focused.