Show / Hide Table of Contents

Interface ISoMetricsPlugin

Custom metrics reporting. Report counter values to a suitable back-end.

Namespace: SuperOffice.Diagnostics.Logging
Assembly: SoCore.dll
Syntax
public interface ISoMetricsPlugin

Methods

Count(string, NameValueCollection, Dictionary<string, double>)

Count many values

Declaration
void Count(string eventName, NameValueCollection tags, Dictionary<string, double> metrics)
Parameters
Type Name Description
string eventName

What is happening?

NameValueCollection tags

Tags associated with this event. Some logging systems use this to allow filtering/grouping of counts

Dictionary<string, double> metrics

measures

TraceOperation(string, NameValueCollection)

Log operation start. Dispose of the returned value to log the operation duration.

Declaration
IDisposable TraceOperation(string operationName, NameValueCollection tags)
Parameters
Type Name Description
string operationName

Name of the operation

NameValueCollection tags

parameters to add to operation trace

Returns
Type Description
IDisposable

disposable object

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top