Documentation
¶
Index ¶
- Constants
- func BetweenTime(t, start, end string) bool
- func DiffCountAll(from, to map[string]int) map[string]string
- func StringTimeEqualTime(l string, r time.Time) bool
- func StringTimeGreaterThanOrEqualTime(l string, r time.Time) bool
- func StringTimeGreaterThanTime(l string, r time.Time) bool
- func StringTimeLessThanOrEqualTime(l string, r time.Time) bool
- func StringTimeLessThanTime(l string, r time.Time) bool
- func StringTimeNotEqualTime(l string, r time.Time) bool
- func TimeAgo(s string) time.Time
- func TimeStringEqualTime(l time.Time, r string) bool
- func TimeStringGreaterThanOrEqualTime(l time.Time, r string) bool
- func TimeStringGreaterThanTime(l time.Time, r string) bool
- func TimeStringLessThanOrEqualTime(l time.Time, r string) bool
- func TimeStringLessThanTime(l time.Time, r string) bool
- func TimeStringNotEqualTime(l time.Time, r string) bool
- func TraceDiffCountAll(from, to map[string]int) map[string]string
- type Differ
- func (d *Differ) DiffAvgRequestBodyBytes() string
- func (d *Differ) DiffAvgResponseBodyBytes() string
- func (d *Differ) DiffAvgResponseTime() string
- func (d *Differ) DiffCnt() string
- func (d *Differ) DiffMaxRequestBodyBytes() string
- func (d *Differ) DiffMaxResponseBodyBytes() string
- func (d *Differ) DiffMaxResponseTime() string
- func (d *Differ) DiffMinRequestBodyBytes() string
- func (d *Differ) DiffMinResponseBodyBytes() string
- func (d *Differ) DiffMinResponseTime() string
- func (d *Differ) DiffPNRequestBodyBytes(n int) string
- func (d *Differ) DiffPNResponseBodyBytes(n int) string
- func (d *Differ) DiffPNResponseTime(n int) string
- func (d *Differ) DiffStatus1xx() string
- func (d *Differ) DiffStatus2xx() string
- func (d *Differ) DiffStatus3xx() string
- func (d *Differ) DiffStatus4xx() string
- func (d *Differ) DiffStatus5xx() string
- func (d *Differ) DiffStddevRequestBodyBytes() string
- func (d *Differ) DiffStddevResponseBodyBytes() string
- func (d *Differ) DiffStddevResponseTime() string
- func (d *Differ) DiffSumRequestBodyBytes() string
- func (d *Differ) DiffSumResponseBodyBytes() string
- func (d *Differ) DiffSumResponseTime() string
- type ExpEval
- type ExpEvalEnv
- type Filter
- type GlobalStat
- type HTTPStat
- func (hs *HTTPStat) AvgRequestBodyBytes() float64
- func (hs *HTTPStat) AvgResponseBodyBytes() float64
- func (hs *HTTPStat) AvgResponseTime() float64
- func (hs *HTTPStat) Count() int
- func (hs *HTTPStat) MaxRequestBodyBytes() float64
- func (hs *HTTPStat) MaxResponseBodyBytes() float64
- func (hs *HTTPStat) MaxResponseTime() float64
- func (hs *HTTPStat) MinRequestBodyBytes() float64
- func (hs *HTTPStat) MinResponseBodyBytes() float64
- func (hs *HTTPStat) MinResponseTime() float64
- func (hs *HTTPStat) PNRequestBodyBytes(n int) float64
- func (hs *HTTPStat) PNResponseBodyBytes(n int) float64
- func (hs *HTTPStat) PNResponseTime(n int) float64
- func (hs *HTTPStat) Set(status int, restime, reqBodyBytes, resBodyBytes float64)
- func (hs *HTTPStat) StddevRequestBodyBytes() float64
- func (hs *HTTPStat) StddevResponseBodyBytes() float64
- func (hs *HTTPStat) StddevResponseTime() float64
- func (hs *HTTPStat) StrCount() string
- func (hs *HTTPStat) StrStatus1xx() string
- func (hs *HTTPStat) StrStatus2xx() string
- func (hs *HTTPStat) StrStatus3xx() string
- func (hs *HTTPStat) StrStatus4xx() string
- func (hs *HTTPStat) StrStatus5xx() string
- func (hs *HTTPStat) SumRequestBodyBytes() float64
- func (hs *HTTPStat) SumResponseBodyBytes() float64
- func (hs *HTTPStat) SumResponseTime() float64
- func (hs *HTTPStat) UriWithOptions(decode bool) string
- type HTTPStats
- func (hs *HTTPStats) CountAll() map[string]int
- func (hs *HTTPStats) CountUris() int
- func (hs *HTTPStats) DoFilter(pstat *parsers.ParsedHTTPStat) (bool, error)
- func (hs *HTTPStats) DumpStats(w io.Writer) error
- func (hs *HTTPStats) InitFilter(options *options.Options) error
- func (hs *HTTPStats) LoadStats(r io.Reader) error
- func (hs *HTTPStats) Set(uri, method string, status int, restime, resBodyBytes, reqBodyBytes float64)
- func (hs *HTTPStats) SetOptions(options *options.Options)
- func (hs *HTTPStats) SetSortOptions(options *SortOptions)
- func (hs *HTTPStats) SetURIMatchingGroups(groups []string) error
- func (hs *HTTPStats) Sort(sortOptions *SortOptions, reverse bool)
- func (hs *HTTPStats) SortAvgRequestBodyBytes(reverse bool)
- func (hs *HTTPStats) SortAvgResponseBodyBytes(reverse bool)
- func (hs *HTTPStats) SortAvgResponseTime(reverse bool)
- func (hs *HTTPStats) SortCount(reverse bool)
- func (hs *HTTPStats) SortMaxRequestBodyBytes(reverse bool)
- func (hs *HTTPStats) SortMaxResponseBodyBytes(reverse bool)
- func (hs *HTTPStats) SortMaxResponseTime(reverse bool)
- func (hs *HTTPStats) SortMethod(reverse bool)
- func (hs *HTTPStats) SortMinRequestBodyBytes(reverse bool)
- func (hs *HTTPStats) SortMinResponseBodyBytes(reverse bool)
- func (hs *HTTPStats) SortMinResponseTime(reverse bool)
- func (hs *HTTPStats) SortPNRequestBodyBytes(reverse bool)
- func (hs *HTTPStats) SortPNResponseBodyBytes(reverse bool)
- func (hs *HTTPStats) SortPNResponseTime(reverse bool)
- func (hs *HTTPStats) SortStddevRequestBodyBytes(reverse bool)
- func (hs *HTTPStats) SortStddevResponseBodyBytes(reverse bool)
- func (hs *HTTPStats) SortStddevResponseTime(reverse bool)
- func (hs *HTTPStats) SortSumRequestBodyBytes(reverse bool)
- func (hs *HTTPStats) SortSumResponseBodyBytes(reverse bool)
- func (hs *HTTPStats) SortSumResponseTime(reverse bool)
- func (hs *HTTPStats) SortUri(reverse bool)
- func (hs *HTTPStats) SortWithOptions()
- func (hs *HTTPStats) Stats() []*HTTPStat
- type OptLimit
- type PrintOptions
- type Printer
- func (p *Printer) GenerateFooter(counts map[string]int) []string
- func (p *Printer) GenerateFooterWithDiff(countsFrom, countsTo map[string]int) []string
- func (p *Printer) GenerateLine(s *HTTPStat, quoteUri bool) []string
- func (p *Printer) GenerateLineWithDiff(from, to *HTTPStat, quoteUri bool) []string
- func (p *Printer) Print(hs, hsTo *HTTPStats)
- func (p *Printer) SetFormat(format string)
- func (p *Printer) SetHeaders(headers []string)
- func (p *Printer) SetWriter(w io.Writer)
- func (p *Printer) Validate() error
- type RequestDetail
- type RequestDetailStat
- func (ts *RequestDetailStat) AvgRequestBodyBytes() float64
- func (ts *RequestDetailStat) AvgResponseBodyBytes() float64
- func (ts *RequestDetailStat) AvgResponseTime() float64
- func (ts *RequestDetailStat) Count() int
- func (ts *RequestDetailStat) MaxRequestBodyBytes() float64
- func (ts *RequestDetailStat) MaxResponseBodyBytes() float64
- func (ts *RequestDetailStat) MaxResponseTime() float64
- func (ts *RequestDetailStat) MinRequestBodyBytes() float64
- func (ts *RequestDetailStat) MinResponseBodyBytes() float64
- func (ts *RequestDetailStat) MinResponseTime() float64
- func (ts *RequestDetailStat) PNRequestBodyBytes(n int) float64
- func (ts *RequestDetailStat) PNResponseBodyBytes(n int) float64
- func (ts *RequestDetailStat) PNResponseTime(n int) float64
- func (ts *RequestDetailStat) Set(requestDetail *RequestDetail)
- func (ts *RequestDetailStat) StddevRequestBodyBytes() float64
- func (ts *RequestDetailStat) StddevResponseBodyBytes() float64
- func (ts *RequestDetailStat) StddevResponseTime() float64
- func (ts *RequestDetailStat) StrCount() string
- func (ts *RequestDetailStat) SumRequestBodyBytes() float64
- func (ts *RequestDetailStat) SumResponseBodyBytes() float64
- func (ts *RequestDetailStat) SumResponseTime() float64
- type ScenarioStat
- func (ts *ScenarioStat) AvgRequestBodyBytes() float64
- func (ts *ScenarioStat) AvgResponseBodyBytes() float64
- func (ts *ScenarioStat) AvgResponseTime() float64
- func (ts *ScenarioStat) Count() int
- func (ts *ScenarioStat) MaxRequestBodyBytes() float64
- func (ts *ScenarioStat) MaxResponseBodyBytes() float64
- func (ts *ScenarioStat) MaxResponseTime() float64
- func (ts *ScenarioStat) MinRequestBodyBytes() float64
- func (ts *ScenarioStat) MinResponseBodyBytes() float64
- func (ts *ScenarioStat) MinResponseTime() float64
- func (ts *ScenarioStat) PNRequestBodyBytes(n int) float64
- func (ts *ScenarioStat) PNResponseBodyBytes(n int) float64
- func (ts *ScenarioStat) PNResponseTime(n int) float64
- func (ts *ScenarioStat) RandomTraceID() string
- func (ts *ScenarioStat) Set(traceID string, requestDetails []*RequestDetail)
- func (ts *ScenarioStat) StddevRequestBodyBytes() float64
- func (ts *ScenarioStat) StddevResponseBodyBytes() float64
- func (ts *ScenarioStat) StddevResponseTime() float64
- func (ts *ScenarioStat) StrCount() string
- func (ts *ScenarioStat) SumRequestBodyBytes() float64
- func (ts *ScenarioStat) SumResponseBodyBytes() float64
- func (ts *ScenarioStat) SumResponseTime() float64
- func (ts *ScenarioStat) UriWithOptions(decode bool) string
- type SortOptions
- type TraceDiffer
- func (d *TraceDiffer) DiffAvgRequestBodyBytes() string
- func (d *TraceDiffer) DiffAvgResponseBodyBytes() string
- func (d *TraceDiffer) DiffAvgResponseTime() string
- func (d *TraceDiffer) DiffCnt() string
- func (d *TraceDiffer) DiffMaxRequestBodyBytes() string
- func (d *TraceDiffer) DiffMaxResponseBodyBytes() string
- func (d *TraceDiffer) DiffMaxResponseTime() string
- func (d *TraceDiffer) DiffMinRequestBodyBytes() string
- func (d *TraceDiffer) DiffMinResponseBodyBytes() string
- func (d *TraceDiffer) DiffMinResponseTime() string
- func (d *TraceDiffer) DiffPNRequestBodyBytes(n int) string
- func (d *TraceDiffer) DiffPNResponseBodyBytes(n int) string
- func (d *TraceDiffer) DiffPNResponseTime(n int) string
- func (d *TraceDiffer) DiffStddevRequestBodyBytes() string
- func (d *TraceDiffer) DiffStddevResponseBodyBytes() string
- func (d *TraceDiffer) DiffStddevResponseTime() string
- func (d *TraceDiffer) DiffSumRequestBodyBytes() string
- func (d *TraceDiffer) DiffSumResponseBodyBytes() string
- func (d *TraceDiffer) DiffSumResponseTime() string
- type TracePrintOptions
- type TracePrinter
- func (p *TracePrinter) GenerateTraceFooter(counts map[string]int) []string
- func (p *TracePrinter) GenerateTraceFooterWithDiff(countsFrom, countsTo map[string]int) []string
- func (p *TracePrinter) GenerateTraceLine(s *ScenarioStat, quoteUri bool) []string
- func (p *TracePrinter) GenerateTraceLineWithDiff(from, to *ScenarioStat, quoteUri bool) []string
- func (p *TracePrinter) Print(ts, tsTo *TraceStats)
- func (p *TracePrinter) SetFormat(format string)
- func (p *TracePrinter) SetHeaders(headers []string)
- func (p *TracePrinter) SetWriter(w io.Writer)
- func (p *TracePrinter) Validate() error
- type TraceRequestDetailsMap
- type TraceStats
- func (ts *TraceStats) AggregateTrace()
- func (ts *TraceStats) AppendTrace(traceID, uri, method string, status int, ...)
- func (ts *TraceStats) CountAll() map[string]int
- func (ts *TraceStats) CountUris() int
- func (ts *TraceStats) DoFilter(pstat *parsers.ParsedHTTPStat) (bool, error)
- func (ts *TraceStats) DrawAverageHR() string
- func (ts *TraceStats) DrawAverageHeader() string
- func (ts *TraceStats) DrawCountHR() string
- func (ts *TraceStats) DrawCountHeader() string
- func (ts *TraceStats) DrawMaxHR() string
- func (ts *TraceStats) DrawMaxHeader() string
- func (ts *TraceStats) DrawMedianHR() string
- func (ts *TraceStats) DrawMedianHeader() string
- func (ts *TraceStats) DrawMinHR() string
- func (ts *TraceStats) DrawMinHeader() string
- func (ts *TraceStats) DrawP95HR() string
- func (ts *TraceStats) DrawP95Header() string
- func (ts *TraceStats) DrawRPCountHR() string
- func (ts *TraceStats) DrawRPCountHeader() string
- func (ts *TraceStats) DrawRankHR() string
- func (ts *TraceStats) DrawRankHeader() string
- func (ts *TraceStats) DrawRateHR() string
- func (ts *TraceStats) DrawRateHeader() string
- func (ts *TraceStats) DrawRequestHR() string
- func (ts *TraceStats) DrawRequestHeader() string
- func (ts *TraceStats) DrawScenarioIDHR() string
- func (ts *TraceStats) DrawScenarioIDHeader() string
- func (ts *TraceStats) DrawSumHR() string
- func (ts *TraceStats) DrawSumHeader() string
- func (ts *TraceStats) DumpStats(w io.Writer) error
- func (ts *TraceStats) FormatAverage(v float64) string
- func (ts *TraceStats) FormatCount(v int) string
- func (ts *TraceStats) FormatMax(v float64) string
- func (ts *TraceStats) FormatMedian(v float64) string
- func (ts *TraceStats) FormatMin(v float64) string
- func (ts *TraceStats) FormatP95(v float64) string
- func (ts *TraceStats) FormatRPCount(v float64) string
- func (ts *TraceStats) FormatRank(v int) string
- func (ts *TraceStats) FormatRate(v float64) string
- func (ts *TraceStats) FormatRequest(method, uri string, status int) string
- func (ts *TraceStats) FormatScenarioID(v string) string
- func (ts *TraceStats) FormatSum(v float64) string
- func (ts *TraceStats) InitFilter(options *options.Options) error
- func (ts *TraceStats) SetOptions(options *options.Options)
- func (ts *TraceStats) SetSortOptions(options *SortOptions)
- func (ts *TraceStats) SetURIMatchingGroups(groups []string) error
- func (ts *TraceStats) Sort(sortOptions *SortOptions, reverse bool)
- func (ts *TraceStats) SortAvgRequestBodyBytes(reverse bool)
- func (ts *TraceStats) SortAvgResponseBodyBytes(reverse bool)
- func (ts *TraceStats) SortAvgResponseTime(reverse bool)
- func (ts *TraceStats) SortCount(reverse bool)
- func (ts *TraceStats) SortMaxRequestBodyBytes(reverse bool)
- func (ts *TraceStats) SortMaxResponseBodyBytes(reverse bool)
- func (ts *TraceStats) SortMaxResponseTime(reverse bool)
- func (ts *TraceStats) SortMinRequestBodyBytes(reverse bool)
- func (ts *TraceStats) SortMinResponseBodyBytes(reverse bool)
- func (ts *TraceStats) SortMinResponseTime(reverse bool)
- func (ts *TraceStats) SortPNRequestBodyBytes(reverse bool)
- func (ts *TraceStats) SortPNResponseBodyBytes(reverse bool)
- func (ts *TraceStats) SortPNResponseTime(reverse bool)
- func (ts *TraceStats) SortStddevRequestBodyBytes(reverse bool)
- func (ts *TraceStats) SortStddevResponseBodyBytes(reverse bool)
- func (ts *TraceStats) SortStddevResponseTime(reverse bool)
- func (ts *TraceStats) SortSumRequestBodyBytes(reverse bool)
- func (ts *TraceStats) SortSumResponseBodyBytes(reverse bool)
- func (ts *TraceStats) SortSumResponseTime(reverse bool)
- func (ts *TraceStats) SortWithOptions()
- func (ts *TraceStats) TrimAfterLimit()
Constants ¶
View Source
const ( SortCount = "Count" SortUri = "Uri" SortMethod = "Method" SortMaxResponseTime = "MaxResponseTime" SortMinResponseTime = "MinResponseTime" SortSumResponseTime = "SumResponseTime" SortAvgResponseTime = "AvgResponseTime" SortPNResponseTime = "PNResponseTime" SortStddevResponseTime = "StddevResponseTime" SortMaxRequestBodyBytes = "MaxRequestBodyBytes" SortMinRequestBodyBytes = "MinRequestBodyBytes" SortSumRequestBodyBytes = "SumRequestBodyBytes" SortAvgRequestBodyBytes = "AvgRequestBodyBytes" SortPNRequestBodyBytes = "PNRequestBodyBytes" SortStddevRequestBodyBytes = "StddevRequestBodyBytes" SortMaxResponseBodyBytes = "MaxResponseBodyBytes" SortMinResponseBodyBytes = "MinResponseBodyBytes" SortSumResponseBodyBytes = "SumResponseBodyBytes" SortAvgResponseBodyBytes = "AvgResponseBodyBytes" SortPNResponseBodyBytes = "PNResponseBodyBytes" SortStddevResponseBodyBytes = "StddevResponseBodyBytes" )
Variables ¶
This section is empty.
Functions ¶
func BetweenTime ¶
func StringTimeGreaterThanOrEqualTime ¶
>=
func StringTimeLessThanOrEqualTime ¶
<=
func TimeStringGreaterThanOrEqualTime ¶
>=
func TimeStringLessThanOrEqualTime ¶
<=
Types ¶
type Differ ¶
func (*Differ) DiffAvgRequestBodyBytes ¶
func (*Differ) DiffAvgResponseBodyBytes ¶
func (*Differ) DiffAvgResponseTime ¶
func (*Differ) DiffMaxResponseBodyBytes ¶
response
func (*Differ) DiffMaxResponseTime ¶
func (*Differ) DiffMinRequestBodyBytes ¶
func (*Differ) DiffMinResponseBodyBytes ¶
func (*Differ) DiffMinResponseTime ¶
func (*Differ) DiffPNRequestBodyBytes ¶
func (*Differ) DiffPNResponseBodyBytes ¶
func (*Differ) DiffPNResponseTime ¶
func (*Differ) DiffStatus1xx ¶
func (*Differ) DiffStatus2xx ¶
func (*Differ) DiffStatus3xx ¶
func (*Differ) DiffStatus4xx ¶
func (*Differ) DiffStatus5xx ¶
func (*Differ) DiffStddevRequestBodyBytes ¶
func (*Differ) DiffStddevResponseBodyBytes ¶
func (*Differ) DiffStddevResponseTime ¶
func (*Differ) DiffSumRequestBodyBytes ¶
func (*Differ) DiffSumResponseBodyBytes ¶
func (*Differ) DiffSumResponseTime ¶
type ExpEvalEnv ¶
type ExpEvalEnv struct {
Uri string
Method string
Time string
ResponseTime float64
BodyBytes float64
Status int
TimeStringEqualTime func(l time.Time, r string) bool
TimeStringNotEqualTime func(l time.Time, r string) bool
TimeStringGreaterThanTime func(l time.Time, r string) bool
TimeStringGreaterThanOrEqualTime func(l time.Time, r string) bool
TimeStringLessThanTime func(l time.Time, r string) bool
TimeStringLessThanOrEqualTime func(l time.Time, r string) bool
StringTimeEqualTime func(l string, r time.Time) bool
StringTimeNotEqualTime func(l string, r time.Time) bool
StringTimeGreaterThanTime func(l string, r time.Time) bool
StringTimeGreaterThanOrEqualTime func(l string, r time.Time) bool
StringTimeLessThanTime func(l string, r time.Time) bool
StringTimeLessThanOrEqualTime func(l string, r time.Time) bool
TimeAgo func(s string) time.Time
BetweenTime func(t, start, end string) bool
}
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
func (*Filter) InitParseTime ¶
type GlobalStat ¶ added in v0.0.8
type GlobalStat struct {
Cnt int
ResponseTime *responseTime
RequestBodyBytes *bodyBytes
ResponseBodyBytes *bodyBytes
}
func (*GlobalStat) Set ¶ added in v0.0.8
func (ts *GlobalStat) Set(requestDetails []*RequestDetail)
type HTTPStat ¶
type HTTPStat struct {
Uri string `yaml:"uri"`
Cnt int `yaml:"count"`
Status1xx int `yaml:"status1xx"`
Status2xx int `yaml:"status2xx"`
Status3xx int `yaml:"status3xx"`
Status4xx int `yaml:"status4xx"`
Status5xx int `yaml:"status5xx"`
Method string `yaml:"method"`
ResponseTime *responseTime `yaml:"response_time"`
RequestBodyBytes *bodyBytes `yaml:"request_body_bytes"`
ResponseBodyBytes *bodyBytes `yaml:"response_body_bytes"`
Time string
}
func (*HTTPStat) AvgRequestBodyBytes ¶
func (*HTTPStat) AvgResponseBodyBytes ¶
func (*HTTPStat) AvgResponseTime ¶
func (*HTTPStat) MaxResponseTime ¶
func (*HTTPStat) MinRequestBodyBytes ¶
func (*HTTPStat) MinResponseBodyBytes ¶
func (*HTTPStat) MinResponseTime ¶
func (*HTTPStat) PNRequestBodyBytes ¶
func (*HTTPStat) PNResponseBodyBytes ¶
func (*HTTPStat) PNResponseTime ¶
func (*HTTPStat) StddevRequestBodyBytes ¶
func (*HTTPStat) StddevResponseBodyBytes ¶
func (*HTTPStat) StddevResponseTime ¶
func (*HTTPStat) StrStatus1xx ¶
func (*HTTPStat) StrStatus2xx ¶
func (*HTTPStat) StrStatus3xx ¶
func (*HTTPStat) StrStatus4xx ¶
func (*HTTPStat) StrStatus5xx ¶
func (*HTTPStat) SumRequestBodyBytes ¶
func (*HTTPStat) SumResponseBodyBytes ¶
func (*HTTPStat) SumResponseTime ¶
func (*HTTPStat) UriWithOptions ¶
type HTTPStats ¶
type HTTPStats struct {
// contains filtered or unexported fields
}
func NewHTTPStats ¶
func (*HTTPStats) DoFilter ¶
func (hs *HTTPStats) DoFilter(pstat *parsers.ParsedHTTPStat) (bool, error)
func (*HTTPStats) SetOptions ¶
func (*HTTPStats) SetSortOptions ¶
func (hs *HTTPStats) SetSortOptions(options *SortOptions)
func (*HTTPStats) SetURIMatchingGroups ¶
func (*HTTPStats) Sort ¶
func (hs *HTTPStats) Sort(sortOptions *SortOptions, reverse bool)
func (*HTTPStats) SortAvgRequestBodyBytes ¶
func (*HTTPStats) SortAvgResponseBodyBytes ¶
func (*HTTPStats) SortAvgResponseTime ¶
func (*HTTPStats) SortMaxRequestBodyBytes ¶
request
func (*HTTPStats) SortMaxResponseBodyBytes ¶
response
func (*HTTPStats) SortMaxResponseTime ¶
func (*HTTPStats) SortMethod ¶
func (*HTTPStats) SortMinRequestBodyBytes ¶
func (*HTTPStats) SortMinResponseBodyBytes ¶
func (*HTTPStats) SortMinResponseTime ¶
func (*HTTPStats) SortPNRequestBodyBytes ¶
func (*HTTPStats) SortPNResponseBodyBytes ¶
func (*HTTPStats) SortPNResponseTime ¶
func (*HTTPStats) SortStddevRequestBodyBytes ¶
func (*HTTPStats) SortStddevResponseBodyBytes ¶
func (*HTTPStats) SortStddevResponseTime ¶
func (*HTTPStats) SortSumRequestBodyBytes ¶
func (*HTTPStats) SortSumResponseBodyBytes ¶
func (*HTTPStats) SortSumResponseTime ¶
func (*HTTPStats) SortWithOptions ¶
func (hs *HTTPStats) SortWithOptions()
type PrintOptions ¶
type PrintOptions struct {
// contains filtered or unexported fields
}
func NewPrintOptions ¶
func NewPrintOptions(noHeaders, showFooters, decodeUri bool, paginationLimit int) *PrintOptions
type Printer ¶
type Printer struct {
// contains filtered or unexported fields
}
func NewPrinter ¶
func (*Printer) GenerateFooterWithDiff ¶
func (*Printer) GenerateLineWithDiff ¶
func (*Printer) SetHeaders ¶
type RequestDetail ¶
type RequestDetailStat ¶ added in v0.0.8
type RequestDetailStat struct {
// todo 名前考える
// ex: GET /foo/bar 200<br>POST /foo/bar 200
RequestDetail *RequestDetail
Cnt int
ResponseTime *responseTime
RequestBodyBytes *bodyBytes
ResponseBodyBytes *bodyBytes
}
func (*RequestDetailStat) AvgRequestBodyBytes ¶ added in v0.0.8
func (ts *RequestDetailStat) AvgRequestBodyBytes() float64
func (*RequestDetailStat) AvgResponseBodyBytes ¶ added in v0.0.8
func (ts *RequestDetailStat) AvgResponseBodyBytes() float64
func (*RequestDetailStat) AvgResponseTime ¶ added in v0.0.8
func (ts *RequestDetailStat) AvgResponseTime() float64
func (*RequestDetailStat) Count ¶ added in v0.0.8
func (ts *RequestDetailStat) Count() int
func (*RequestDetailStat) MaxRequestBodyBytes ¶ added in v0.0.8
func (ts *RequestDetailStat) MaxRequestBodyBytes() float64
request
func (*RequestDetailStat) MaxResponseBodyBytes ¶ added in v0.0.8
func (ts *RequestDetailStat) MaxResponseBodyBytes() float64
response
func (*RequestDetailStat) MaxResponseTime ¶ added in v0.0.8
func (ts *RequestDetailStat) MaxResponseTime() float64
func (*RequestDetailStat) MinRequestBodyBytes ¶ added in v0.0.8
func (ts *RequestDetailStat) MinRequestBodyBytes() float64
func (*RequestDetailStat) MinResponseBodyBytes ¶ added in v0.0.8
func (ts *RequestDetailStat) MinResponseBodyBytes() float64
func (*RequestDetailStat) MinResponseTime ¶ added in v0.0.8
func (ts *RequestDetailStat) MinResponseTime() float64
func (*RequestDetailStat) PNRequestBodyBytes ¶ added in v0.0.8
func (ts *RequestDetailStat) PNRequestBodyBytes(n int) float64
func (*RequestDetailStat) PNResponseBodyBytes ¶ added in v0.0.8
func (ts *RequestDetailStat) PNResponseBodyBytes(n int) float64
func (*RequestDetailStat) PNResponseTime ¶ added in v0.0.8
func (ts *RequestDetailStat) PNResponseTime(n int) float64
func (*RequestDetailStat) Set ¶ added in v0.0.8
func (ts *RequestDetailStat) Set(requestDetail *RequestDetail)
func (*RequestDetailStat) StddevRequestBodyBytes ¶ added in v0.0.8
func (ts *RequestDetailStat) StddevRequestBodyBytes() float64
func (*RequestDetailStat) StddevResponseBodyBytes ¶ added in v0.0.8
func (ts *RequestDetailStat) StddevResponseBodyBytes() float64
func (*RequestDetailStat) StddevResponseTime ¶ added in v0.0.8
func (ts *RequestDetailStat) StddevResponseTime() float64
func (*RequestDetailStat) StrCount ¶ added in v0.0.8
func (ts *RequestDetailStat) StrCount() string
func (*RequestDetailStat) SumRequestBodyBytes ¶ added in v0.0.8
func (ts *RequestDetailStat) SumRequestBodyBytes() float64
func (*RequestDetailStat) SumResponseBodyBytes ¶ added in v0.0.8
func (ts *RequestDetailStat) SumResponseBodyBytes() float64
func (*RequestDetailStat) SumResponseTime ¶ added in v0.0.8
func (ts *RequestDetailStat) SumResponseTime() float64
type ScenarioStat ¶ added in v0.0.8
type ScenarioStat struct {
ID string
// todo 名前考える
// ex: GET /foo/bar 200<br>POST /foo/bar 200
TraceUriMethodStatus string
Cnt int
ResponseTime *responseTime
RequestBodyBytes *bodyBytes
ResponseBodyBytes *bodyBytes
//RequestDetails []RequestDetail
RequestDetailsStats []*RequestDetailStat
TraceIDs []string
// contains filtered or unexported fields
}
func (*ScenarioStat) AvgRequestBodyBytes ¶ added in v0.0.8
func (ts *ScenarioStat) AvgRequestBodyBytes() float64
func (*ScenarioStat) AvgResponseBodyBytes ¶ added in v0.0.8
func (ts *ScenarioStat) AvgResponseBodyBytes() float64
func (*ScenarioStat) AvgResponseTime ¶ added in v0.0.8
func (ts *ScenarioStat) AvgResponseTime() float64
func (*ScenarioStat) Count ¶ added in v0.0.8
func (ts *ScenarioStat) Count() int
func (*ScenarioStat) MaxRequestBodyBytes ¶ added in v0.0.8
func (ts *ScenarioStat) MaxRequestBodyBytes() float64
request
func (*ScenarioStat) MaxResponseBodyBytes ¶ added in v0.0.8
func (ts *ScenarioStat) MaxResponseBodyBytes() float64
response
func (*ScenarioStat) MaxResponseTime ¶ added in v0.0.8
func (ts *ScenarioStat) MaxResponseTime() float64
func (*ScenarioStat) MinRequestBodyBytes ¶ added in v0.0.8
func (ts *ScenarioStat) MinRequestBodyBytes() float64
func (*ScenarioStat) MinResponseBodyBytes ¶ added in v0.0.8
func (ts *ScenarioStat) MinResponseBodyBytes() float64
func (*ScenarioStat) MinResponseTime ¶ added in v0.0.8
func (ts *ScenarioStat) MinResponseTime() float64
func (*ScenarioStat) PNRequestBodyBytes ¶ added in v0.0.8
func (ts *ScenarioStat) PNRequestBodyBytes(n int) float64
func (*ScenarioStat) PNResponseBodyBytes ¶ added in v0.0.8
func (ts *ScenarioStat) PNResponseBodyBytes(n int) float64
func (*ScenarioStat) PNResponseTime ¶ added in v0.0.8
func (ts *ScenarioStat) PNResponseTime(n int) float64
func (*ScenarioStat) RandomTraceID ¶ added in v0.0.8
func (ts *ScenarioStat) RandomTraceID() string
func (*ScenarioStat) Set ¶ added in v0.0.8
func (ts *ScenarioStat) Set(traceID string, requestDetails []*RequestDetail)
func (*ScenarioStat) StddevRequestBodyBytes ¶ added in v0.0.8
func (ts *ScenarioStat) StddevRequestBodyBytes() float64
func (*ScenarioStat) StddevResponseBodyBytes ¶ added in v0.0.8
func (ts *ScenarioStat) StddevResponseBodyBytes() float64
func (*ScenarioStat) StddevResponseTime ¶ added in v0.0.8
func (ts *ScenarioStat) StddevResponseTime() float64
func (*ScenarioStat) StrCount ¶ added in v0.0.8
func (ts *ScenarioStat) StrCount() string
func (*ScenarioStat) SumRequestBodyBytes ¶ added in v0.0.8
func (ts *ScenarioStat) SumRequestBodyBytes() float64
func (*ScenarioStat) SumResponseBodyBytes ¶ added in v0.0.8
func (ts *ScenarioStat) SumResponseBodyBytes() float64
func (*ScenarioStat) SumResponseTime ¶ added in v0.0.8
func (ts *ScenarioStat) SumResponseTime() float64
func (*ScenarioStat) UriWithOptions ¶ added in v0.0.8
func (ts *ScenarioStat) UriWithOptions(decode bool) string
type SortOptions ¶
type SortOptions struct {
// contains filtered or unexported fields
}
func NewSortOptions ¶
func NewSortOptions() *SortOptions
func (*SortOptions) Percentile ¶
func (so *SortOptions) Percentile() int
func (*SortOptions) SetAndValidate ¶
func (so *SortOptions) SetAndValidate(opt string) error
func (*SortOptions) SortType ¶
func (so *SortOptions) SortType() string
type TraceDiffer ¶
type TraceDiffer struct {
From *ScenarioStat
To *ScenarioStat
}
func NewTraceDiffer ¶
func NewTraceDiffer(from, to *ScenarioStat) *TraceDiffer
func (*TraceDiffer) DiffAvgRequestBodyBytes ¶
func (d *TraceDiffer) DiffAvgRequestBodyBytes() string
func (*TraceDiffer) DiffAvgResponseBodyBytes ¶
func (d *TraceDiffer) DiffAvgResponseBodyBytes() string
func (*TraceDiffer) DiffAvgResponseTime ¶
func (d *TraceDiffer) DiffAvgResponseTime() string
func (*TraceDiffer) DiffCnt ¶
func (d *TraceDiffer) DiffCnt() string
func (*TraceDiffer) DiffMaxRequestBodyBytes ¶
func (d *TraceDiffer) DiffMaxRequestBodyBytes() string
request
func (*TraceDiffer) DiffMaxResponseBodyBytes ¶
func (d *TraceDiffer) DiffMaxResponseBodyBytes() string
response
func (*TraceDiffer) DiffMaxResponseTime ¶
func (d *TraceDiffer) DiffMaxResponseTime() string
func (*TraceDiffer) DiffMinRequestBodyBytes ¶
func (d *TraceDiffer) DiffMinRequestBodyBytes() string
func (*TraceDiffer) DiffMinResponseBodyBytes ¶
func (d *TraceDiffer) DiffMinResponseBodyBytes() string
func (*TraceDiffer) DiffMinResponseTime ¶
func (d *TraceDiffer) DiffMinResponseTime() string
func (*TraceDiffer) DiffPNRequestBodyBytes ¶
func (d *TraceDiffer) DiffPNRequestBodyBytes(n int) string
func (*TraceDiffer) DiffPNResponseBodyBytes ¶
func (d *TraceDiffer) DiffPNResponseBodyBytes(n int) string
func (*TraceDiffer) DiffPNResponseTime ¶
func (d *TraceDiffer) DiffPNResponseTime(n int) string
func (*TraceDiffer) DiffStddevRequestBodyBytes ¶
func (d *TraceDiffer) DiffStddevRequestBodyBytes() string
func (*TraceDiffer) DiffStddevResponseBodyBytes ¶
func (d *TraceDiffer) DiffStddevResponseBodyBytes() string
func (*TraceDiffer) DiffStddevResponseTime ¶
func (d *TraceDiffer) DiffStddevResponseTime() string
func (*TraceDiffer) DiffSumRequestBodyBytes ¶
func (d *TraceDiffer) DiffSumRequestBodyBytes() string
func (*TraceDiffer) DiffSumResponseBodyBytes ¶
func (d *TraceDiffer) DiffSumResponseBodyBytes() string
func (*TraceDiffer) DiffSumResponseTime ¶
func (d *TraceDiffer) DiffSumResponseTime() string
type TracePrintOptions ¶
type TracePrintOptions struct {
// contains filtered or unexported fields
}
func NewTracePrintOptions ¶
func NewTracePrintOptions(noHeaders, showFooters, decodeUri bool, paginationLimit int) *TracePrintOptions
type TracePrinter ¶
type TracePrinter struct {
// contains filtered or unexported fields
}
func NewTracePrinter ¶
func NewTracePrinter(w io.Writer, val, format string, percentiles []int, printOptions *TracePrintOptions) *TracePrinter
func (*TracePrinter) GenerateTraceFooter ¶
func (p *TracePrinter) GenerateTraceFooter(counts map[string]int) []string
func (*TracePrinter) GenerateTraceFooterWithDiff ¶
func (p *TracePrinter) GenerateTraceFooterWithDiff(countsFrom, countsTo map[string]int) []string
func (*TracePrinter) GenerateTraceLine ¶
func (p *TracePrinter) GenerateTraceLine(s *ScenarioStat, quoteUri bool) []string
func (*TracePrinter) GenerateTraceLineWithDiff ¶
func (p *TracePrinter) GenerateTraceLineWithDiff(from, to *ScenarioStat, quoteUri bool) []string
func (*TracePrinter) Print ¶
func (p *TracePrinter) Print(ts, tsTo *TraceStats)
func (*TracePrinter) SetFormat ¶
func (p *TracePrinter) SetFormat(format string)
func (*TracePrinter) SetHeaders ¶
func (p *TracePrinter) SetHeaders(headers []string)
func (*TracePrinter) SetWriter ¶
func (p *TracePrinter) SetWriter(w io.Writer)
func (*TracePrinter) Validate ¶
func (p *TracePrinter) Validate() error
type TraceRequestDetailsMap ¶
type TraceRequestDetailsMap map[string][]*RequestDetail
TraceRequestDetailsMap -> trace_id: [method1_uri1_, method2_uri2, ...]
type TraceStats ¶
type TraceStats struct {
GlobalStat *GlobalStat
ScenarioStats []*ScenarioStat
// contains filtered or unexported fields
}
func NewTraceStats ¶
func NewTraceStats(useResTimePercentile, useRequestBodyBytesPercentile, useResponseBodyBytesPercentile bool) *TraceStats
func (*TraceStats) AggregateTrace ¶
func (ts *TraceStats) AggregateTrace()
func (*TraceStats) AppendTrace ¶
func (ts *TraceStats) AppendTrace(traceID, uri, method string, status int, restime, resBodyBytes, reqBodyBytes float64, pos int)
func (*TraceStats) CountAll ¶
func (ts *TraceStats) CountAll() map[string]int
func (*TraceStats) CountUris ¶
func (ts *TraceStats) CountUris() int
func (*TraceStats) DoFilter ¶
func (ts *TraceStats) DoFilter(pstat *parsers.ParsedHTTPStat) (bool, error)
func (*TraceStats) DrawAverageHR ¶ added in v0.0.8
func (ts *TraceStats) DrawAverageHR() string
func (*TraceStats) DrawAverageHeader ¶ added in v0.0.8
func (ts *TraceStats) DrawAverageHeader() string
func (*TraceStats) DrawCountHR ¶ added in v0.0.8
func (ts *TraceStats) DrawCountHR() string
func (*TraceStats) DrawCountHeader ¶ added in v0.0.8
func (ts *TraceStats) DrawCountHeader() string
func (*TraceStats) DrawMaxHR ¶ added in v0.0.8
func (ts *TraceStats) DrawMaxHR() string
func (*TraceStats) DrawMaxHeader ¶ added in v0.0.8
func (ts *TraceStats) DrawMaxHeader() string
func (*TraceStats) DrawMedianHR ¶ added in v0.0.8
func (ts *TraceStats) DrawMedianHR() string
func (*TraceStats) DrawMedianHeader ¶ added in v0.0.8
func (ts *TraceStats) DrawMedianHeader() string
func (*TraceStats) DrawMinHR ¶ added in v0.0.8
func (ts *TraceStats) DrawMinHR() string
func (*TraceStats) DrawMinHeader ¶ added in v0.0.8
func (ts *TraceStats) DrawMinHeader() string
func (*TraceStats) DrawP95HR ¶ added in v0.0.8
func (ts *TraceStats) DrawP95HR() string
func (*TraceStats) DrawP95Header ¶ added in v0.0.8
func (ts *TraceStats) DrawP95Header() string
func (*TraceStats) DrawRPCountHR ¶ added in v0.0.8
func (ts *TraceStats) DrawRPCountHR() string
func (*TraceStats) DrawRPCountHeader ¶ added in v0.0.8
func (ts *TraceStats) DrawRPCountHeader() string
func (*TraceStats) DrawRankHR ¶ added in v0.0.8
func (ts *TraceStats) DrawRankHR() string
func (*TraceStats) DrawRankHeader ¶ added in v0.0.8
func (ts *TraceStats) DrawRankHeader() string
func (*TraceStats) DrawRateHR ¶ added in v0.0.8
func (ts *TraceStats) DrawRateHR() string
func (*TraceStats) DrawRateHeader ¶ added in v0.0.8
func (ts *TraceStats) DrawRateHeader() string
func (*TraceStats) DrawRequestHR ¶ added in v0.0.8
func (ts *TraceStats) DrawRequestHR() string
func (*TraceStats) DrawRequestHeader ¶ added in v0.0.8
func (ts *TraceStats) DrawRequestHeader() string
func (*TraceStats) DrawScenarioIDHR ¶ added in v0.0.8
func (ts *TraceStats) DrawScenarioIDHR() string
func (*TraceStats) DrawScenarioIDHeader ¶ added in v0.0.8
func (ts *TraceStats) DrawScenarioIDHeader() string
func (*TraceStats) DrawSumHR ¶ added in v0.0.8
func (ts *TraceStats) DrawSumHR() string
func (*TraceStats) DrawSumHeader ¶ added in v0.0.8
func (ts *TraceStats) DrawSumHeader() string
func (*TraceStats) FormatAverage ¶ added in v0.0.8
func (ts *TraceStats) FormatAverage(v float64) string
func (*TraceStats) FormatCount ¶ added in v0.0.8
func (ts *TraceStats) FormatCount(v int) string
func (*TraceStats) FormatMax ¶ added in v0.0.8
func (ts *TraceStats) FormatMax(v float64) string
func (*TraceStats) FormatMedian ¶ added in v0.0.8
func (ts *TraceStats) FormatMedian(v float64) string
func (*TraceStats) FormatMin ¶ added in v0.0.8
func (ts *TraceStats) FormatMin(v float64) string
func (*TraceStats) FormatP95 ¶ added in v0.0.8
func (ts *TraceStats) FormatP95(v float64) string
func (*TraceStats) FormatRPCount ¶ added in v0.0.8
func (ts *TraceStats) FormatRPCount(v float64) string
func (*TraceStats) FormatRank ¶ added in v0.0.8
func (ts *TraceStats) FormatRank(v int) string
func (*TraceStats) FormatRate ¶ added in v0.0.8
func (ts *TraceStats) FormatRate(v float64) string
func (*TraceStats) FormatRequest ¶ added in v0.0.8
func (ts *TraceStats) FormatRequest(method, uri string, status int) string
func (*TraceStats) FormatScenarioID ¶ added in v0.0.8
func (ts *TraceStats) FormatScenarioID(v string) string
func (*TraceStats) FormatSum ¶ added in v0.0.8
func (ts *TraceStats) FormatSum(v float64) string
func (*TraceStats) InitFilter ¶
func (ts *TraceStats) InitFilter(options *options.Options) error
func (*TraceStats) SetOptions ¶
func (ts *TraceStats) SetOptions(options *options.Options)
func (*TraceStats) SetSortOptions ¶
func (ts *TraceStats) SetSortOptions(options *SortOptions)
func (*TraceStats) SetURIMatchingGroups ¶
func (ts *TraceStats) SetURIMatchingGroups(groups []string) error
func (*TraceStats) Sort ¶
func (ts *TraceStats) Sort(sortOptions *SortOptions, reverse bool)
func (*TraceStats) SortAvgRequestBodyBytes ¶
func (ts *TraceStats) SortAvgRequestBodyBytes(reverse bool)
func (*TraceStats) SortAvgResponseBodyBytes ¶
func (ts *TraceStats) SortAvgResponseBodyBytes(reverse bool)
func (*TraceStats) SortAvgResponseTime ¶
func (ts *TraceStats) SortAvgResponseTime(reverse bool)
func (*TraceStats) SortCount ¶
func (ts *TraceStats) SortCount(reverse bool)
func (*TraceStats) SortMaxRequestBodyBytes ¶
func (ts *TraceStats) SortMaxRequestBodyBytes(reverse bool)
request
func (*TraceStats) SortMaxResponseBodyBytes ¶
func (ts *TraceStats) SortMaxResponseBodyBytes(reverse bool)
response
func (*TraceStats) SortMaxResponseTime ¶
func (ts *TraceStats) SortMaxResponseTime(reverse bool)
func (*TraceStats) SortMinRequestBodyBytes ¶
func (ts *TraceStats) SortMinRequestBodyBytes(reverse bool)
func (*TraceStats) SortMinResponseBodyBytes ¶
func (ts *TraceStats) SortMinResponseBodyBytes(reverse bool)
func (*TraceStats) SortMinResponseTime ¶
func (ts *TraceStats) SortMinResponseTime(reverse bool)
func (*TraceStats) SortPNRequestBodyBytes ¶
func (ts *TraceStats) SortPNRequestBodyBytes(reverse bool)
func (*TraceStats) SortPNResponseBodyBytes ¶
func (ts *TraceStats) SortPNResponseBodyBytes(reverse bool)
func (*TraceStats) SortPNResponseTime ¶
func (ts *TraceStats) SortPNResponseTime(reverse bool)
func (*TraceStats) SortStddevRequestBodyBytes ¶
func (ts *TraceStats) SortStddevRequestBodyBytes(reverse bool)
func (*TraceStats) SortStddevResponseBodyBytes ¶
func (ts *TraceStats) SortStddevResponseBodyBytes(reverse bool)
func (*TraceStats) SortStddevResponseTime ¶
func (ts *TraceStats) SortStddevResponseTime(reverse bool)
func (*TraceStats) SortSumRequestBodyBytes ¶
func (ts *TraceStats) SortSumRequestBodyBytes(reverse bool)
func (*TraceStats) SortSumResponseBodyBytes ¶
func (ts *TraceStats) SortSumResponseBodyBytes(reverse bool)
func (*TraceStats) SortSumResponseTime ¶
func (ts *TraceStats) SortSumResponseTime(reverse bool)
func (*TraceStats) SortWithOptions ¶
func (ts *TraceStats) SortWithOptions()
func (*TraceStats) TrimAfterLimit ¶ added in v0.0.8
func (ts *TraceStats) TrimAfterLimit()
Click to show internal directories.
Click to hide internal directories.