Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Agent.Metrics Namespace / SampledMetric Class / WriteSample Method / WriteSample(Double,Double,DateTimeOffset) Method
The raw data value.
The divisor entry of this sample.
The exact date and time the raw value was determined.

In This Topic
    WriteSample(Double,Double,DateTimeOffset) Method
    In This Topic
    Write a metric sample with the provided data immediately, for fraction sampling types.
    Syntax
    'Declaration
     
    
    Public Overloads Sub WriteSample( _
       ByVal rawValue As Double, _
       ByVal baseValue As Double, _
       ByVal rawTimestamp As DateTimeOffset _
    ) 

    Parameters

    rawValue
    The raw data value.
    baseValue
    The divisor entry of this sample.
    rawTimestamp
    The exact date and time the raw value was determined.
    Remarks
    Sampled metrics using a non-fraction sampling type should instead use an overload taking a single data values.
    Example
    For examples, see the Sampled Metric class overview.
    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