Interface IProvideMetricValues
Provides access to the current metrics recorded by the application
Namespace:App.Metrics.Core.Abstractions
Assembly:cs.temp.dll.dll
Syntax
public interface IProvideMetricValues
Methods
Get()
Returns the current metrics data for all contexts.
Declaration
MetricsDataValueSource Get()
Returns
Type | Description |
---|---|
MetricsDataValueSource | A snapshot of the current metrics data, if a global |
Get(IFilterMetrics)
Returns the current metrics data for the context for which this provider has been created.
Declaration
MetricsDataValueSource Get(IFilterMetrics overrideGlobalFilter)
Parameters
Type | Name | Description |
---|---|---|
IFilterMetrics | overrideGlobalFilter | The override the configured global filter and filters metric data by the specified
|
Returns
Type | Description |
---|---|
MetricsDataValueSource | A snapshot of the current metrics data filtered by the specified |
GetForContext(String)
Retrieves a snapshot of the current metrics values recorded.
Declaration
MetricsContextValueSource GetForContext(string context)
Parameters
Type | Name | Description |
---|---|---|
System.String | context | The metric context to retreive. |
Returns
Type | Description |
---|---|
MetricsContextValueSource | Metrics data belonging to the specified context |