Documentation ¶
Index ¶
- type HttpMetric
- type RealVarz
- func (x *RealVarz) ActiveApps() *stats.ActiveApps
- func (x *RealVarz) CaptureAppStats(b *route.Endpoint, t time.Time)
- func (x *RealVarz) CaptureBadGateway(*http.Request)
- func (x *RealVarz) CaptureBadRequest(*http.Request)
- func (x *RealVarz) CaptureRoutingRequest(b *route.Endpoint, req *http.Request)
- func (x *RealVarz) CaptureRoutingResponse(endpoint *route.Endpoint, response *http.Response, startedAt time.Time, ...)
- func (x *RealVarz) MarshalJSON() ([]byte, error)
- type TaggedHttpMetric
- type Varz
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpMetric ¶
type HttpMetric struct { Requests metrics.Counter Rate metrics.Meter Responses2xx metrics.Counter Responses3xx metrics.Counter Responses4xx metrics.Counter Responses5xx metrics.Counter ResponsesXxx metrics.Counter Latency metrics.Histogram }
func NewHttpMetric ¶
func NewHttpMetric() *HttpMetric
func (*HttpMetric) CaptureRequest ¶
func (x *HttpMetric) CaptureRequest()
func (*HttpMetric) CaptureResponse ¶
func (x *HttpMetric) CaptureResponse(response *http.Response, duration time.Duration)
func (*HttpMetric) MarshalJSON ¶
func (x *HttpMetric) MarshalJSON() ([]byte, error)
type RealVarz ¶
func (*RealVarz) ActiveApps ¶
func (x *RealVarz) ActiveApps() *stats.ActiveApps
func (*RealVarz) CaptureAppStats ¶
func (*RealVarz) CaptureBadGateway ¶
func (*RealVarz) CaptureBadRequest ¶
func (*RealVarz) CaptureRoutingRequest ¶
func (*RealVarz) CaptureRoutingResponse ¶
func (*RealVarz) MarshalJSON ¶
type TaggedHttpMetric ¶
type TaggedHttpMetric map[string]*HttpMetric
func NewTaggedHttpMetric ¶
func NewTaggedHttpMetric() TaggedHttpMetric
func (TaggedHttpMetric) CaptureRequest ¶
func (x TaggedHttpMetric) CaptureRequest(t string)
func (TaggedHttpMetric) CaptureResponse ¶
type Varz ¶
type Varz interface { json.Marshaler ActiveApps() *stats.ActiveApps CaptureBadRequest(req *http.Request) CaptureBadGateway(req *http.Request) CaptureRoutingRequest(b *route.Endpoint, req *http.Request) CaptureRoutingResponse(b *route.Endpoint, res *http.Response, startedAt time.Time, d time.Duration) }
func NewVarz ¶
func NewVarz(r *registry.RouteRegistry) Varz
Click to show internal directories.
Click to hide internal directories.