App Metrics Fork me on GitHub
Show / Hide Table of Contents

Class DefaultTimerMetricProvider

Inheritance
System.Object
DefaultTimerMetricProvider
Namespace:App.Metrics.Timer
Assembly:cs.temp.dll.dll
Syntax
public class DefaultTimerMetricProvider : IProvideTimerMetrics

Constructors

DefaultTimerMetricProvider(IBuildTimerMetrics, IMetricsRegistry, IClock)

Initializes a new instance of the DefaultTimerMetricProvider class.

Declaration
public DefaultTimerMetricProvider(IBuildTimerMetrics timerBuilder, IMetricsRegistry registry, IClock clock)
Parameters
Type Name Description
IBuildTimerMetrics timerBuilder

The timer builder.

IMetricsRegistry registry

The metrics registry.

IClock clock

The clock.

Methods

Instance(TimerOptions)

Declaration
public ITimer Instance(TimerOptions options)
Parameters
Type Name Description
TimerOptions options
Returns
Type Description
ITimer

Instance(TimerOptions, MetricTags)

Declaration
public ITimer Instance(TimerOptions options, MetricTags tags)
Parameters
Type Name Description
TimerOptions options
MetricTags tags
Returns
Type Description
ITimer

Instance<T>(TimerOptions, MetricTags, Func<T>)

Declaration
public ITimer Instance<T>(TimerOptions options, MetricTags tags, Func<T> builder)where T : ITimerMetric
Parameters
Type Name Description
TimerOptions options
MetricTags tags
System.Func<T> builder
Returns
Type Description
ITimer
Type Parameters
Name Description
T

Instance<T>(TimerOptions, Func<T>)

Declaration
public ITimer Instance<T>(TimerOptions options, Func<T> builder)where T : ITimerMetric
Parameters
Type Name Description
TimerOptions options
System.Func<T> builder
Returns
Type Description
ITimer
Type Parameters
Name Description
T

WithHistogram<T>(TimerOptions, MetricTags, Func<T>)

Declaration
public ITimer WithHistogram<T>(TimerOptions options, MetricTags tags, Func<T> histogramMetricBuilder)where T : IHistogramMetric
Parameters
Type Name Description
TimerOptions options
MetricTags tags
System.Func<T> histogramMetricBuilder
Returns
Type Description
ITimer
Type Parameters
Name Description
T

WithHistogram<T>(TimerOptions, Func<T>)

Declaration
public ITimer WithHistogram<T>(TimerOptions options, Func<T> histogramMetricBuilder)where T : IHistogramMetric
Parameters
Type Name Description
TimerOptions options
System.Func<T> histogramMetricBuilder
Returns
Type Description
ITimer
Type Parameters
Name Description
T
Back to top Copyright © 2017 Allan Hardy
Generated by DocFX