skipper: github.com/zalando/skipper/metrics/metricstest Index | Files

package metricstest

import "github.com/zalando/skipper/metrics/metricstest"

Index

Package Files

metricsmock.go

type MockMetrics Uses

type MockMetrics struct {
    Prefix string

    Now time.Time
    // contains filtered or unexported fields
}

func (*MockMetrics) Gauge Uses

func (m *MockMetrics) Gauge(key string) (v float64, ok bool)

func (*MockMetrics) IncCounter Uses

func (m *MockMetrics) IncCounter(key string)

func (*MockMetrics) IncCounterBy Uses

func (m *MockMetrics) IncCounterBy(key string, value int64)

func (*MockMetrics) IncErrorsBackend Uses

func (*MockMetrics) IncErrorsBackend(routeId string)

func (*MockMetrics) IncErrorsStreaming Uses

func (*MockMetrics) IncErrorsStreaming(routeId string)

func (*MockMetrics) IncFloatCounterBy Uses

func (m *MockMetrics) IncFloatCounterBy(key string, value float64)

func (*MockMetrics) IncRoutingFailures Uses

func (*MockMetrics) IncRoutingFailures()

func (*MockMetrics) MeasureAllFiltersRequest Uses

func (*MockMetrics) MeasureAllFiltersRequest(routeId string, start time.Time)

func (*MockMetrics) MeasureAllFiltersResponse Uses

func (*MockMetrics) MeasureAllFiltersResponse(routeId string, start time.Time)

func (*MockMetrics) MeasureBackend Uses

func (*MockMetrics) MeasureBackend(routeId string, start time.Time)

func (*MockMetrics) MeasureBackend5xx Uses

func (*MockMetrics) MeasureBackend5xx(t time.Time)

func (*MockMetrics) MeasureBackendHost Uses

func (*MockMetrics) MeasureBackendHost(routeBackendHost string, start time.Time)

func (*MockMetrics) MeasureFilterRequest Uses

func (*MockMetrics) MeasureFilterRequest(filterName string, start time.Time)

func (*MockMetrics) MeasureFilterResponse Uses

func (*MockMetrics) MeasureFilterResponse(filterName string, start time.Time)

func (*MockMetrics) MeasureResponse Uses

func (*MockMetrics) MeasureResponse(code int, method string, routeId string, start time.Time)

func (*MockMetrics) MeasureRouteLookup Uses

func (*MockMetrics) MeasureRouteLookup(start time.Time)

func (*MockMetrics) MeasureServe Uses

func (*MockMetrics) MeasureServe(routeId, host, method string, code int, start time.Time)

func (*MockMetrics) MeasureSince Uses

func (m *MockMetrics) MeasureSince(key string, start time.Time)

func (*MockMetrics) RegisterHandler Uses

func (*MockMetrics) RegisterHandler(path string, handler *http.ServeMux)

func (*MockMetrics) UpdateGauge Uses

func (m *MockMetrics) UpdateGauge(key string, value float64)

func (*MockMetrics) WithCounters Uses

func (m *MockMetrics) WithCounters(f func(counters map[string]int64))

func (*MockMetrics) WithFloatCounters Uses

func (m *MockMetrics) WithFloatCounters(f func(floatCounters map[string]float64))

func (*MockMetrics) WithGauges Uses

func (m *MockMetrics) WithGauges(f func(map[string]float64))

func (*MockMetrics) WithMeasures Uses

func (m *MockMetrics) WithMeasures(f func(measures map[string][]time.Duration))

Package metricstest imports 3 packages (graph). Updated 2019-11-17. Refresh now. Tools for package owners.