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
package api
import (
"context"
"testing"
"time"
"github.com/rcourtman/pulse-go-rewrite/internal/actionlifecycle"
unified "github.com/rcourtman/pulse-go-rewrite/internal/unifiedresources"
)
func actionDispatchTestContext(t *testing.T, actionID string) context.Context {
t.Helper()
attempt, err := unified.NewActionDispatchAttempt(actionID, time.Now())
if err != nil {
t.Fatalf("NewActionDispatchAttempt: %v", err)
}
return actionlifecycle.ContextWithCommittedDispatchAttempt(context.Background(), attempt)
}