IDiagnosticLogPerformance Method (String, String, String, DiagnosticCounterType, Double, PerfmonAttrs) |
Increments a counter given a fully specified set of arguments to define the counter's category, instance and counter name.
The default
PerfmonCounterIncrementType is to increment a specific value, such as an event duration.
The default value to increment the counter is 1
Namespace:
NetQuarry.Diagnostics
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax void LogPerformance(
string counterCategory,
string counterInstance,
string counterName,
DiagnosticCounterType counterType,
double incrementValue = 1,
PerfmonAttrs attrs =
)
Sub LogPerformance (
counterCategory As String,
counterInstance As String,
counterName As String,
counterType As DiagnosticCounterType,
Optional incrementValue As Double = 1,
Optional attrs As PerfmonAttrs =
)
Parameters
- counterCategory
- Type: SystemString
The category of the counter to record against. - counterInstance
- Type: SystemString
The instance of the counter to record against. Typically will include the name of the object you are recording metrics for. - counterName
- Type: SystemString
The name of the counter you are recording. - 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. - attrs (Optional)
- Type: NetQuarry.DiagnosticsPerfmonAttrs
The PerfmonAttrs which control how the metrics are logged for this event.
See Also