stats

package
v0.1.9-patch-2 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2020 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CountType = "count"
	TimerType = "timer"
	GaugeType = "gauge"
)

Variables

This section is empty.

Functions

func Setup

func Setup()

Setup creates a new statsd client

func StopRuntimeStats

func StopRuntimeStats()

Types

type RudderStats

type RudderStats struct {
	Name     string
	StatType string
	Timing   statsd.Timing

	DestID string
	Client *statsd.Client
	// contains filtered or unexported fields
}

func NewBatchDestStat

func NewBatchDestStat(Name string, StatType string, destID string) *RudderStats

func NewDestStat

func NewDestStat(Name string, StatType string, destID string) *RudderStats

func NewJobsDBStat

func NewJobsDBStat(Name string, StatType string, customVal string) *RudderStats

func NewStat

func NewStat(Name string, StatType string) (rStats *RudderStats)

func NewWriteKeyStat

func NewWriteKeyStat(Name string, StatType string, writeKey string) (rStats *RudderStats)

NewWriteKeyStat is used to create new writekey specific stat. Writekey is added as one of the tags in this case

func (*RudderStats) Count

func (rStats *RudderStats) Count(n int)

func (*RudderStats) DeferredTimer

func (rStats *RudderStats) DeferredTimer()

func (*RudderStats) End

func (rStats *RudderStats) End()

func (*RudderStats) Gauge

func (rStats *RudderStats) Gauge(value interface{})

func (*RudderStats) Increment

func (rStats *RudderStats) Increment()

func (*RudderStats) Start

func (rStats *RudderStats) Start()

Jump to

Keyboard shortcuts

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