Class DefaultMetricsFilter
Provides the ability to filter metrics by Context, Type, Name etc.
Inheritance
System.Object
DefaultMetricsFilter
Namespace:App.Metrics.Filtering
Assembly:cs.temp.dll.dll
Syntax
public sealed class DefaultMetricsFilter : IFilterMetrics
Constructors
DefaultMetricsFilter()
Declaration
public DefaultMetricsFilter()
Properties
ReportEnvironment
Declaration
public bool ReportEnvironment { get; }
Property Value
Type |
Description |
System.Boolean |
|
ReportHealthChecks
Declaration
public bool ReportHealthChecks { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
IsApdexMatch(ApdexValueSource)
Declaration
public bool IsApdexMatch(ApdexValueSource apdex)
Parameters
Type |
Name |
Description |
ApdexValueSource |
apdex |
|
Returns
Type |
Description |
System.Boolean |
|
IsContextMatch(String)
Declaration
public bool IsContextMatch(string context)
Parameters
Type |
Name |
Description |
System.String |
context |
|
Returns
Type |
Description |
System.Boolean |
|
IsCounterMatch(CounterValueSource)
Declaration
public bool IsCounterMatch(CounterValueSource counter)
Parameters
Type |
Name |
Description |
CounterValueSource |
counter |
|
Returns
Type |
Description |
System.Boolean |
|
IsGaugeMatch(GaugeValueSource)
Declaration
public bool IsGaugeMatch(GaugeValueSource gauge)
Parameters
Type |
Name |
Description |
GaugeValueSource |
gauge |
|
Returns
Type |
Description |
System.Boolean |
|
IsHistogramMatch(HistogramValueSource)
Declaration
public bool IsHistogramMatch(HistogramValueSource histogram)
Parameters
Type |
Name |
Description |
HistogramValueSource |
histogram |
|
Returns
Type |
Description |
System.Boolean |
|
IsMeterMatch(MeterValueSource)
Declaration
public bool IsMeterMatch(MeterValueSource meter)
Parameters
Type |
Name |
Description |
MeterValueSource |
meter |
|
Returns
Type |
Description |
System.Boolean |
|
IsTimerMatch(TimerValueSource)
Declaration
public bool IsTimerMatch(TimerValueSource timer)
Parameters
Type |
Name |
Description |
TimerValueSource |
timer |
|
Returns
Type |
Description |
System.Boolean |
|
WhereContext(Predicate<String>)
Declaration
public IFilterMetrics WhereContext(Predicate<string> condition)
Parameters
Type |
Name |
Description |
System.Predicate<System.String> |
condition |
|
Returns
Type |
Description |
IFilterMetrics |
|
WhereContext(String)
Declaration
public IFilterMetrics WhereContext(string context)
Parameters
Type |
Name |
Description |
System.String |
context |
|
Returns
Type |
Description |
IFilterMetrics |
|
WhereMetricName(Predicate<String>)
Declaration
public IFilterMetrics WhereMetricName(Predicate<string> condition)
Parameters
Type |
Name |
Description |
System.Predicate<System.String> |
condition |
|
Returns
Type |
Description |
IFilterMetrics |
|
WhereMetricNameStartsWith(String)
Declaration
public IFilterMetrics WhereMetricNameStartsWith(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Type |
Description |
IFilterMetrics |
|
WhereMetricTaggedWithKey(String[])
Declaration
public IFilterMetrics WhereMetricTaggedWithKey(params string[] tagKeys)
Parameters
Type |
Name |
Description |
System.String[] |
tagKeys |
|
Returns
Type |
Description |
IFilterMetrics |
|
WhereMetricTaggedWithKeyValue(TagKeyValueFilter)
Declaration
public IFilterMetrics WhereMetricTaggedWithKeyValue(TagKeyValueFilter tags)
Parameters
Returns
Type |
Description |
IFilterMetrics |
|
WhereType(MetricType[])
Declaration
public IFilterMetrics WhereType(params MetricType[] types)
Parameters
Returns
Type |
Description |
IFilterMetrics |
|
WithEnvironmentInfo(Boolean)
Declaration
public IFilterMetrics WithEnvironmentInfo(bool report)
Parameters
Type |
Name |
Description |
System.Boolean |
report |
|
Returns
Type |
Description |
IFilterMetrics |
|
WithHealthChecks(Boolean)
Declaration
public IFilterMetrics WithHealthChecks(bool report)
Parameters
Type |
Name |
Description |
System.Boolean |
report |
|
Returns
Type |
Description |
IFilterMetrics |
|