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

Method FetchVolumesResourceMonitorsByAgentID

coderd/database/querier.go:239–239  ·  view source on GitHub ↗
(ctx context.Context, agentID uuid.UUID)

Source from the content-addressed store, hash-verified

237 // This is used to build up the notification_message's JSON payload.
238 FetchNewMessageMetadata(ctx context.Context, arg FetchNewMessageMetadataParams) (FetchNewMessageMetadataRow, error)
239 FetchVolumesResourceMonitorsByAgentID(ctx context.Context, agentID uuid.UUID) ([]WorkspaceAgentVolumeResourceMonitor, error)
240 FetchVolumesResourceMonitorsUpdatedAfter(ctx context.Context, updatedAt time.Time) ([]WorkspaceAgentVolumeResourceMonitor, error)
241 // Marks orphaned in-progress rows as interrupted so they do not stay
242 // in a non-terminal state forever. The NOT IN list must match the

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

Tested by 3

TestResourcesMonitorMethod · 0.52