Documentation ¶
Index ¶
- Constants
- func IsValidURL(urlStr string) bool
- func NewSleepLimited(d time.Duration) ratelimit.Limiter
- func OutPutJSON(fileName string, metrics ResultMetrics, metricsGroup map[string]ResultMetrics) error
- func OutPutResults(metrics ResultMetrics)
- func SplitHeader(header string) (int, []string)
- type Cassowary
- func (c *Cassowary) Coordinate() (ResultMetrics, map[string]ResultMetrics, error)
- func (c *Cassowary) PlotBoxplot(durations []float64) error
- func (c *Cassowary) PlotHistogram(durations []float64) error
- func (c *Cassowary) PushPrometheusMetrics(metrics ResultMetrics) error
- func (c *Cassowary) PutCloudwatchMetrics(svc cloudwatchiface.CloudWatchAPI, metrics ResultMetrics) (*cloudwatch.PutMetricDataOutput, error)
- type Iterator
- type LoadTest
- type Query
- type QueryGroup
- type ResultMetrics
- type Validator
Constants ¶
View Source
const (
TotalStr = "Total"
)
Variables ¶
This section is empty.
Functions ¶
func NewSleepLimited ¶ added in v0.14.3
NewSleepLimited returns a RateLimiter that is sleep limited.
func OutPutJSON ¶ added in v0.14.5
func OutPutJSON(fileName string, metrics ResultMetrics, metricsGroup map[string]ResultMetrics) error
func OutPutResults ¶ added in v0.14.5
func OutPutResults(metrics ResultMetrics)
func SplitHeader ¶
SplitHeader splits string on colon and return a slice
Types ¶
type Cassowary ¶
type Cassowary struct { IsTLS bool BaseURL string ExportMetrics bool ExportMetricsFile string PromExport bool Cloudwatch bool Histogram bool Boxplot bool StatFile string TLSConfig *tls.Config PromURL string DisableTerminalOutput bool DisableKeepAlive bool Client *http.Client Bar *progressbar.ProgressBar Timeout int Duration time.Duration Groups []QueryGroup // contains filtered or unexported fields }
Cassowary is the main struct with bootstraps the load test
func (*Cassowary) Coordinate ¶
func (c *Cassowary) Coordinate() (ResultMetrics, map[string]ResultMetrics, error)
Coordinate bootstraps the load test based on values in Cassowary struct
func (*Cassowary) PlotBoxplot ¶
PlotBoxplot outputs a boxplot png
func (*Cassowary) PlotHistogram ¶
PlotHistogram outputs a histogram png
func (*Cassowary) PushPrometheusMetrics ¶
func (c *Cassowary) PushPrometheusMetrics(metrics ResultMetrics) error
PushPrometheusMetrics exports metrics to a PushGateway
func (*Cassowary) PutCloudwatchMetrics ¶
func (c *Cassowary) PutCloudwatchMetrics(svc cloudwatchiface.CloudWatchAPI, metrics ResultMetrics) (*cloudwatch.PutMetricDataOutput, error)
PutCloudwatchMetrics exports metrics to AWS Cloudwatch
type LoadTest ¶ added in v0.14.3
type LoadTest func(c *Cassowary, outPutChan chan<- durationMetrics, g *QueryGroup)
type QueryGroup ¶ added in v0.14.3
type ResultMetrics ¶
type ResultMetrics struct { Name string `json:"name"` BaseURL string `json:"base_url"` TotalRequests int `json:"total_requests"` FailedRequests int `json:"failed_requests"` RespSuccess map[string]int `json:"responses_success"` RespFailed map[string]int `json:"responses_failed"` RequestsPerSecond float64 `json:"requests_per_second"` DNSMedian float64 `json:"dns_median"` ElapsedStats stats `json:"elapsed"` TCPStats stats `json:"tcp_connect"` ProcessingStats stats `json:"server_processing"` ContentStats stats `json:"content_transfer"` BodySize stats `json:"body_size"` RespSize stats `json:"resp_size"` }
ResultMetrics are the aggregated metrics after the load test
Click to show internal directories.
Click to hide internal directories.