Interface ISoMetricsPlugin
Custom metrics reporting. Report counter values to a suitable back-end.
Namespace: SuperOffice.Diagnostics.Logging
Assembly: SoCore.dll
Syntax
public interface ISoMetricsPlugin : IPlugin
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)