Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Lx9FNLG2CqeBbVGGd9bFsP
12 lines
663 B
Go
12 lines
663 B
Go
// Package groups turns group membership into traffic: the oriented sum of
|
|
// the members' 5-minute rates, its graph, and its monthly p95.
|
|
//
|
|
// A group's membership has a history. Every query resolves membership per
|
|
// timestamp, so adding a port in February never changes January. Per
|
|
// timestamp the members are reduced in this order: drop interfaces flagged
|
|
// unreliable (32-bit counters), drop a LAG member whose LAG parent is also a
|
|
// member, orient each remaining member (direction "away" swaps in and out)
|
|
// and add the rates. The group p95 is the nearest-rank percentile of that
|
|
// summed series; per-port percentiles are never added.
|
|
package groups
|