Documentation ¶
Index ¶
- type DeviceCheck
- func (d *DeviceCheck) GetDeviceHostname() (string, error)
- func (d *DeviceCheck) GetDeviceID() string
- func (d *DeviceCheck) GetDiagnoses() []diagnosis.Diagnosis
- func (d *DeviceCheck) GetIDTags() []string
- func (d *DeviceCheck) GetIPAddress() string
- func (d *DeviceCheck) GetInterfaceBandwidthState() report.InterfaceBandwidthState
- func (d *DeviceCheck) Run(collectionTime time.Time) error
- func (d *DeviceCheck) SetInterfaceBandwidthState(state report.InterfaceBandwidthState)
- func (d *DeviceCheck) SetSender(sender *report.MetricSender)
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
Click to show internal directories.
Click to hide internal directories.