Documentation
¶
Index ¶
Constants ¶
View Source
const ( // BucketDuration is the size of each sparkline bucket BucketDuration = 15 * time.Second // BucketCount is how many buckets to keep (20 buckets × 15s = 5 minutes of history) BucketCount = 20 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionActivity ¶
type SessionActivity struct {
// contains filtered or unexported fields
}
SessionActivity tracks output activity for a single session
type Snapshot ¶
type Snapshot struct {
Host string `json:"host,omitempty"` // peer fingerprint (empty = local)
SessionName string `json:"session"`
IdleSeconds float64 `json:"idle_seconds"`
Sparkline []int64 `json:"sparkline"` // most recent BucketCount buckets, oldest first
TotalBytes int64 `json:"total_bytes"`
}
Snapshot is a point-in-time view of a session's activity
type Tracker ¶
type Tracker struct {
// contains filtered or unexported fields
}
Tracker tracks output activity across all sessions
Click to show internal directories.
Click to hide internal directories.