Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AxiomMetrics ¶
type AxiomMetrics struct { ServerId string DatasetName string ApiToken string IngestUrl string Throughput uint64 Mutex sync.Mutex }
func NewMetrics ¶
func NewMetrics() (*AxiomMetrics, error)
func (*AxiomMetrics) GetThroughput ¶
func (m *AxiomMetrics) GetThroughput() uint64
Return the throughput and reset the count
func (*AxiomMetrics) IncrementThroughput ¶
func (m *AxiomMetrics) IncrementThroughput()
Increment the throughput count
func (*AxiomMetrics) SendMetrics ¶
func (m *AxiomMetrics) SendMetrics() error
Send the metrics over to Axiom
Click to show internal directories.
Click to hide internal directories.