Documentation ¶
Index ¶
- Constants
- func Setup()
- func StopRuntimeStats()
- type RudderStats
- func NewBatchDestStat(Name string, StatType string, destID string) *RudderStats
- func NewDestStat(Name string, StatType string, destID string) *RudderStats
- func NewJobsDBStat(Name string, StatType string, customVal string) *RudderStats
- func NewStat(Name string, StatType string) (rStats *RudderStats)
- func NewWriteKeyStat(Name string, StatType string, writeKey string) (rStats *RudderStats)
Constants ¶
View Source
const ( CountType = "count" TimerType = "timer" GaugeType = "gauge" )
Variables ¶
This section is empty.
Functions ¶
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()
Click to show internal directories.
Click to hide internal directories.