devicecheck

package
v0.0.0-...-234771b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

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, sessionFactory session.Factory, agentConfig config.Component) (*DeviceCheck, error)

NewDeviceCheck returns a new DeviceCheck

func (*DeviceCheck) GetDeviceHostname

func (d *DeviceCheck) GetDeviceHostname() (string, error)

GetDeviceHostname returns DeviceID as hostname if UseDeviceIDAsHostname is true

func (*DeviceCheck) GetDeviceID

func (d *DeviceCheck) GetDeviceID() string

GetDeviceID returns device ID

func (*DeviceCheck) GetDiagnoses

func (d *DeviceCheck) GetDiagnoses() []diagnosis.Diagnosis

GetDiagnoses collects diagnoses for diagnose CLI

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) GetInterfaceBandwidthState

func (d *DeviceCheck) GetInterfaceBandwidthState() report.InterfaceBandwidthState

GetInterfaceBandwidthState returns interface bandwidth state

func (*DeviceCheck) Run

func (d *DeviceCheck) Run(collectionTime time.Time) error

Run executes the check

func (*DeviceCheck) SetInterfaceBandwidthState

func (d *DeviceCheck) SetInterfaceBandwidthState(state report.InterfaceBandwidthState)

SetInterfaceBandwidthState sets the interface bandwidth state

func (*DeviceCheck) SetSender

func (d *DeviceCheck) SetSender(sender *report.MetricSender)

SetSender sets the current sender

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL