stats

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeBasicStats

func MakeBasicStats(lastTS time.Time, connTS time.Time, addr pubcluster.Address, clientName string) []stat

Types

type MetricsCompressor

type MetricsCompressor struct {
	// contains filtered or unexported fields
}

func NewMetricCompressor

func NewMetricCompressor() *MetricsCompressor

func (*MetricsCompressor) AddDouble

func (mc *MetricsCompressor) AddDouble(d metricDescriptor, value float64)

func (*MetricsCompressor) AddLong

func (mc *MetricsCompressor) AddLong(d metricDescriptor, value int64)

func (*MetricsCompressor) GenerateBlob

func (mc *MetricsCompressor) GenerateBlob() []byte

func (*MetricsCompressor) Reset

func (mc *MetricsCompressor) Reset()

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(
	requestCh chan<- invocation.Invocation,
	invFactory *cluster.ConnectionInvocationFactory,
	ed *event.DispatchService,
	logger logger.Logger,
	interval time.Duration,
	clientName string) *Service

func (*Service) Start

func (s *Service) Start()

func (*Service) Stop

func (s *Service) Stop()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL