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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
import type { Resource } from '@/types/resource';
import { PMG_THRESHOLDS_PATH } from '@/routing/resourceLinks';
import { getPreferredInfrastructureDisplayName } from '@/utils/resourceIdentity';
export type ServiceDetailLink = {
href: string;
label: string;
compactLabel: string;
ariaLabel: string;
};
export const buildServiceDetailLinks = (resource: Resource): ServiceDetailLink[] => {
const label = getPreferredInfrastructureDisplayName(resource);
if (resource.type === 'pmg') {
return [
{
href: PMG_THRESHOLDS_PATH,
label: 'Open PMG thresholds',
compactLabel: 'Thresholds',
ariaLabel: `Open PMG thresholds for ${label}`,
},
];
}
return [];
};