Documentation ¶
Index ¶
- type AdvancedConfiguration
- type Aggregator
- type Configuration
- func (c *Configuration) GetClientExtractor() client.Extractor
- func (c *Configuration) GetDebug() bool
- func (c *Configuration) GetEndpoint() string
- func (c *Configuration) GetFieldBufferSize() int
- func (c *Configuration) GetLogger() logger.Logger
- func (c *Configuration) GetOperationBufferSize() int
- func (c *Configuration) GetProtocol() string
- func (c *Configuration) GetStopTimeout() time.Duration
- type FieldMessage
- type OperationMessage
- type Sender
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdvancedConfiguration ¶
type Aggregator ¶
type Aggregator struct {
// contains filtered or unexported fields
}
func NewAggregator ¶
func NewAggregator(cfg *Configuration) *Aggregator
func (*Aggregator) PushField ¶
func (a *Aggregator) PushField(msg *FieldMessage)
func (*Aggregator) PushOperation ¶ added in v0.3.0
func (a *Aggregator) PushOperation(msg *OperationMessage)
func (*Aggregator) Start ¶
func (a *Aggregator) Start()
func (*Aggregator) Stop ¶
func (a *Aggregator) Stop() error
type Configuration ¶
type Configuration struct { ApiKey string ServerVersion string ClientExtractor client.Extractor Logger logger.Logger Advanced *AdvancedConfiguration }
func (*Configuration) GetClientExtractor ¶ added in v0.3.0
func (c *Configuration) GetClientExtractor() client.Extractor
func (*Configuration) GetDebug ¶ added in v0.3.0
func (c *Configuration) GetDebug() bool
func (*Configuration) GetEndpoint ¶ added in v0.3.0
func (c *Configuration) GetEndpoint() string
func (*Configuration) GetFieldBufferSize ¶ added in v0.3.0
func (c *Configuration) GetFieldBufferSize() int
func (*Configuration) GetLogger ¶ added in v0.3.0
func (c *Configuration) GetLogger() logger.Logger
func (*Configuration) GetOperationBufferSize ¶ added in v0.3.0
func (c *Configuration) GetOperationBufferSize() int
func (*Configuration) GetProtocol ¶ added in v0.3.0
func (c *Configuration) GetProtocol() string
func (*Configuration) GetStopTimeout ¶ added in v0.3.0
func (c *Configuration) GetStopTimeout() time.Duration
type FieldMessage ¶
type OperationMessage ¶ added in v0.3.0
type Sender ¶
type Sender struct {
// contains filtered or unexported fields
}
func NewSender ¶
func NewSender(cfg *Configuration) *Sender
func (*Sender) SendDefinitions ¶ added in v0.3.0
func (s *Sender) SendDefinitions(definitions *models.UsageDefinitions)
func (*Sender) SendMetrics ¶ added in v0.3.0
func (s *Sender) SendMetrics(metrics *models.UsageMetrics)
Click to show internal directories.
Click to hide internal directories.