Table of Contents

Class MetricsObserver

Namespace
Steeltoe.Management.Endpoint.Metrics.Observer
Assembly
Steeltoe.Management.EndpointBase.dll
public abstract class MetricsObserver : DiagnosticObserver, IDiagnosticObserver, IObserver<KeyValuePair<string, object>>
Inheritance
MetricsObserver
Implements
Derived
Inherited Members

Constructors

MetricsObserver(string, string, IMetricsObserverOptions, ILogger)

public MetricsObserver(string observerName, string diagnosticName, IMetricsObserverOptions options, ILogger logger = null)

Parameters

observerName string
diagnosticName string
options IMetricsObserverOptions
logger ILogger

Properties

Options

protected IMetricsObserverOptions Options { get; }

Property Value

IMetricsObserverOptions

Methods

GetPathMatcher()

protected Regex GetPathMatcher()

Returns

Regex

MilliToSeconds(double)

protected double MilliToSeconds(double totalMilliseconds)

Parameters

totalMilliseconds double

Returns

double

ProcessEvent(string, object)

public override abstract void ProcessEvent(string evnt, object arg)

Parameters

evnt string
arg object

SetPathMatcher(Regex)

protected void SetPathMatcher(Regex value)

Parameters

value Regex

ShouldIgnoreRequest(string)

protected virtual bool ShouldIgnoreRequest(string path)

Parameters

path string

Returns

bool