Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
Reporter holds cached metric objects to report autoscaler metrics
func NewStatsReporter ¶
func NewStatsReporter(ns, service, config, rev string) (*Reporter, error)
NewStatsReporter creates a reporter that collects and reports queue proxy metrics
func (*Reporter) ReportRequestCount ¶
func (r *Reporter) ReportRequestCount(responseCode int, v int64) error
ReportRequestCount captures request count metric with value v.
func (*Reporter) ReportResponseTime ¶
func (r *Reporter) ReportResponseTime(responseCode int, d time.Duration) error
ReportResponseTime captures response time requests
type StatsReporter ¶
type StatsReporter interface {
ReportRequestCount(responseCode int, v int64) error
ReportResponseTime(responseCode int, d time.Duration) error
}
StatsReporter defines the interface for sending queue-proxy metrics
Click to show internal directories.
Click to hide internal directories.