Click or drag to resize

PerformanceMonitorBaseAddCounter(String, String, String, String, String, Single, Boolean, FuncSingle, Single, FuncSingle, Boolean) Method

Adds a PerformanceCounter to be monitored.

Namespace: GSF.Diagnostics
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
Syntax
public void AddCounter(
	string categoryName,
	string counterName,
	string instanceName,
	string aliasName,
	string valueUnit,
	float valueDivisor,
	bool readOnly = true,
	Func<float, float> sampleAdjuster = null,
	Func<float, bool> sampleFilter = null
)
View Source

Parameters

categoryName  String
The name of the performance counter category (performance object) with which this performance counter is associated.
counterName  String
The name of the performance counter.
instanceName  String
The name of the performance counter category instance, or an empty string (""), if the category contains a single instance.
aliasName  String
The alias name for the PerformanceCounter object.
valueUnit  String
The measurement unit for the statistical values of the PerformanceCounter object.
valueDivisor  Single
The divisor to be applied to the statistical values of the PerformanceCounter object.
readOnly  Boolean  (Optional)
Flag that determines if this counter is read-only.
sampleAdjuster  FuncSingle, Single  (Optional)
Defines a custom sample adjustment function for the counter.
sampleFilter  FuncSingle, Boolean  (Optional)
Defines a custom sample filter function for the counter.
See Also