feat(go): add realtime pipeline observability

This commit is contained in:
lingniu
2026-07-03 15:06:27 +08:00
parent 28c81611a1
commit b8299faefa
10 changed files with 636 additions and 6 deletions

View File

@@ -37,6 +37,24 @@ type OnlineStatus struct {
TTLSeconds int64 `json:"ttl_seconds"`
}
type OnlineListQuery struct {
Protocol envelope.Protocol `json:"protocol,omitempty"`
Limit int `json:"limit"`
Offset int `json:"offset"`
}
type ProtocolPipelineSummary struct {
Protocol envelope.Protocol `json:"protocol"`
IndexedCount int64 `json:"indexed_count"`
OnlineCount int64 `json:"online_count"`
LatestSeenMS int64 `json:"latest_seen_ms"`
}
type PipelineSummary struct {
Protocols []ProtocolPipelineSummary `json:"protocols"`
UpdatedMS int64 `json:"updated_ms"`
}
type Config struct {
OnlineTTL time.Duration
}