Discover Packages
github.com/caarlos0/speedtest-exporter
collector
package
Version:
v1.1.4
Opens a new window with list of versions in this module.
Published: Aug 11, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
NewSpeedtestCollector returns a releases collector
type Download struct {
Bandwidth float64 `json:"bandwidth"`
Bytes float64 `json:"bytes"`
Elapsed float64 `json:"elapsed"`
}
type Interface struct {
InternalIP string `json:"internalIp"`
Name string `json:"name"`
MacAddr string `json:"macAddr"`
IsVpn bool `json:"isVpn"`
ExternalIP string `json:"externalIp"`
}
type Ping struct {
Jitter float64 `json:"jitter"`
Latency float64 `json:"latency"`
}
type Result struct {
ID string `json:"id"`
URL string `json:"url"`
}
type Server struct {
ID int `json:"id"`
Name string `json:"name"`
Location string `json:"location"`
Country string `json:"country"`
Host string `json:"host"`
Port int `json:"port"`
IP string `json:"ip"`
}
type SpeedtestResult struct {
Type string `json:"type"`
Timestamp time .Time `json:"timestamp"`
Ping Ping `json:"ping"`
Download Download `json:"download"`
Upload Upload `json:"upload"`
PacketLoss float64 `json:"packetLoss"`
Isp string `json:"isp"`
Interface Interface `json:"interface"`
Server Server `json:"server"`
Result Result `json:"result"`
}
type Upload struct {
Bandwidth float64 `json:"bandwidth"`
Bytes float64 `json:"bytes"`
Elapsed float64 `json:"elapsed"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.