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.

457 B
Raw Blame
import type { Alert } from '@/types/api';

/**
 * Mirror the existing system-alert identity/metadata contract. Names and alert
 * types are not scope evidence: a monitored machine can also be called Pulse,
 * and future system conditions must not need a frontend type allowlist.
 */
export function isPulseSystemAlert(alert: Pick<Alert, 'id' | 'metadata'>): boolean {
  return alert.id.startsWith('pulse-system-') || alert.metadata?.systemAlert === true;
}