Statistics information of the sample group (min, average, max and standard deviation)
()
| 186 | |
| 187 | // Statistics information of the sample group (min, average, max and standard deviation) |
| 188 | func (sg *SampleGroup) Statistics() string { |
| 189 | return fmt.Sprintf("min %s | avg %s | max %s | stddev %s msgs", commaFormat(sg.MinRate()), commaFormat(sg.AvgRate()), commaFormat(sg.MaxRate()), commaFormat(int64(sg.StdDev()))) |
| 190 | } |
| 191 | |
| 192 | // MinRate returns the smallest message rate in the SampleGroup |
| 193 | func (sg *SampleGroup) MinRate() int64 { |