Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

chore: remove unused alertFormatters functions

rcourtman4e64ea22b2fb
diff --git a/frontend-modern/src/utils/alertFormatters.ts b/frontend-modern/src/utils/alertFormatters.ts
index 4bc0ebf9d7..af42266b44 100644
--- a/frontend-modern/src/utils/alertFormatters.ts
+++ b/frontend-modern/src/utils/alertFormatters.ts
@@ -73,18 +73,3 @@ export function formatAlertThreshold(
return `${value}${getAlertUnit(metricType)}`;
}
-/**
- * Checks if a metric type represents a temperature measurement.
- */
-export function isTemperatureMetric(metricType?: string): boolean {
- if (!metricType) return false;
- return TEMPERATURE_METRIC_TYPES.has(metricType.toLowerCase());
-}
-
-/**
- * Checks if a metric type represents a throughput measurement (MB/s).
- */
-export function isThroughputMetric(metricType?: string): boolean {
- if (!metricType) return false;
- return THROUGHPUT_METRIC_TYPES.has(metricType);
-}