IDiagnosticLogPerformance Method (Object, DiagnosticCounterType, Double, String, PerfmonAttrs) |
Increments a counter with the counter names derived from the object being monitored.
The default
PerfmonCounterIncrementType is to increment a specific value, such as an event duration.
The default value to increment the counter is 1
An optional counterName can be provided if the default counter name (derived from the object) is not appropriate
Namespace:
NetQuarry.Diagnostics
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax void LogPerformance(
Object monitoredObject,
DiagnosticCounterType counterType,
double incrementValue = 1,
string counterName = null,
PerfmonAttrs attrs =
)
Sub LogPerformance (
monitoredObject As Object,
counterType As DiagnosticCounterType,
Optional incrementValue As Double = 1,
Optional counterName As String = Nothing,
Optional attrs As PerfmonAttrs =
)
Parameters
- monitoredObject
- Type: SystemObject
The object that is recording the metric - counterType
- Type: NetQuarry.DiagnosticsDiagnosticCounterType
The DiagnosticCounterType method to increment the counter. The default is to increment a specific value, such as an event duration. - incrementValue (Optional)
- Type: SystemDouble
The value by which a counter is incremented. The default value to increment the counter is 1. If the PerfmonCounterIncrementType is Increment, this parameter will be ignored. - counterName (Optional)
- Type: SystemString
The optional name of the counter metric. - attrs (Optional)
- Type: NetQuarry.DiagnosticsPerfmonAttrs
The PerfmonAttrs which control how the metrics are logged for this event.
See Also