Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Agent.Metrics Namespace / SampledMetricDefinition Class / WriteSample Method / WriteSample(String,Double,DateTimeOffset) Method
The instance name to use, or null or empty for the default metric instance.
The raw data value
The exact date and time the raw value was determined

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

    Parameters

    instanceName
    The instance name to use, or null or empty for the default metric instance.
    rawValue
    The raw data value
    rawTimestamp
    The exact date and time the raw value was determined
    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