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

Method GetFileTemplates

coderd/database/dbmetrics/querymetrics.go:1885–1891  ·  view source on GitHub ↗
(ctx context.Context, fileID uuid.UUID)

Source from the content-addressed store, hash-verified

1883}
1884
1885func (m queryMetricsStore) GetFileTemplates(ctx context.Context, fileID uuid.UUID) ([]database.GetFileTemplatesRow, error) {
1886 start := time.Now()
1887 r0, r1 := m.s.GetFileTemplates(ctx, fileID)
1888 m.queryLatencies.WithLabelValues("GetFileTemplates").Observe(time.Since(start).Seconds())
1889 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetFileTemplates").Inc()
1890 return r0, r1
1891}
1892
1893func (m queryMetricsStore) GetFilteredInboxNotificationsByUserID(ctx context.Context, arg database.GetFilteredInboxNotificationsByUserIDParams) ([]database.InboxNotification, error) {
1894 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
GetFileTemplatesMethod · 0.65

Tested by

no test coverage detected