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

Method GetChatCostSummary

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

Aggregate cost summary for a single user within a date range. Only counts assistant-role messages.

(ctx context.Context, arg GetChatCostSummaryParams)

Source from the content-addressed store, hash-verified

353 // Aggregate cost summary for a single user within a date range.
354 // Only counts assistant-role messages.
355 GetChatCostSummary(ctx context.Context, arg GetChatCostSummaryParams) (GetChatCostSummaryRow, error)
356 // GetChatDebugLoggingAllowUsers returns the runtime admin setting that
357 // allows users to opt into chat debug logging when the deployment does
358 // not already force debug logging on globally.

Callers 9

TestChatCostSummaryFunction · 0.65
chatCostSummaryMethod · 0.65
GetChatCostSummaryMethod · 0.65
GetChatCostSummaryMethod · 0.65
TestChatsMethod · 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