Loupe - Log - Monitor - Resolve
Gibraltar.Agent.Metrics Namespace / SampledMetricDefinition Class / WriteSample Method / WriteSample(String,Double,Double) Method
The instance name to use, or null or empty for the default metric instance.
The raw data value
The divisor entry of this sample.

In This Topic
    WriteSample(String,Double,Double) Method
    In This Topic
    Write a metric sample to the specified metric instance with the provided data pair, for fraction sampling types.
    Syntax
    'Declaration
     
    
    Public Overloads Sub WriteSample( _
       ByVal instanceName As String, _
       ByVal rawValue As Double, _
       ByVal baseValue As Double _
    ) 
    public void WriteSample( 
       string instanceName,
       double rawValue,
       double baseValue
    )

    Parameters

    instanceName
    The instance name to use, or null or empty for the default metric instance.
    rawValue
    The raw data value
    baseValue
    The divisor entry of this sample.
    Remarks
    The specified metric instance is created if it does not already exist.
    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