Documentation ¶
Index ¶
- type Metrics
- func (m *Metrics) AddFailed()
- func (m *Metrics) AddFailedDuration(d time.Duration)
- func (m *Metrics) AddSuccess()
- func (m *Metrics) AddSuccessDuration(d time.Duration)
- func (m *Metrics) AddTotal()
- func (m *Metrics) AddTotalDuration(d time.Duration)
- func (m *Metrics) AddWorkers(n int64)
- func (m *Metrics) AvgFailedDuration() time.Duration
- func (m *Metrics) AvgSuccessDuration() time.Duration
- func (m *Metrics) AvgTotalDuration() time.Duration
- func (m *Metrics) Clone() *Metrics
- func (m *Metrics) Duration() time.Duration
- func (m *Metrics) Failed() int64
- func (m *Metrics) FailedDuration() int64
- func (m *Metrics) HttpClientOutOfPool() int64
- func (m *Metrics) HttpClientPoolBusy() int64
- func (m *Metrics) HttpClientPoolTotal() int64
- func (m *Metrics) IsLocked() bool
- func (m *Metrics) Lock()
- func (m *Metrics) RPS() int64
- func (m *Metrics) SetDuration()
- func (m *Metrics) SetHttpClientOutOfPool(outside int64)
- func (m *Metrics) SetHttpClientPoolBusy(busy int64)
- func (m *Metrics) SetHttpClientPoolTotal(total int64)
- func (m *Metrics) SetRPS()
- func (m *Metrics) StartedAt() time.Time
- func (m *Metrics) Success() int64
- func (m *Metrics) SuccessDuration() int64
- func (m *Metrics) Total() int64
- func (m *Metrics) TotalDuration() int64
- func (m *Metrics) Workers() int64
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 (*Metrics) AddFailedDuration ¶
func (*Metrics) AddSuccess ¶
func (m *Metrics) AddSuccess()
func (*Metrics) AddSuccessDuration ¶
func (*Metrics) AddTotalDuration ¶
func (*Metrics) AddWorkers ¶
func (*Metrics) AvgFailedDuration ¶
func (*Metrics) AvgSuccessDuration ¶
func (*Metrics) AvgTotalDuration ¶
func (*Metrics) FailedDuration ¶
func (*Metrics) HttpClientOutOfPool ¶
func (*Metrics) HttpClientPoolBusy ¶
func (*Metrics) HttpClientPoolTotal ¶
func (*Metrics) SetDuration ¶
func (m *Metrics) SetDuration()
func (*Metrics) SetHttpClientOutOfPool ¶
func (*Metrics) SetHttpClientPoolBusy ¶
func (*Metrics) SetHttpClientPoolTotal ¶
func (*Metrics) SuccessDuration ¶
func (*Metrics) TotalDuration ¶
Click to show internal directories.
Click to hide internal directories.