Documentation
¶
Overview ¶
Package internal offers helper interfaces that are internal to the Wavefront Go SDK. Interfaces within this package are not guaranteed to be backwards compatible between releases.
Index ¶
- func DeltaCounterName(name string) string
- func GetHostname(defaultVal string) string
- func HasDeltaPrefix(name string) bool
- type ConnectionHandler
- type Flusher
- type FunctionalGauge
- type LineHandler
- type LineHandlerOption
- type MetricCounter
- type MetricRegistry
- type ProxyConnectionHandler
- func (handler *ProxyConnectionHandler) Close()
- func (handler *ProxyConnectionHandler) Connect() error
- func (handler *ProxyConnectionHandler) Connected() bool
- func (handler *ProxyConnectionHandler) Flush() error
- func (handler *ProxyConnectionHandler) GetFailureCount() int64
- func (handler *ProxyConnectionHandler) SendData(lines string) error
- func (handler *ProxyConnectionHandler) Start()
- type RegistryOption
- type Reporter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeltaCounterName ¶
Gets a delta counter name prefixed with ∆.
func GetHostname ¶
func HasDeltaPrefix ¶
Types ¶
type ConnectionHandler ¶
type ConnectionHandler interface { Connect() error Connected() bool Close() SendData(lines string) error Flusher }
func NewProxyConnectionHandler ¶
func NewProxyConnectionHandler(address string, flushInterval time.Duration) ConnectionHandler
type FunctionalGauge ¶ added in v0.9.3
type FunctionalGauge struct {
// contains filtered or unexported fields
}
functional gauge for internal metrics
type LineHandler ¶
type LineHandler struct { Reporter Reporter BatchSize int MaxBufferSize int Format string // contains filtered or unexported fields }
func NewLineHandler ¶ added in v0.9.3
func NewLineHandler(reporter Reporter, format string, flushInterval time.Duration, batchSize, maxBufferSize int, setters ...LineHandlerOption) *LineHandler
func (*LineHandler) Flush ¶
func (lh *LineHandler) Flush() error
func (*LineHandler) FlushAll ¶ added in v0.9.3
func (lh *LineHandler) FlushAll() error
func (*LineHandler) GetFailureCount ¶
func (lh *LineHandler) GetFailureCount() int64
func (*LineHandler) HandleLine ¶
func (lh *LineHandler) HandleLine(line string) error
func (*LineHandler) Start ¶
func (lh *LineHandler) Start()
func (*LineHandler) Stop ¶
func (lh *LineHandler) Stop()
type LineHandlerOption ¶ added in v0.9.3
type LineHandlerOption func(*LineHandler)
func SetHandlerPrefix ¶ added in v0.9.3
func SetHandlerPrefix(prefix string) LineHandlerOption
func SetRegistry ¶ added in v0.9.3
func SetRegistry(registry *MetricRegistry) LineHandlerOption
type MetricCounter ¶ added in v0.9.3
type MetricCounter struct {
// contains filtered or unexported fields
}
counter for internal metrics
type MetricRegistry ¶ added in v0.9.3
type MetricRegistry struct {
// contains filtered or unexported fields
}
metric registry for internal metrics
func NewMetricRegistry ¶ added in v0.9.3
func NewMetricRegistry(sender internalSender, setters ...RegistryOption) *MetricRegistry
func (*MetricRegistry) NewCounter ¶ added in v0.9.3
func (registry *MetricRegistry) NewCounter(name string) *MetricCounter
func (*MetricRegistry) NewGauge ¶ added in v0.9.3
func (registry *MetricRegistry) NewGauge(name string, f func() int64) *FunctionalGauge
func (*MetricRegistry) Start ¶ added in v0.9.3
func (registry *MetricRegistry) Start()
func (*MetricRegistry) Stop ¶ added in v0.9.3
func (registry *MetricRegistry) Stop()
type ProxyConnectionHandler ¶
type ProxyConnectionHandler struct {
// contains filtered or unexported fields
}
func (*ProxyConnectionHandler) Close ¶
func (handler *ProxyConnectionHandler) Close()
func (*ProxyConnectionHandler) Connect ¶
func (handler *ProxyConnectionHandler) Connect() error
func (*ProxyConnectionHandler) Connected ¶
func (handler *ProxyConnectionHandler) Connected() bool
func (*ProxyConnectionHandler) Flush ¶
func (handler *ProxyConnectionHandler) Flush() error
func (*ProxyConnectionHandler) GetFailureCount ¶
func (handler *ProxyConnectionHandler) GetFailureCount() int64
func (*ProxyConnectionHandler) SendData ¶
func (handler *ProxyConnectionHandler) SendData(lines string) error
func (*ProxyConnectionHandler) Start ¶
func (handler *ProxyConnectionHandler) Start()
type RegistryOption ¶ added in v0.9.3
type RegistryOption func(*MetricRegistry)
func SetInterval ¶ added in v0.9.3
func SetInterval(interval int) RegistryOption
func SetPrefix ¶ added in v0.9.3
func SetPrefix(prefix string) RegistryOption
func SetSource ¶ added in v0.9.3
func SetSource(source string) RegistryOption
func SetTag ¶ added in v0.9.3
func SetTag(key, value string) RegistryOption
func SetTags ¶ added in v0.9.3
func SetTags(tags map[string]string) RegistryOption
Click to show internal directories.
Click to hide internal directories.