Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JSONResults ¶
type JSONResults struct { PubRuns []*PubResults `json:"publish runs"` SubRuns []*SubResults `json:"subscribe runs"` PubTotals *TotalPubResults `json:"publish totals"` SubTotals *TotalSubResults `json:"receive totals"` }
JSONResults are used to export results as a JSON document
type Message ¶
type Message struct { Topic string QoS byte Payload interface{} Sent time.Time Delivered time.Time Error bool }
Message describes a message
type PubResults ¶
type PubResults struct { ID int `json:"id"` Successes int64 `json:"pub_successes"` Failures int64 `json:"failures"` RunTime float64 `json:"run_time"` PubTimeMin float64 `json:"pub_time_min"` PubTimeMax float64 `json:"pub_time_max"` PubTimeMean float64 `json:"pub_time_mean"` PubTimeStd float64 `json:"pub_time_std"` PubsPerSec float64 `json:"publish_per_sec"` }
PubResults describes results of a single PUBLISHER / run
type SubResults ¶
type SubResults struct { ID int `json:"id"` Published int64 `json:"actual_published"` Received int64 `json:"received"` FwdRatio float64 `json:"fwd_success_ratio"` FwdLatencyMin float64 `json:"fwd_time_min"` FwdLatencyMax float64 `json:"fwd_time_max"` FwdLatencyMean float64 `json:"fwd_time_mean"` FwdLatencyStd float64 `json:"fwd_time_std"` }
SubResults describes results of a single SUBSCRIBER / run
type TotalPubResults ¶
type TotalPubResults struct { PubRatio float64 `json:"publish_success_ratio"` Successes int64 `json:"successes"` Failures int64 `json:"failures"` TotalRunTime float64 `json:"total_run_time"` AvgRunTime float64 `json:"avg_run_time"` PubTimeMin float64 `json:"pub_time_min"` PubTimeMax float64 `json:"pub_time_max"` PubTimeMeanAvg float64 `json:"pub_time_mean_avg"` PubTimeMeanStd float64 `json:"pub_time_mean_std"` TotalMsgsPerSec float64 `json:"total_msgs_per_sec"` AvgMsgsPerSec float64 `json:"avg_msgs_per_sec"` }
TotalPubResults describes results of all PUBLISHER / runs
type TotalSubResults ¶
type TotalSubResults struct { TotalFwdRatio float64 `json:"fwd_success_ratio"` TotalReceived int64 `json:"successes"` TotalPublished int64 `json:"actual_total_published"` FwdLatencyMin float64 `json:"fwd_latency_min"` FwdLatencyMax float64 `json:"fwd_latency_max"` FwdLatencyMeanAvg float64 `json:"fwd_latency_mean_avg"` FwdLatencyMeanStd float64 `json:"fwd_latency_mean_std"` }
TotalSubResults describes results of all SUBSCRIBER / runs
Click to show internal directories.
Click to hide internal directories.