Documentation
¶
Index ¶
- func BuildDocs(sr result.ScenarioResults, uuid string) ([]interface{}, error)
- func Connect(url, index string, skip bool) (*indexers.Indexer, error)
- func WriteCSVResult(r result.ScenarioResults) error
- func WriteJSONResult(r result.ScenarioResults) error
- func WritePromCSVResult(r result.ScenarioResults) error
- func WriteSpecificCSV(r result.ScenarioResults) error
- type Doc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDocs ¶
func BuildDocs(sr result.ScenarioResults, uuid string) ([]interface{}, error)
BuildDocs returns the documents that need to be indexed or an error.
func WriteCSVResult ¶
func WriteCSVResult(r result.ScenarioResults) error
WriteCSVResult will write the throughput result to the local filesystem
func WriteJSONResult ¶
func WriteJSONResult(r result.ScenarioResults) error
WriteJSONResult sends the results as JSON to stdout
func WritePromCSVResult ¶
func WritePromCSVResult(r result.ScenarioResults) error
WritePromCSVResult writes the prom data in CSV format
func WriteSpecificCSV ¶ added in v0.1.8
func WriteSpecificCSV(r result.ScenarioResults) error
WriteiPerfSpecificCSV
Types ¶
type Doc ¶
type Doc struct {
UUID string `json:"uuid"`
Timestamp time.Time `json:"timestamp"`
HostNetwork bool `json:"hostNetwork"`
Driver string `json:"driver"`
Parallelism int `json:"parallelism"`
Profile string `json:"profile"`
Duration int `json:"duration"`
Service bool `json:"service"`
Local bool `json:"local"`
Virt bool `json:"virt"`
AcrossAZ bool `json:"acrossAZ"`
Samples int `json:"samples"`
Messagesize int `json:"messageSize"`
Burst int `json:"burst"`
Throughput float64 `json:"throughput"`
Latency float64 `json:"latency"`
TputMetric string `json:"tputMetric"`
LtcyMetric string `json:"ltcyMetric"`
TCPRetransmit float64 `json:"tcpRetransmits"`
UDPLossPercent float64 `json:"udpLossPercent"`
ToolVersion string `json:"toolVersion"`
ToolGitCommit string `json:"toolGitCommit"`
Metadata result.Metadata `json:"metadata"`
ServerNodeCPU metrics.NodeCPU `json:"serverCPU"`
ServerPodCPU []metrics.PodCPU `json:"serverPods"`
ServerPodMem []metrics.PodMem `json:"serverPodsMem"`
ClientNodeCPU metrics.NodeCPU `json:"clientCPU"`
ClientPodCPU []metrics.PodCPU `json:"clientPods"`
ClientPodMem []metrics.PodMem `json:"clientPodsMem"`
Confidence []float64 `json:"confidence"`
ServerNodeInfo metrics.NodeInfo `json:"serverNodeInfo"`
ClientNodeInfo metrics.NodeInfo `json:"clientNodeInfo"`
ServerVSwitchCpu float64 `json:"serverVswtichCpu"`
ServerVSwitchMem float64 `json:"serverVswitchMem"`
ClientVSwitchCpu float64 `json:"clientVswtichCpu"`
ClientVSwiitchMem float64 `json:"clientVswitchMem"`
ExternalServer bool `json:"externalServer"`
UdnInfo string `json:"udnInfo"`
BridgeInfo string `json:"bridgeInfo"`
}
Doc struct of the JSON document to be indexed
Click to show internal directories.
Click to hide internal directories.