Documentation
¶
Overview ¶
Package analyticsdashboards ships a curated pack of DashForge dashboards over the omniroadmap analytics catalog (analyticscatalog, analyticsquery) -- the Splunk model: a generic analytics engine plus an application- specific "app" of prebuilt dashboards, rather than a hand-rolled UI. Every widget queries a dataset analyticscatalog.BuildFromStore actually describes and analyticsquery.Execute actually serves; no dashboard here references a field the catalog doesn't declare.
Index ¶
Constants ¶
const SourceID = "omniroadmap"
SourceID is the DashForge analytics source ID omniroadmap registers as (dashforgeconnector.ConnectorName / analyticscatalog.BuildFromStore).
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DashboardPack ¶
type DashboardPack struct {
Dashboards []dashboardir.Dashboard `json:"dashboards"`
Questions []dashboardir.SavedQuestion `json:"questions"`
}
DashboardPack bundles the curated dashboards with the saved questions their widgets reference -- both must be imported together into a dashforge-server; a dashboard alone is inert without its questions.
func Build ¶
func Build(assessments []assessment.OpportunityAssessment, generatedAt time.Time) DashboardPack
Build assembles the full curated pack: the two portfolio-wide prioritization views (compass-rice-all, moscow-compass-rice), one compass-profile-<slug> dashboard per COMPASS-RICE profile present in assessments, and portfolio-overview. generatedAt is stamped on every SavedQuestion rather than read from the clock internally, so a re-generated pack from the same inputs is reproducible.
func BuildFromStore ¶
func BuildFromStore(ctx context.Context, s *store.DoltStore, generatedAt time.Time) (DashboardPack, error)
BuildFromStore reads the current assessment corpus from the store and builds the curated dashboard pack. generatedAt is stamped on every SavedQuestion -- pass time.Now() for a live build, or a fixed time for a reproducible one (e.g. in a test or a CLI --generated-at flag).