Documentation ¶
Index ¶
- type Metrics
- func (m *Metrics) ErrorRate(ctx context.Context, offset time.Duration) (float64, error)
- func (m *Metrics) Latency(ctx context.Context, offset time.Duration, alignReduceType metrics.AlignReduce) (float64, error)
- func (m *Metrics) RequestCount(ctx context.Context, offset time.Duration) (int64, error)
- func (m *Metrics) SetCandidateRevision(revisionName string)
- type Query
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct { SetCandidateRevisionFn func(revisionName string) SetCandidateRevisionInvoked bool RequestCountFn func(ctx context.Context, offset time.Duration) (int64, error) RequestCountInvoked bool LatencyFn func(ctx context.Context, offset time.Duration, alignReduceType metrics.AlignReduce) (float64, error) LatencyInvoked bool ErrorRateFn func(ctx context.Context, offset time.Duration) (float64, error) ErrorRateInvoked bool }
Metrics is a mock implementation of metrics.Metrics.
func (*Metrics) ErrorRate ¶
ErrorRate invokes the mock implementation and marks the function as invoked.
func (*Metrics) Latency ¶
func (m *Metrics) Latency(ctx context.Context, offset time.Duration, alignReduceType metrics.AlignReduce) (float64, error)
Latency invokes the mock implementation and marks the function as invoked.
func (*Metrics) RequestCount ¶
RequestCount invokes the mock implementation and marks the function as invoked.
func (*Metrics) SetCandidateRevision ¶
SetCandidateRevision invokes the mock implementation and marks the function as invoked.
Click to show internal directories.
Click to hide internal directories.