stats

package
v1.9.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SourceStat

type SourceStat struct {
	Source string

	WriteKey    string
	ReqType     string
	SourceID    string
	WorkspaceID string
	SourceType  string
	Version     string
	// contains filtered or unexported fields
}

func (*SourceStat) Report

func (ss *SourceStat) Report(s stats.Stats)

Report captured stats

func (*SourceStat) RequestDropped

func (ss *SourceStat) RequestDropped()

RequestDropped increments the requests total & dropped counters by one

func (*SourceStat) RequestEventsFailed

func (ss *SourceStat) RequestEventsFailed(num int, reason string)

RequestEventsFailed increments the requests total & failed counters by one, and the events total & failed counters by num

func (*SourceStat) RequestEventsSucceeded

func (ss *SourceStat) RequestEventsSucceeded(num int)

RequestEventsSucceeded increments the requests total & succeeded counters by one, and the events total & succeeded counters by num

func (*SourceStat) RequestFailed

func (ss *SourceStat) RequestFailed(reason string)

RequestFailed increments the requests total & failed counters by one

func (*SourceStat) RequestSucceeded

func (ss *SourceStat) RequestSucceeded()

RequestSucceeded increments the requests total & succeeded counters by one

func (*SourceStat) RequestSuppressed

func (ss *SourceStat) RequestSuppressed()

RequestSuppressed increments the requests total & suppressed counters by one

Jump to

Keyboard shortcuts

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