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

Method UpdateMemoryResourceMonitor

coderd/database/dbauthz/dbauthz.go:6981–6987  ·  view source on GitHub ↗
(ctx context.Context, arg database.UpdateMemoryResourceMonitorParams)

Source from the content-addressed store, hash-verified

6979}
6980
6981func (q *querier) UpdateMemoryResourceMonitor(ctx context.Context, arg database.UpdateMemoryResourceMonitorParams) error {
6982 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceWorkspaceAgentResourceMonitor); err != nil {
6983 return err
6984 }
6985
6986 return q.db.UpdateMemoryResourceMonitor(ctx, arg)
6987}
6988
6989func (q *querier) UpdateNotificationTemplateMethodByID(ctx context.Context, arg database.UpdateNotificationTemplateMethodByIDParams) (database.NotificationTemplate, error) {
6990 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceNotificationTemplate); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected