Documentation
¶
Overview ¶
Package brief computes the morning "what to fix" digest: the pulse (last N days vs the N before), the per-product portfolio split, and the verdict engine's findings. One struct feeds the CLI text, JSON, webhook, and the cloud's email renderings, so they can never disagree.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Brief ¶
type Brief struct {
GeneratedAt time.Time `json:"generated_at"`
Days int `json:"days"`
Visitors int `json:"visitors"`
Events int `json:"events"`
PriorVisitors int `json:"prior_visitors"`
PriorEvents int `json:"prior_events"`
Sites []SiteLine `json:"sites,omitempty"`
Findings []insight.Finding `json:"findings"`
}
Brief is the computed digest.
type SiteLine ¶
type SiteLine struct {
Site string `json:"site"`
Visitors int `json:"visitors"`
Events int `json:"events"`
PriorVisitors int `json:"prior_visitors"`
PriorEvents int `json:"prior_events"`
}
SiteLine is one product's slice of the pulse. The SDK stamps every event's `site` (hostname) — the same key the dashboard's site selector filters on — so one instance carrying several products splits cleanly per site.
Click to show internal directories.
Click to hide internal directories.