Documentation ¶
Index ¶
- type ReadMetricsDecorator
- func (m *ReadMetricsDecorator) GetCallRates(ctx context.Context, params *metricsstore.CallRateQueryParameters) (*protometrics.MetricFamily, error)
- func (m *ReadMetricsDecorator) GetErrorRates(ctx context.Context, params *metricsstore.ErrorRateQueryParameters) (*protometrics.MetricFamily, error)
- func (m *ReadMetricsDecorator) GetLatencies(ctx context.Context, params *metricsstore.LatenciesQueryParameters) (*protometrics.MetricFamily, error)
- func (m *ReadMetricsDecorator) GetMinStepDuration(ctx context.Context, params *metricsstore.MinStepDurationQueryParameters) (time.Duration, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReadMetricsDecorator ¶
type ReadMetricsDecorator struct {
// contains filtered or unexported fields
}
ReadMetricsDecorator wraps a metricsstore.Reader and collects metrics around each read operation.
func NewReadMetricsDecorator ¶
func NewReadMetricsDecorator(reader metricsstore.Reader, metricsFactory metrics.Factory) *ReadMetricsDecorator
NewReadMetricsDecorator returns a new ReadMetricsDecorator.
func (*ReadMetricsDecorator) GetCallRates ¶
func (m *ReadMetricsDecorator) GetCallRates(ctx context.Context, params *metricsstore.CallRateQueryParameters) (*protometrics.MetricFamily, error)
GetCallRates implements metricsstore.Reader#GetCallRates
func (*ReadMetricsDecorator) GetErrorRates ¶
func (m *ReadMetricsDecorator) GetErrorRates(ctx context.Context, params *metricsstore.ErrorRateQueryParameters) (*protometrics.MetricFamily, error)
GetErrorRates implements metricsstore.Reader#GetErrorRates
func (*ReadMetricsDecorator) GetLatencies ¶
func (m *ReadMetricsDecorator) GetLatencies(ctx context.Context, params *metricsstore.LatenciesQueryParameters) (*protometrics.MetricFamily, error)
GetLatencies implements metricsstore.Reader#GetLatencies
func (*ReadMetricsDecorator) GetMinStepDuration ¶
func (m *ReadMetricsDecorator) GetMinStepDuration(ctx context.Context, params *metricsstore.MinStepDurationQueryParameters) (time.Duration, error)
GetMinStepDuration implements metricsstore.Reader#GetMinStepDuration
Click to show internal directories.
Click to hide internal directories.