Documentation ¶
Index ¶
- type APIBroker
- func (api *APIBroker) CountryCodes() string
- func (api *APIBroker) Device() (DeviceAPIResponse, error)
- func (api *APIBroker) DeviceBasic() string
- func (api *APIBroker) Health() string
- func (api *APIBroker) IsLoggedIn() bool
- func (api *APIBroker) Login() (int, error)
- func (api *APIBroker) Logout() (int, error)
- func (api *APIBroker) Stats() (StatsAPIResponse, error)
- func (api *APIBroker) Status() string
- func (api *APIBroker) SysInfo() (SysInfoAPIResponse, error)
- func (api *APIBroker) VerifyConnectivity() bool
- type Device
- type DeviceAPIResponse
- type LoginAPIErrorResponse
- type SpeedTestStatus
- type Stats
- type StatsAPIResponse
- type Storage
- type SysInfoAPIResponse
- type SysStats
- type SystemInfo
- type SystemStats
- type Temperature
- type UDMProCollector
- type UptimeStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIBroker ¶
type APIBroker struct { URL string Username string Password string // contains filtered or unexported fields }
func (*APIBroker) CountryCodes ¶
func (*APIBroker) Device ¶
func (api *APIBroker) Device() (DeviceAPIResponse, error)
func (*APIBroker) DeviceBasic ¶
func (*APIBroker) IsLoggedIn ¶
func (*APIBroker) Stats ¶
func (api *APIBroker) Stats() (StatsAPIResponse, error)
func (*APIBroker) SysInfo ¶
func (api *APIBroker) SysInfo() (SysInfoAPIResponse, error)
func (*APIBroker) VerifyConnectivity ¶
type Device ¶
type Device struct { Name string `json:"name"` IP string `json:"ip"` MAC string `json:"mac"` Version string `json:"version"` KernelVersion string `json:"kernel_version"` Temperatures []Temperature `json:"temperatures"` Storage []Storage `json:"storage"` Uptime int `json:"uptime"` SysStats SysStats `json:"sys_stats"` SystemStats SystemStats `json:"system-stats"` StartupTimestamp int `json:"startup_timestamp"` UptimeStats map[string]UptimeStats `json:"uptime_stats"` SpeedTestStatus SpeedTestStatus `json:"speedtest-status"` TransmitBytes int `json:"tx_bytes"` ReceiveBytes int `json:"rx_bytes"` Bytes int `json:"bytes"` }
type DeviceAPIResponse ¶
type LoginAPIErrorResponse ¶
type SpeedTestStatus ¶
type SpeedTestStatus struct { Latency int `json:"latency"` RunDate int `json:"rundate"` RunTime int `json:"runtime"` SourceInterface string `json:"source_interface"` StatusDownload int `json:"status_download"` StatusPing int `json:"status_ping"` StatusSummary int `json:"status_summary"` StatusUpload int `json:"status_upload"` XputDownload float32 `json:"xput_download"` XputUpload float32 `json:"xput_upload"` }
type Stats ¶
type Stats struct { SiteID string `json:"site_id"` MAC string `json:"mac"` FirstSeen int `json:"first_seen"` LastSeen int `json:"last_seen"` Hostname string `json:"hostname"` DisconnectTimestamp int `json:"disconnect_timestamp"` FixedIP string `json:"fixed_ip"` IP string `json:"ip"` Network string `json:"network"` Uptime int `json:"uptime"` WiredTxBytes int `json:"wired-tx_bytes"` WiredRxBytes int `json:"wired-rx_bytes"` WiredTxPackets int `json:"wired-tx_packets"` WiredRxPackets int `json:"wired-rx_packets"` }
type StatsAPIResponse ¶
type SysInfoAPIResponse ¶
type SysInfoAPIResponse struct { Meta struct { RC string } `json:"meta"` Data []SystemInfo `json:"data"` }
type SystemInfo ¶
type SystemStats ¶
type Temperature ¶
type UDMProCollector ¶
type UDMProCollector struct {
Broker *APIBroker
}
func NewUDMProCollector ¶
func NewUDMProCollector(broker *APIBroker) *UDMProCollector
func (*UDMProCollector) Collect ¶
func (collector *UDMProCollector) Collect(ch chan<- prometheus.Metric)
func (*UDMProCollector) CollectDeviceMetrics ¶
func (collector *UDMProCollector) CollectDeviceMetrics(ch chan<- prometheus.Metric)
func (*UDMProCollector) Describe ¶
func (collector *UDMProCollector) Describe(ch chan<- *prometheus.Desc)
Click to show internal directories.
Click to hide internal directories.