Documentation ¶
Index ¶
- type ReadMetricsDecorator
- func (m *ReadMetricsDecorator) GetCallRates(ctx context.Context, params *metricstore.CallRateQueryParameters) (*protometrics.MetricFamily, error)
- func (m *ReadMetricsDecorator) GetErrorRates(ctx context.Context, params *metricstore.ErrorRateQueryParameters) (*protometrics.MetricFamily, error)
- func (m *ReadMetricsDecorator) GetLatencies(ctx context.Context, params *metricstore.LatenciesQueryParameters) (*protometrics.MetricFamily, error)
- func (m *ReadMetricsDecorator) GetMinStepDuration(ctx context.Context, params *metricstore.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 metricstore.Reader and collects metrics around each read operation.
func NewReaderDecorator ¶
func NewReaderDecorator(reader metricstore.Reader, metricsFactory metrics.Factory) *ReadMetricsDecorator
NewReadMetricsDecorator returns a new ReadMetricsDecorator.
func (*ReadMetricsDecorator) GetCallRates ¶
func (m *ReadMetricsDecorator) GetCallRates(ctx context.Context, params *metricstore.CallRateQueryParameters) (*protometrics.MetricFamily, error)
GetCallRates implements metricstore.Reader#GetCallRates
func (*ReadMetricsDecorator) GetErrorRates ¶
func (m *ReadMetricsDecorator) GetErrorRates(ctx context.Context, params *metricstore.ErrorRateQueryParameters) (*protometrics.MetricFamily, error)
GetErrorRates implements metricstore.Reader#GetErrorRates
func (*ReadMetricsDecorator) GetLatencies ¶
func (m *ReadMetricsDecorator) GetLatencies(ctx context.Context, params *metricstore.LatenciesQueryParameters) (*protometrics.MetricFamily, error)
GetLatencies implements metricstore.Reader#GetLatencies
func (*ReadMetricsDecorator) GetMinStepDuration ¶
func (m *ReadMetricsDecorator) GetMinStepDuration(ctx context.Context, params *metricstore.MinStepDurationQueryParameters) (time.Duration, error)
GetMinStepDuration implements metricstore.Reader#GetMinStepDuration
Click to show internal directories.
Click to hide internal directories.