feat(census): Add support for multiple metrics
This commit is contained in:
1 file changed
+12
-10
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user