mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: wire up usage tracking for managed agents (#19096)
Wires up the usage collector and publisher to coderd. Relates to coder/internal#814
This commit is contained in:
@@ -10,6 +10,8 @@ import (
|
||||
type Inserter interface {
|
||||
// InsertDiscreteUsageEvent writes a discrete usage event to the database
|
||||
// within the given transaction.
|
||||
// The caller context must be authorized to create usage events in the
|
||||
// database.
|
||||
InsertDiscreteUsageEvent(ctx context.Context, tx database.Store, event DiscreteEvent) error
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user