Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Metrics ¶
func Metrics(w http.ResponseWriter, r *http.Request)
Types ¶
type MetricsResponse ¶
type MetricsResponse struct { Invalid int Published int ValidationErrors map[string]ValidationError }
func NewMetricsResponse ¶
func NewMetricsResponse() MetricsResponse
func (*MetricsResponse) AddInvalid ¶
func (m *MetricsResponse) AddInvalid(err error, index int)
AddInvalid updates the counts and makes sure there's up to 10 examples per error
Source Files
¶
- metrics.go
- metrics_response.go
Click to show internal directories.
Click to hide internal directories.