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

Interface IProvideMeterMetrics

Namespace:App.Metrics.Meter.Abstractions
Assembly:cs.temp.dll.dll
Syntax
public interface IProvideMeterMetrics

Methods

Instance(MeterOptions)

Instantiates an instance of a IMeter

Declaration
IMeter Instance(MeterOptions options)
Parameters
Type Name Description
MeterOptions options

The details of the IMeter that is being marked

Returns
Type Description
IMeter

A new instance of an IMeter or the existing registered instance of the meter

Instance(MeterOptions, MetricTags)

Instantiates an instance of a IMeter

Declaration
IMeter Instance(MeterOptions options, MetricTags tags)
Parameters
Type Name Description
MeterOptions options

The details of the IMeter that is being marked

MetricTags tags

The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique

Returns
Type Description
IMeter

A new instance of an IMeter or the existing registered instance of the meter

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

Instantiates an instance of a IMeter

Declaration
IMeter Instance<T>(MeterOptions options, MetricTags tags, Func<T> builder)where T : IMeterMetric
Parameters
Type Name Description
MeterOptions options

The details of the IMeter that is being marked

MetricTags tags

The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique

System.Func<T> builder

The function used to build the meter metric.

Returns
Type Description
IMeter

A new instance of an IMeter or the existing registered instance of the meter

Type Parameters
Name Description
T

The type of IMeter to instantiate

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

Instantiates an instance of a IMeter

Declaration
IMeter Instance<T>(MeterOptions options, Func<T> builder)where T : IMeterMetric
Parameters
Type Name Description
MeterOptions options

The details of the IMeter that is being marked

System.Func<T> builder

The function used to build the meter metric.

Returns
Type Description
IMeter

A new instance of an IMeter or the existing registered instance of the meter

Type Parameters
Name Description
T

The type of IMeter to instantiate

Back to top Copyright © 2017 Allan Hardy
Generated by DocFX