Documentation ¶
Index ¶
- func SetLogger(l *logrus.Logger)
- type SelfMon
- func (sm *SelfMon) AddDeviceMetrics(deviceid string, fields map[string]interface{}, devtags map[string]string)
- func (sm *SelfMon) CheckAndSetInitialized() bool
- func (sm *SelfMon) CheckAndUnSetInitialized() bool
- func (sm *SelfMon) End()
- func (sm *SelfMon) Init()
- func (sm *SelfMon) IsInitialized() bool
- func (sm *SelfMon) SetOutput(val *output.InfluxDB)
- func (sm *SelfMon) StartGather(wg *sync.WaitGroup)
- func (sm *SelfMon) StopGather()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SelfMon ¶
type SelfMon struct { Influx *output.InfluxDB TagMap map[string]string Fields map[string]interface{} // contains filtered or unexported fields }
SelfMon configuration for self monitoring
func NewNotInit ¶
func NewNotInit(c *config.SelfMonConfig) *SelfMon
NewNotInit create strut without initialization
func (*SelfMon) AddDeviceMetrics ¶
func (sm *SelfMon) AddDeviceMetrics(deviceid string, fields map[string]interface{}, devtags map[string]string)
AddDeviceMetrics add data from devices
func (*SelfMon) CheckAndSetInitialized ¶
CheckAndSetInitialized set
func (*SelfMon) CheckAndUnSetInitialized ¶
CheckAndUnSetInitialized unset
func (*SelfMon) Init ¶
func (sm *SelfMon) Init()
Init Initialize the Object data and check for consistence
func (*SelfMon) IsInitialized ¶
IsInitialized check if this thread is already working
func (*SelfMon) StartGather ¶
StartGather for stopping selfmonitori goroutine
func (*SelfMon) StopGather ¶
func (sm *SelfMon) StopGather()
StopGather for stopping selfmonitori goroutine
Click to show internal directories.
Click to hide internal directories.