Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RoundDuration = time.Millisecond * 1
RoundDuration is the default value used for rounding durations.
Functions ¶
Types ¶
type CallStats ¶
type CallStats struct { Name string `json:"name,omitempty"` Count uint64 `json:"count"` Total float64 `json:"total,omitempty"` Avg float64 `json:"avg,omitempty"` Min float64 `json:"min,omitempty"` Max float64 `json:"max,omitempty"` }
CallStats represents generic stats for call metrics.
type Calls ¶
func (Calls) MarshalJSON ¶
MarshalJSON implements json.Marshaler interface
Click to show internal directories.
Click to hide internal directories.