metric

package
v2.0.0-beta.13 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	OrgID         influxdb.ID
	Endpoint      string
	RequestBytes  int
	ResponseBytes int
	Status        int
}

Event represents the meta data associated with an API request.

type EventRecorder

type EventRecorder interface {
	Record(ctx context.Context, e Event)
}

EventRecorder records meta-data associated with http requests.

type NopEventRecorder

type NopEventRecorder struct{}

NopEventRecorder never records events.

func (*NopEventRecorder) Record

func (n *NopEventRecorder) Record(ctx context.Context, e Event)

Record never records events.

Jump to

Keyboard shortcuts

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