usageevents

package
v11.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 8 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