layer1: add namespace manager summary

This commit is contained in:
Naeel
2026-04-26 10:55:56 +03:00
parent 67db8d71f1
commit 5c481b7293
5 changed files with 74 additions and 0 deletions
+6
View File
@@ -73,6 +73,12 @@ type NamespaceEvent struct {
ObservedAt time.Time
}
type NamespaceManagerSummary struct {
TotalNamespaces int
PhaseCounts map[NamespacePhase]int
Subscribers []string
}
func NewNamespaceEvent(eventType NamespaceEventType, name string, labels map[string]string, source NamespaceSource, observedAt time.Time) NamespaceEvent {
return NamespaceEvent{
Type: eventType,