statmodel

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

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

func NewMetric

func NewMetric() *Metrics

func (*Metrics) AddFailed

func (m *Metrics) AddFailed()

func (*Metrics) AddFailedDuration

func (m *Metrics) AddFailedDuration(d time.Duration)

func (*Metrics) AddSuccess

func (m *Metrics) AddSuccess()

func (*Metrics) AddSuccessDuration

func (m *Metrics) AddSuccessDuration(d time.Duration)

func (*Metrics) AddTotal

func (m *Metrics) AddTotal()

func (*Metrics) AddTotalDuration

func (m *Metrics) AddTotalDuration(d time.Duration)

func (*Metrics) AddWorkers

func (m *Metrics) AddWorkers(n int64)

func (*Metrics) AvgFailedDuration

func (m *Metrics) AvgFailedDuration() time.Duration

func (*Metrics) AvgSuccessDuration

func (m *Metrics) AvgSuccessDuration() time.Duration

func (*Metrics) AvgTotalDuration

func (m *Metrics) AvgTotalDuration() time.Duration

func (*Metrics) Clone

func (m *Metrics) Clone() *Metrics

func (*Metrics) Duration

func (m *Metrics) Duration() time.Duration

func (*Metrics) Failed

func (m *Metrics) Failed() int64

func (*Metrics) FailedDuration

func (m *Metrics) FailedDuration() int64

func (*Metrics) HttpClientOutOfPool

func (m *Metrics) HttpClientOutOfPool() int64

func (*Metrics) HttpClientPoolBusy

func (m *Metrics) HttpClientPoolBusy() int64

func (*Metrics) HttpClientPoolTotal

func (m *Metrics) HttpClientPoolTotal() int64

func (*Metrics) IsLocked

func (m *Metrics) IsLocked() bool

func (*Metrics) Lock

func (m *Metrics) Lock()

func (*Metrics) RPS

func (m *Metrics) RPS() int64

func (*Metrics) SetDuration

func (m *Metrics) SetDuration()

func (*Metrics) SetHttpClientOutOfPool

func (m *Metrics) SetHttpClientOutOfPool(outside int64)

func (*Metrics) SetHttpClientPoolBusy

func (m *Metrics) SetHttpClientPoolBusy(busy int64)

func (*Metrics) SetHttpClientPoolTotal

func (m *Metrics) SetHttpClientPoolTotal(total int64)

func (*Metrics) SetRPS

func (m *Metrics) SetRPS()

func (*Metrics) StartedAt

func (m *Metrics) StartedAt() time.Time

func (*Metrics) Success

func (m *Metrics) Success() int64

func (*Metrics) SuccessDuration

func (m *Metrics) SuccessDuration() int64

func (*Metrics) Total

func (m *Metrics) Total() int64

func (*Metrics) TotalDuration

func (m *Metrics) TotalDuration() int64

func (*Metrics) Workers

func (m *Metrics) Workers() int64

Jump to

Keyboard shortcuts

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