Versions in this module Expand all Collapse all v0 v0.9.0 Jun 7, 2017 Changes in this version + type HTTPMetrics struct + Methods map[string]*Metrics + Sizes map[int]*Metrics + Status map[int]*Metrics + func (h *HTTPMetrics) AddMethodRequest(method string) + func (h *HTTPMetrics) AddMethodResponse(method string) + func (h *HTTPMetrics) AddSize(size int) + func (h *HTTPMetrics) AddStatus(status int) + func (h *HTTPMetrics) MethodMetrics(method string) *Metrics + func (h *HTTPMetrics) SizeMetrics(size int) *Metrics + func (h *HTTPMetrics) StatusMetrics(status int) *Metrics + type Metrics struct + Latencies map[int64]int + Requests uint64 + Responses uint64 + func (h *Metrics) AddLatency(latency time.Duration) + func (h *Metrics) AddRequest() + func (h *Metrics) AddResponse() + type MetricsManager struct + ID string + Logger logrus.FieldLogger + Segment *analytics.Client + UpTime int64 + func NewMetricsManager(l logrus.FieldLogger) *MetricsManager + func (sw *MetricsManager) CommitTelemetry() + func (sw *MetricsManager) RegisterSegment(version, hash, buildTime string) + func (sw *MetricsManager) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc) + func (sw *MetricsManager) TickKeepAlive() + func (sw *MetricsManager) UpdateUpTime() + type PathMetrics struct + type Snapshot struct + Paths map[string]*PathMetrics + func (s *Snapshot) Path(path string) *PathMetrics