Documentation
¶
Index ¶
Constants ¶
View Source
const MinIntervalSecods = 30 // min inteval should large than 30s
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ICMPConfig ¶
type NetPing ¶
type NetPing struct {
IntervalSeconds int `json:"interval_seconds" comment:"the interval of ping/tcping, unit is second,must large than 30"`
ICMPConfigs []ICMPConfig `` /* 132-byte string literal not displayed */
TCPConfigs []TCPConfig `` /* 149-byte string literal not displayed */
// contains filtered or unexported fields
}
NetPing struct implements the MetricInput interface.
func (*NetPing) Collect ¶
Collect is called every trigger interval to collect the metrics and send them to the collector.
func (*NetPing) Description ¶
Click to show internal directories.
Click to hide internal directories.