routehandler

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricRequest added in v1.5.1

type MetricRequest struct {
	Metric     string  `json:"metric,omitempty"`
	Value      int     `json:"value"`
	Tags       string  `json:"tags"`
	SampleRate float64 `json:"sampleRate"`
}

type RouteHandler

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

RouteHandler as a collection of route handlers

func NewRouteHandler

func NewRouteHandler(
	statsdClient statsdclient.StatsdClientInterface,
	metricPrefix string,
) *RouteHandler

NewRouteHandler creates collection of route handlers

func (*RouteHandler) HandleHeartbeatRequest

func (routeHandler *RouteHandler) HandleHeartbeatRequest(w http.ResponseWriter, r *http.Request)

func (*RouteHandler) HandleMetric

func (routeHandler *RouteHandler) HandleMetric(
	w http.ResponseWriter,
	r *http.Request,
	metricType string,
)

func (*RouteHandler) HandleMetricName added in v1.5.1

func (routeHandler *RouteHandler) HandleMetricName(
	w http.ResponseWriter,
	r *http.Request,
	metricType string,
	metricName string,
)

Jump to

Keyboard shortcuts

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