Loupe - Log - Monitor - Resolve
Gibraltar.Monitor Namespace / CustomSampledMetric Class / CreateSample Method / CreateSample(Double) Method
The raw data value

In This Topic
    CreateSample(Double) Method
    In This Topic
    Create a complete metric sample from the provided data. The caller must write this sample for it to be recorded.
    Syntax
    'Declaration
     
    
    Public Overloads Function CreateSample( _
       ByVal rawValue As Double _
    ) As CustomSampledMetricSample
    public CustomSampledMetricSample CreateSample( 
       double rawValue
    )

    Parameters

    rawValue
    The raw data value
    Remarks
    To write this sample out to the log, use Log.Write. If you are sampling multiple metrics at the same time, it is faster to create each of the samples and write them with one call to Log.Write instead of writing them out individually.
    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