Interface IProvideTimerMetrics
Namespace:App.Metrics.Timer.Abstractions
Assembly:cs.temp.dll.dll
Syntax
public interface IProvideTimerMetrics
Methods
Instance(TimerOptions)
Declaration
ITimer Instance(TimerOptions options)
Parameters
Type |
Name |
Description |
TimerOptions |
options |
|
Returns
Instance(TimerOptions, MetricTags)
Declaration
ITimer Instance(TimerOptions options, MetricTags tags)
Parameters
Type |
Name |
Description |
TimerOptions |
options |
|
MetricTags |
tags |
|
Returns
Instance<T>(TimerOptions, MetricTags, Func<T>)
Declaration
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 Parameters
Instance<T>(TimerOptions, Func<T>)
Declaration
ITimer Instance<T>(TimerOptions options, Func<T> builder)where T : ITimerMetric
Parameters
Type |
Name |
Description |
TimerOptions |
options |
|
System.Func<T> |
builder |
|
Returns
Type Parameters
WithHistogram<T>(TimerOptions, MetricTags, Func<T>)
Declaration
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 Parameters
WithHistogram<T>(TimerOptions, Func<T>)
Declaration
ITimer WithHistogram<T>(TimerOptions options, Func<T> histogramMetricBuilder)where T : IHistogramMetric
Parameters
Type |
Name |
Description |
TimerOptions |
options |
|
System.Func<T> |
histogramMetricBuilder |
|
Returns
Type Parameters