metrics

package
v0.0.0-...-9b2d5d1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2016 License: Apache-2.0, BSD-2-Clause-Views, BSD-3-Clause, + 1 more Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCompositeReporter

func NewCompositeReporter(first, second reporter.ProxyReporter) reporter.ProxyReporter

Types

type CompositeReporter

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

func (*CompositeReporter) CaptureBadGateway

func (c *CompositeReporter) CaptureBadGateway(req *http.Request)

func (*CompositeReporter) CaptureBadRequest

func (c *CompositeReporter) CaptureBadRequest(req *http.Request)

func (*CompositeReporter) CaptureRoutingRequest

func (c *CompositeReporter) CaptureRoutingRequest(b *route.Endpoint, req *http.Request)

func (*CompositeReporter) CaptureRoutingResponse

func (c *CompositeReporter) CaptureRoutingResponse(b *route.Endpoint, res *http.Response, t time.Time, d time.Duration)

type MetricsReporter

type MetricsReporter struct {
}

func NewMetricsReporter

func NewMetricsReporter() *MetricsReporter

func (*MetricsReporter) CaptureBadGateway

func (m *MetricsReporter) CaptureBadGateway(req *http.Request)

func (*MetricsReporter) CaptureBadRequest

func (m *MetricsReporter) CaptureBadRequest(req *http.Request)

func (*MetricsReporter) CaptureLookupTime

func (c *MetricsReporter) CaptureLookupTime(t time.Duration)

func (*MetricsReporter) CaptureRegistryMessage

func (c *MetricsReporter) CaptureRegistryMessage(msg reporter.ComponentTagged)

func (*MetricsReporter) CaptureRouteStats

func (c *MetricsReporter) CaptureRouteStats(totalRoutes int, msSinceLastUpdate uint64)

func (*MetricsReporter) CaptureRoutingRequest

func (m *MetricsReporter) CaptureRoutingRequest(b *route.Endpoint, req *http.Request)

func (*MetricsReporter) CaptureRoutingResponse

func (m *MetricsReporter) CaptureRoutingResponse(b *route.Endpoint, res *http.Response, t time.Time, d time.Duration)

Directories

Path Synopsis
fakes
This file was generated by counterfeiter This file was generated by counterfeiter
This file was generated by counterfeiter This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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