Documentation ¶
Index ¶
- type CollectionByKeys
- type DataGroup
- type OpenConfigTelemetry
- func (m *OpenConfigTelemetry) Description() string
- func (m *OpenConfigTelemetry) Gather(_ context.Context, _ cua.Accumulator) error
- func (m *OpenConfigTelemetry) SampleConfig() string
- func (m *OpenConfigTelemetry) Start(ctx context.Context, acc cua.Accumulator) error
- func (m *OpenConfigTelemetry) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectionByKeys ¶
type CollectionByKeys []DataGroup
Sort the data groups by number of keys
func (CollectionByKeys) Insert ¶
func (a CollectionByKeys) Insert(tags map[string]string, data map[string]interface{}) CollectionByKeys
Inserts into already existing group or creates a new group
func (CollectionByKeys) IsAvailable ¶
func (a CollectionByKeys) IsAvailable(tags map[string]string) *DataGroup
Checks to see if there is already a group with these tags and returns its index. Returns -1 if unavailable.
func (CollectionByKeys) Len ¶
func (a CollectionByKeys) Len() int
func (CollectionByKeys) Less ¶
func (a CollectionByKeys) Less(i, j int) bool
func (CollectionByKeys) Swap ¶
func (a CollectionByKeys) Swap(i, j int)
type OpenConfigTelemetry ¶
type OpenConfigTelemetry struct { Log cua.Logger Username string `toml:"username"` Password string `toml:"password"` ClientID string `toml:"client_id"` internaltls.ClientConfig Servers []string `toml:"servers"` Sensors []string `toml:"sensors"` RetryDelay internal.Duration `toml:"retry_delay"` SampleFrequency internal.Duration `toml:"sample_frequency"` StrAsTags bool `toml:"str_as_tags"` EnableTLS bool `toml:"enable_tls"` // contains filtered or unexported fields }
func (*OpenConfigTelemetry) Description ¶
func (m *OpenConfigTelemetry) Description() string
func (*OpenConfigTelemetry) Gather ¶
func (m *OpenConfigTelemetry) Gather(_ context.Context, _ cua.Accumulator) error
func (*OpenConfigTelemetry) SampleConfig ¶
func (m *OpenConfigTelemetry) SampleConfig() string
func (*OpenConfigTelemetry) Start ¶
func (m *OpenConfigTelemetry) Start(ctx context.Context, acc cua.Accumulator) error
func (*OpenConfigTelemetry) Stop ¶
func (m *OpenConfigTelemetry) Stop()
Click to show internal directories.
Click to hide internal directories.