emetrics

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2025 License: Apache-2.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 APICallsOpts

type APICallsOpts struct {
	Method string
	Path   string
}

type APIResponseLatencyOpts

type APIResponseLatencyOpts struct {
	Method string
	Path   string
}

type DeliveryErrorRate

type DeliveryErrorRate struct {
	Type string
}

type DeliveryLatencyOpts

type DeliveryLatencyOpts struct {
	Type string
}

type OutpostMetrics

type OutpostMetrics interface {
	DeliveryLatency(ctx context.Context, latency time.Duration, opts DeliveryLatencyOpts)
	EventDelivered(ctx context.Context, deliveryEvent *models.DeliveryEvent, ok bool, destinationType string)
	EventPublished(ctx context.Context, event *models.Event)
	EventEligbible(ctx context.Context, event *models.Event)
	APIResponseLatency(ctx context.Context, latency time.Duration, opts APIResponseLatencyOpts)
	APICalls(ctx context.Context, opts APICallsOpts)
}

func New

func New() (OutpostMetrics, error)

Jump to

Keyboard shortcuts

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