usageevents

package
v1.3.3-0...-f31c912 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UsageLogger

type UsageLogger struct {
	// Entry is a log entry
	*logrus.Entry
	// contains filtered or unexported fields
}

UsageLogger is a trivial audit log sink that forwards an anonymized subset of audit log events to Teleport.

func New

New creates a new usage event IAuditLog impl, which wraps another IAuditLog impl and forwards a subset of audit log events to the cluster UsageReporter service.

func (*UsageLogger) EmitAuditEvent

func (u *UsageLogger) EmitAuditEvent(ctx context.Context, event apievents.AuditEvent) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL