Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Monitor Namespace / CustomSampledMetricSample Class / ComputeValue Method / ComputeValue(SampledMetricSample) Method
The previous baseline sample to calculate a difference forThe previous baseline sample to calculate a difference for

ComputeValue(SampledMetricSample) Method
Compute the resultant value for this sample compared with the provided baseline sample Compute the counter value for this sample compared with the provided baseline sample (if any)
Syntax
'Declaration
 
Public Overloads Overrides NotOverridable Function ComputeValue( _
   ByVal baselineSample As SampledMetricSample _
) As Double
 

Parameters

baselineSample
The previous baseline sample to calculate a difference forThe previous baseline sample to calculate a difference for

Return Value

The calculated counter valueThe calculated counter value
Remarks
The baseline sample must be for a date and time prior to this sample for correct results. A baseline sample is required when the current metric requires multiple samples to determine results. The baseline sample must be for a date and time prior to this sample for correct results.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also