Documentation ¶
Index ¶
- type StubCheck
- func (c *StubCheck) Cancel()
- func (c *StubCheck) ConfigSource() string
- func (c *StubCheck) Configure(sender.SenderManager, uint64, integration.Data, integration.Data, string) error
- func (c *StubCheck) GetDiagnoses() ([]diagnosis.Diagnosis, error)
- func (c *StubCheck) GetSenderStats() (stats.SenderStats, error)
- func (c *StubCheck) GetWarnings() []error
- func (c *StubCheck) ID() checkid.ID
- func (c *StubCheck) InitConfig() string
- func (c *StubCheck) InstanceConfig() string
- func (c *StubCheck) Interval() time.Duration
- func (c *StubCheck) IsTelemetryEnabled() bool
- func (c *StubCheck) Run() error
- func (c *StubCheck) Stop()
- func (c *StubCheck) String() string
- func (c *StubCheck) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StubCheck ¶
type StubCheck struct{}
StubCheck stubs a check, should only be used in tests
func (*StubCheck) ConfigSource ¶
ConfigSource returns the empty string
func (*StubCheck) Configure ¶
func (c *StubCheck) Configure(sender.SenderManager, uint64, integration.Data, integration.Data, string) error
Configure is a noop
func (*StubCheck) GetDiagnoses ¶
GetDiagnoses returns the diagnoses of the check
func (*StubCheck) GetSenderStats ¶
func (c *StubCheck) GetSenderStats() (stats.SenderStats, error)
GetSenderStats returns an empty map
func (*StubCheck) GetWarnings ¶
GetWarnings returns an empty slice
func (*StubCheck) InitConfig ¶
InitConfig returns the init_config configuration of the check
func (*StubCheck) InstanceConfig ¶
InstanceConfig returns the instance configuration of the check
func (*StubCheck) IsTelemetryEnabled ¶
IsTelemetryEnabled returns false
Click to show internal directories.
Click to hide internal directories.