stats

package
v1.1.54 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConcurrencyStats

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

func NewConcurrencyStats

func NewConcurrencyStats(byteStats bool) *ConcurrencyStats

func (*ConcurrencyStats) AddTotal added in v1.1.20

func (s *ConcurrencyStats) AddTotal(n int64)

func (*ConcurrencyStats) Failed

func (s *ConcurrencyStats) Failed(n, records int64)

func (*ConcurrencyStats) Init

func (s *ConcurrencyStats) Init()

func (*ConcurrencyStats) RequestFailed

func (s *ConcurrencyStats) RequestFailed(nRecords int64)

func (*ConcurrencyStats) RequestSucceeded

func (s *ConcurrencyStats) RequestSucceeded(nRecords int64, latency, respTime time.Duration)

func (*ConcurrencyStats) Stats

func (s *ConcurrencyStats) Stats() *Stats

func (*ConcurrencyStats) String

func (s *ConcurrencyStats) String() string

func (*ConcurrencyStats) Succeeded

func (s *ConcurrencyStats) Succeeded(n, nRecords int64)

type Stats

type Stats struct {
	StartTime       time.Time     // The time to start statistics.
	Processed       int64         // The processed bytes or records.
	Total           int64         // The total bytes or records.
	RecordStats     bool          // is bytes or records
	FailedRecords   int64         // The number of records that have failed to be processed.
	TotalRecords    int64         // The number of records that have been processed.
	FailedRequest   int64         // The number of requests that have failed.
	TotalRequest    int64         // The number of requests that have been processed.
	TotalLatency    time.Duration // The cumulative latency.
	TotalRespTime   time.Duration // The cumulative response time.
	FailedProcessed int64         // The number of nodes and edges that have failed to be processed.
	TotalProcessed  int64         // The number of nodes and edges that have been processed.
}

func (*Stats) IsFailed

func (s *Stats) IsFailed() bool

func (*Stats) Percentage

func (s *Stats) Percentage() float64

func (*Stats) String

func (s *Stats) String() string

Jump to

Keyboard shortcuts

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