helpers

package
v0.0.0-...-08e0038 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 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 RequestMetrics

type RequestMetrics interface {
	IncrementRequestsStartedCounter(requestType string, delta int)
	IncrementRequestsSucceededCounter(requestType string, delta int)
	IncrementRequestsFailedCounter(requestType string, delta int)
	IncrementRequestsInFlightCounter(requestType string, delta int)
	DecrementRequestsInFlightCounter(requestType string, delta int)
	IncrementRequestsCancelledCounter(requestType string, delta int)
	UpdateLatency(requestType string, dur time.Duration)
}

type RequestMetricsNotifier

type RequestMetricsNotifier struct {
	// contains filtered or unexported fields
}

func NewRequestMetricsNotifier

func NewRequestMetricsNotifier(logger lager.Logger, clock clock.Clock, metronClient loggingclient.IngressClient, metricsInterval time.Duration, requestTypes []string) *RequestMetricsNotifier

func (*RequestMetricsNotifier) DecrementRequestsInFlightCounter

func (notifier *RequestMetricsNotifier) DecrementRequestsInFlightCounter(requestType string, delta int)

func (*RequestMetricsNotifier) IncrementRequestsCancelledCounter

func (notifier *RequestMetricsNotifier) IncrementRequestsCancelledCounter(requestType string, delta int)

func (*RequestMetricsNotifier) IncrementRequestsFailedCounter

func (notifier *RequestMetricsNotifier) IncrementRequestsFailedCounter(requestType string, delta int)

func (*RequestMetricsNotifier) IncrementRequestsInFlightCounter

func (notifier *RequestMetricsNotifier) IncrementRequestsInFlightCounter(requestType string, delta int)

func (*RequestMetricsNotifier) IncrementRequestsStartedCounter

func (notifier *RequestMetricsNotifier) IncrementRequestsStartedCounter(requestType string, delta int)

func (*RequestMetricsNotifier) IncrementRequestsSucceededCounter

func (notifier *RequestMetricsNotifier) IncrementRequestsSucceededCounter(requestType string, delta int)

func (*RequestMetricsNotifier) Run

func (notifier *RequestMetricsNotifier) Run(signals <-chan os.Signal, ready chan<- struct{}) error

func (*RequestMetricsNotifier) UpdateLatency

func (notifier *RequestMetricsNotifier) UpdateLatency(requestType string, dur time.Duration)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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