MCPcopy Index your code
hub / github.com/coder/coder / GetTemplateParameterInsights

Method GetTemplateParameterInsights

coderd/database/querier.go:724–724  ·  view source on GitHub ↗

GetTemplateParameterInsights does for each template in a given timeframe, look for the latest workspace build (for every workspace) that has been created in the timeframe and return the aggregate usage counts of parameter values.

(ctx context.Context, arg GetTemplateParameterInsightsParams)

Source from the content-addressed store, hash-verified

722 // created in the timeframe and return the aggregate usage counts of parameter
723 // values.
724 GetTemplateParameterInsights(ctx context.Context, arg GetTemplateParameterInsightsParams) ([]GetTemplateParameterInsightsRow, error)
725 // GetTemplatePresetsWithPrebuilds retrieves template versions with configured presets and prebuilds.
726 // It also returns the number of desired instances for each preset.
727 // If template_id is specified, only template versions associated with that template will be returned.

Callers 5

insightsTemplatesMethod · 0.65
RunMethod · 0.65
TestTemplateMethod · 0.65

Implementers 5

sqlQueriercoderd/database/db.go
queryMetricsStorecoderd/database/dbmetrics/querymetrics
queriercoderd/database/dbauthz/dbauthz.go
MockStorecoderd/database/dbmock/dbmock.go
MockStoreMockRecordercoderd/database/dbmock/dbmock.go

Calls

no outgoing calls

Tested by 1

TestTemplateMethod · 0.52