feat(census): Add support for multiple metrics

This commit is contained in:
Timothy Messier committed 2024-02-23 15:44:09 +00:00
1 parent 5405a275ab
commit a4b34f67c8
1 file changed
+12 -10
+12 -10
View File
@@ -18,11 +18,12 @@ var (
)
type censusJob struct {
r db.Reader
w db.Writer
lurEnabled bool
agent any
eventCtx context.Context
r db.Reader
w db.Writer
lurEnabled bool
sessionsAgent any
activeUsersAgent any
eventCtx context.Context
}
func newCensusJob(ctx context.Context, lurEnabled bool, r db.Reader, w db.Writer) (*censusJob, error) {
@@ -35,11 +36,12 @@ func newCensusJob(ctx context.Context, lurEnabled bool, r db.Reader, w db.Writer
}
return &censusJob{
r: r,
w: w,
lurEnabled: lurEnabled,
agent: nil,
eventCtx: ctx,
r: r,
w: w,
lurEnabled: lurEnabled,
sessionsAgent: nil,
activeUsersAgent: nil,
eventCtx: ctx,
}, nil
}