package
Version:
v0.0.0-...-ac7c04d
Opens a new window with list of versions in this module.
Published: Sep 20, 2018
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
NewCollector creates a new collector
type Counter struct {
NetworkName string `json:"network_name"`
IncomingPackets int64 `json:"incoming_packets"`
OutgoingPackets int64 `json:"outgoing_packets"`
IncomingBytes int64 `json:"incoming_bytes"`
OutgoingBytes int64 `json:"outgoing_bytes"`
}
type Response struct {
Success bool `json:"success"`
ErrorText string `json:"error_text,omitempty"`
Values []Counter `json:"values,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.