IDiagnosticLogPerformanceCountAndDuration Method (Object, Double, String, PerfmonAttrs) |
In a single request, increments two counters. One tracking the event occurred and the other tracking the duration of the event.
The names and instances of the counters will be derived from the type of object being monitored.
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 LogPerformanceCountAndDuration(
Object monitoredObject,
double duration,
string counterName = null,
PerfmonAttrs attrs =
)
Sub LogPerformanceCountAndDuration (
monitoredObject As Object,
duration As Double,
Optional counterName As String = Nothing,
Optional attrs As PerfmonAttrs =
)
Parameters
- monitoredObject
- Type: SystemObject
The object that is recording the metric - duration
- Type: SystemDouble
The duration of the event (typically in milliseconds) - counterName (Optional)
- Type: SystemString
The optioanl name of the counter metric. - attrs (Optional)
- Type: NetQuarry.DiagnosticsPerfmonAttrs
The PerfmonAttrs which control how the metrics are logged for this event.
See Also