Documentation
¶
Index ¶
Constants ¶
View Source
const KindServerInfo = "ServerInfo"
View Source
const KindStartLoadTestRequest = "StartLoadTestRequest"
View Source
const KindStopLoadTestRequest = "StopLoadTestRequest"
View Source
const KindWorkerInfo = "WorkerInfo"
View Source
const KindWorkerLoadTestMetrics = "WorkerLoadTestMetrics"
View Source
const KindWorkersInfo = "WorkersInfo"
View Source
const ServerStateDone = 2
View Source
const ServerStateNotStarted = 0
View Source
const ServerStateRunning = 1
View Source
const ServerStateStopped = 3
View Source
const WorkerStateDone = WorkerState(2)
View Source
const WorkerStateNotStarted = WorkerState(0)
View Source
const WorkerStateRunning = WorkerState(1)
View Source
const WorkerStateStopped = WorkerState(3)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerInfo ¶
type StartLoadTestRequest ¶
type WorkerInfo ¶
type WorkerInfo struct {
State WorkerState `json:"state"`
}
type WorkerLoadTestMetrics ¶
type WorkerLoadTestMetrics struct { // Duration is the duration of the attack. Duration time.Duration `json:"duration"` // Wait is the extra time waiting for responses from targets. Wait time.Duration `json:"wait"` // Requests is the total number of requests executed. Requests uint64 `json:"requests"` // Rate is the rate of sent requests per second. Rate float64 `json:"rate"` // Throughput is the rate of successful requests per second. Throughput float64 `json:"throughput"` // Success is the percentage of non-error responses. Success float64 `json:"success"` // Latencies holds computed request latency metrics. Latencies vegeta.LatencyMetrics `json:"latencies"` // BytesIn holds computed incoming byte metrics. BytesIn vegeta.ByteMetrics `json:"bytes_in"` // BytesOut holds computed outgoing byte metrics. BytesOut vegeta.ByteMetrics `json:"bytes_out"` // StatusCodes is a histogram of the responses' status codes. StatusCodes map[string]int `json:"status_codes"` // Errors is a set of unique errors returned by the targets during the attack. Errors []string `json:"errors"` }
type WorkerState ¶
type WorkerState int
Click to show internal directories.
Click to hide internal directories.