|
PerformanceMonitorBaseAddCounter(String, String, String, String, String, Single, Boolean, FuncSingle, Single, FuncSingle, Boolean) Method
|
Namespace: GSF.DiagnosticsAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
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
)
Public Sub AddCounter (
categoryName As String,
counterName As String,
instanceName As String,
aliasName As String,
valueUnit As String,
valueDivisor As Single,
Optional readOnly As Boolean = true,
Optional sampleAdjuster As Func(Of Single, Single) = Nothing,
Optional sampleFilter As Func(Of Single, Boolean) = Nothing
)
public:
void AddCounter(
String^ categoryName,
String^ counterName,
String^ instanceName,
String^ aliasName,
String^ valueUnit,
float valueDivisor,
bool readOnly = true,
Func<float, float>^ sampleAdjuster = nullptr,
Func<float, bool>^ sampleFilter = nullptr
)
member AddCounter :
categoryName : string *
counterName : string *
instanceName : string *
aliasName : string *
valueUnit : string *
valueDivisor : float32 *
?readOnly : bool *
?sampleAdjuster : Func<float32, float32> *
?sampleFilter : Func<float32, bool>
(* Defaults:
let _readOnly = defaultArg readOnly true
let _sampleAdjuster = defaultArg sampleAdjuster null
let _sampleFilter = defaultArg sampleFilter null
*)
-> unit
function AddCounter(categoryName, counterName, instanceName, aliasName, valueUnit, valueDivisor, readOnly, sampleAdjuster, sampleFilter);
View SourceParameters
- 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