Documentation
¶
Overview ¶
Package model contains the ndt7 data model
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppInfo ¶
type AppInfo struct {
// NumBytes is the number of bytes transferred so far.
NumBytes int64 `json:"num_bytes"`
}
AppInfo contains an application level measurement.
type BBRInfo ¶
type BBRInfo struct {
// MaxBandwidth is the max bandwidth measured by BBR in bits per second.
MaxBandwidth int64 `json:"max_bandwidth"`
// MinRTT is the min RTT measured by BBR in milliseconds.
MinRTT float64 `json:"min_rtt"`
}
The BBRInfo struct contains information measured using BBR.
type Measurement ¶
type Measurement struct {
// Elapsed is the number of seconds elapsed since the beginning.
Elapsed float64 `json:"elapsed"`
// AppInfo contains application level measurements.
AppInfo *AppInfo `json:"app_info,omitempty"`
// BBRInfo is the data measured using TCP BBR instrumentation.
BBRInfo *BBRInfo `json:"bbr_info,omitempty"`
// TCPInfo contains metrics measured using TCP_INFO instrumentation.
TCPInfo *TCPInfo `json:"tcp_info,omitempty"`
}
The Measurement struct contains measurement results. This structure is meant to be serialised as JSON as sent as a textual message.
Click to show internal directories.
Click to hide internal directories.