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

Method GetAuthorizedChats

coderd/database/dbmetrics/querymetrics.go:6301–6307  ·  view source on GitHub ↗
(ctx context.Context, arg database.GetChatsParams, prepared rbac.PreparedAuthorized)

Source from the content-addressed store, hash-verified

6299}
6300
6301func (m queryMetricsStore) GetAuthorizedChats(ctx context.Context, arg database.GetChatsParams, prepared rbac.PreparedAuthorized) ([]database.GetChatsRow, error) {
6302 start := time.Now()
6303 r0, r1 := m.s.GetAuthorizedChats(ctx, arg, prepared)
6304 m.queryLatencies.WithLabelValues("GetAuthorizedChats").Observe(time.Since(start).Seconds())
6305 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetAuthorizedChats").Inc()
6306 return r0, r1
6307}
6308
6309func (m queryMetricsStore) GetAuthorizedChatsByChatFileID(ctx context.Context, fileID uuid.UUID, prepared rbac.PreparedAuthorized) ([]database.Chat, error) {
6310 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
GetAuthorizedChatsMethod · 0.65

Tested by

no test coverage detected