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

Method GetTotalUsageDCManagedAgentsV1

coderd/database/dbauthz/dbauthz.go:4517–4522  ·  view source on GitHub ↗
(ctx context.Context, arg database.GetTotalUsageDCManagedAgentsV1Params)

Source from the content-addressed store, hash-verified

4515}
4516
4517func (q *querier) GetTotalUsageDCManagedAgentsV1(ctx context.Context, arg database.GetTotalUsageDCManagedAgentsV1Params) (int64, error) {
4518 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceUsageEvent); err != nil {
4519 return 0, err
4520 }
4521 return q.db.GetTotalUsageDCManagedAgentsV1(ctx, arg)
4522}
4523
4524func (q *querier) GetUnexpiredLicenses(ctx context.Context) ([]database.License, error) {
4525 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceLicense); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected