Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPStat ¶
type HTTPStat struct {
// contains filtered or unexported fields
}
HTTPStat is the statistics tool for HTTP traffic.
func (*HTTPStat) Status ¶
Status returns HTTPStat Status, It assumes it is called every five seconds. https://github.com/rcrowley/go-metrics/blob/3113b8401b8a98917cde58f8bbd42a1b1c03b1fd/ewma.go#L98-L99
type Status ¶
type Status struct { Count uint64 `yaml:"count"` M1 float64 `yaml:"m1"` M5 float64 `yaml:"m5"` M15 float64 `yaml:"m15"` ErrCount uint64 `yaml:"errCount"` M1Err float64 `yaml:"m1Err"` M5Err float64 `yaml:"m5Err"` M15Err float64 `yaml:"m15Err"` M1ErrPercent float64 `yaml:"m1ErrPercent"` M5ErrPercent float64 `yaml:"m5ErrPercent"` M15ErrPercent float64 `yaml:"m15ErrPercent"` Min uint64 `yaml:"min"` Max uint64 `yaml:"max"` Mean uint64 `yaml:"mean"` P25 float64 `yaml:"p25"` P50 float64 `yaml:"p50"` P75 float64 `yaml:"p75"` P95 float64 `yaml:"p95"` P98 float64 `yaml:"p98"` P99 float64 `yaml:"p99"` P999 float64 `yaml:"p999"` ReqSize uint64 `yaml:"reqSize"` RespSize uint64 `yaml:"respSize"` Codes map[int]uint64 `yaml:"codes"` }
Status contains all status generated by HTTPStat.
Click to show internal directories.
Click to hide internal directories.