routehandler

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CountRequest

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

type GaugeRequest

type GaugeRequest struct {
	Value int    `json:"value,omitempty"`
	Tags  string `json:"tags,omitempty"`
}

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,
	metricKey string,
)

type SetRequest

type SetRequest struct {
	Value int    `json:"value,omitempty"`
	Tags  string `json:"tags,omitempty"`
}

type TimingRequest

type TimingRequest struct {
	Value      int64   `json:"value,omitempty"`
	Tags       string  `json:"tags,omitempty"`
	SampleRate float64 `json:"sampleRate"`
}

Jump to

Keyboard shortcuts

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