Versions in this module Expand all Collapse all v0 v0.0.8 Jun 30, 2020 Changes in this version type Collect + Events func(*Filter) (*Events, error) + Inputs func() []string + Outputs func() []string + Poller func() Poller + type Events struct + Logs []interface{} type Filter + Dur time.Duration + Pass bool + Skip bool + Text string + Time time.Time type Flags + HashPW string type Input + Events func(*Filter) (*Events, error) type Metrics + Clients []interface{} + Devices []interface{} + Sites []interface{} type UnifiPoller + func (u *UnifiPoller) Events(filter *Filter) (*Events, error) + func (u *UnifiPoller) Inputs() (names []string) + func (u *UnifiPoller) Outputs() (names []string) + func (u *UnifiPoller) Poller() Poller + func (u *UnifiPoller) PrintPasswordHash() (err error) + func (u *UnifiPoller) PrintRawMetrics() (err error) v0.0.7 Jun 15, 2020 v0.0.6 Jun 14, 2020 v0.0.5 Feb 6, 2020 v0.0.4 Feb 2, 2020 v0.0.3 Dec 31, 2019 v0.0.2 Dec 29, 2019 v0.0.1 Dec 29, 2019 Changes in this version + const AppName + const DefaultConfFile + const DefaultObjPath + const ENVConfigPrefix + func NewInput(i *InputPlugin) + func NewOutput(o *Output) + type Collect interface + Metrics func() (*Metrics, bool, error) + MetricsFrom func(*Filter) (*Metrics, bool, error) + type Config struct + type Filter struct + Area int + Cost float64 + Done bool + Free bool + Item int + Kind string + Mass int64 + Name string + Path string + Rate float64 + Role string + Sign int64 + Stop bool + Tags string + Term string + True bool + Type string + Unit int + type Flags struct + ConfigFile string + DumpJSON string + ShowVer bool + func (f *Flags) Parse(args []string) + type Input interface + Initialize func(Logger) error + Metrics func() (*Metrics, bool, error) + MetricsFrom func(*Filter) (*Metrics, bool, error) + RawMetrics func(*Filter) ([]byte, error) + type InputPlugin struct + Config interface{} + Name string + type Logger interface + LogDebugf func(m string, v ...interface{}) + LogErrorf func(m string, v ...interface{}) + Logf func(m string, v ...interface{}) + type Metrics struct + ClientsDPI []*unifi.DPITable + SitesDPI []*unifi.DPITable + TS time.Time + func AppendMetrics(existing *Metrics, m *Metrics) *Metrics + type Output struct + Config interface{} + Method func(Collect) error + Name string + type Poller struct + Debug bool + Plugins []string + Quiet bool + type UnifiPoller struct + Flags *Flags + func New() *UnifiPoller + func (u *UnifiPoller) DumpJSONPayload() (err error) + func (u *UnifiPoller) InitializeInputs() error + func (u *UnifiPoller) InitializeOutputs() error + func (u *UnifiPoller) LoadPlugins() error + func (u *UnifiPoller) LogDebugf(m string, v ...interface{}) + func (u *UnifiPoller) LogErrorf(m string, v ...interface{}) + func (u *UnifiPoller) Logf(m string, v ...interface{}) + func (u *UnifiPoller) Metrics() (*Metrics, bool, error) + func (u *UnifiPoller) MetricsFrom(filter *Filter) (*Metrics, bool, error) + func (u *UnifiPoller) ParseConfigs() error + func (u *UnifiPoller) Run() error + func (u *UnifiPoller) Start() error