feat(census): Add support for multiple metrics

pull/4445/head
Timothy Messier 2 years ago
parent 5405a275ab
commit a4b34f67c8
No known key found for this signature in database
GPG Key ID: EFD2F184F7600572

@ -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
}

Loading…
Cancel
Save