Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aggregator ¶
type Aggregator struct {
// contains filtered or unexported fields
}
Aggregator collects and aggregates results from all nodes
func (*Aggregator) CollectResults ¶
CollectResults collects results from all nodes via the client pool
func (*Aggregator) GetResultCount ¶
func (a *Aggregator) GetResultCount() int
GetResultCount returns the number of collected results
func (*Aggregator) GetResults ¶
func (a *Aggregator) GetResults() []*TestResult
GetResults returns all collected results
func (*Aggregator) GetSummary ¶
func (a *Aggregator) GetSummary() *Summary
GetSummary returns aggregate statistics
type Summary ¶
type Summary struct {
TotalTests int `json:"total_tests"`
CompletedTests int `json:"completed_tests"`
FailedTests int `json:"failed_tests"`
AvgThroughput float64 `json:"avg_throughput_bps"`
MinThroughput float64 `json:"min_throughput_bps"`
MaxThroughput float64 `json:"max_throughput_bps"`
TotalRetransmits int64 `json:"total_retransmits"`
}
Summary contains aggregate statistics
type TestResult ¶
type TestResult struct {
TestID string `json:"test_id"`
SourceNode string `json:"source_node"`
DestNode string `json:"dest_node"`
Status string `json:"status"`
StartTime int64 `json:"start_time"`
EndTime int64 `json:"end_time"`
Duration int64 `json:"duration"`
ErrorMessage string `json:"error_message,omitempty"`
IperfData map[string]interface{} `json:"iperf_data,omitempty"`
ThroughputBps float64 `json:"throughput_bps,omitempty"`
Retransmits int64 `json:"retransmits,omitempty"`
}
TestResult represents an aggregated test result
Click to show internal directories.
Click to hide internal directories.