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

Method GetTemplateInsightsByInterval

coderd/database/dbauthz/dbauthz.go:4300–4305  ·  view source on GitHub ↗
(ctx context.Context, arg database.GetTemplateInsightsByIntervalParams)

Source from the content-addressed store, hash-verified

4298}
4299
4300func (q *querier) GetTemplateInsightsByInterval(ctx context.Context, arg database.GetTemplateInsightsByIntervalParams) ([]database.GetTemplateInsightsByIntervalRow, error) {
4301 if err := q.authorizeTemplateInsights(ctx, arg.TemplateIDs); err != nil {
4302 return nil, err
4303 }
4304 return q.db.GetTemplateInsightsByInterval(ctx, arg)
4305}
4306
4307func (q *querier) GetTemplateInsightsByTemplate(ctx context.Context, arg database.GetTemplateInsightsByTemplateParams) ([]database.GetTemplateInsightsByTemplateRow, error) {
4308 // Only used by prometheus metrics collector. No need to check update template perms.

Callers

nothing calls this directly

Tested by

no test coverage detected