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

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

    Parameters

    rawValue
    The raw data value.
    rawTimestamp
    The exact date and time the raw value was determined.
    Remarks
    Sampled metrics using any fraction sampling type should instead use an overload providing both 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