Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceCheck ¶
type DeviceCheck struct {
// contains filtered or unexported fields
}
DeviceCheck hold info necessary to collect info for a single device
func NewDeviceCheck ¶
func NewDeviceCheck(config *checkconfig.CheckConfig, ipAddress string) (*DeviceCheck, error)
NewDeviceCheck returns a new DeviceCheck
func (*DeviceCheck) GetHostname ¶
func (d *DeviceCheck) GetHostname() string
GetHostname returns DeviceID as hostname if UseDeviceIDAsHostname is true
func (*DeviceCheck) GetIDTags ¶
func (d *DeviceCheck) GetIDTags() []string
GetIDTags returns device IDTags
func (*DeviceCheck) GetIPAddress ¶
func (d *DeviceCheck) GetIPAddress() string
GetIPAddress returns device IP
func (*DeviceCheck) Run ¶
func (d *DeviceCheck) Run(collectionTime time.Time) error
Run executes the check
func (*DeviceCheck) SetSender ¶
func (d *DeviceCheck) SetSender(sender *report.MetricSender)
SetSender sets the current sender
Click to show internal directories.
Click to hide internal directories.