Loupe - Log - Monitor - Resolve
Gibraltar.Monitor Namespace / CustomSampledMetric Class / OnMetricSampleRead Method
The metric sample packet being deserializedThe metric sample packet being deserialized

In This Topic
    OnMetricSampleRead Method (CustomSampledMetric)
    In This Topic
    Invoked when deserializing a metric sample to allow inheritors to provide derived implementations Invoked when deserializing a metric sample to allow inheritors to provide derived implementations
    Syntax
    'Declaration
     
    
    Protected Overrides NotOverridable Function OnMetricSampleRead( _
       ByVal packet As MetricSamplePacket _
    ) As MetricSample
    protected override MetricSample OnMetricSampleRead( 
       MetricSamplePacket packet
    )

    Parameters

    packet
    The metric sample packet being deserializedThe metric sample packet being deserialized

    Return Value

    The metric sample-compatible object.The metric sample-compatible object.
    Remarks
    If you wish to provide a derived class for metric samples in your derived metric, use this method to create and return your derived object to support the deserialization process. This is used during object construction, so implementations should treat it as a static method.If you wish to provide a derived class for metric samples in your derived metric, use this method to create and return your derived object to support the deserialization process. This is used during object construction, so implementations should treat it as a static method.
    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