func (m Metrics) MarshalJSON() ([]byte, error) {
	return json.Marshal(struct {
		ResponseTime float64 `json:"response_time"`
		ResponseSize int     `json:"response_size"`
	}{
		ResponseTime: float64(m.ResponseTime) / float64(time.Millisecond),
		ResponseSize: m.ResponseSize,
	})
}
// MarshalJSON is a custom marshaler which formats a Metrics struct
// with a response time represented as unit of milliseconds
// response time decimal precision is up the nanosecond eg: 1.234ms
MarshalJSON is a custom marshaler which formats a Metrics struct
with a response time represented as unit of milliseconds
response time decimal precision is up the nanosecond eg: 1.234ms
// MarshalJSON is a custom marshaler which formats a Metrics struct // with a response time represented as unit of milliseconds // response time decimal precision is up the nanosecond eg : 1 . 234ms
func (m Metrics) MarshalJSON() ([]byte, error) {
	return json.Marshal(struct {
		ResponseTime float64 `json:"response_time"`
		ResponseSize int     `json:"response_size"`
	}{
		ResponseTime: float64(m.ResponseTime) / float64(time.Millisecond),
		ResponseSize: m.ResponseSize,
	})
}
func ( m Metrics ) MarshalJSON ( ) ( [ ] byte , error ) { return json . Marshal ( struct { ResponseTime float64 `json:"response_time"` ResponseSize int `json:"response_size"` } { ResponseTime : float64 ( m . ResponseTime ) / float64 ( time . Millisecond ) , ResponseSize : m . ResponseSize , } ) }
MarshalJSON is a custom marshaler which formats a Metrics struct
with a response time represented as unit of milliseconds
response time decimal precision is up the nanosecond eg: 1.234ms
MarshalJSON is a custom marshaler which formats a Metrics struct with a response time represented as unit of milliseconds response time decimal precision is up the nanosecond eg : 1 . 234ms