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

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

    Parameters

    instanceName
    The instance name to use, or null or empty for the default metric instance.
    rawValue
    The raw data value
    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