Loupe - Log - Monitor - Resolve
Gibraltar.Agent.Metrics Namespace / SampledMetricValueAttribute Class / SampledMetricValueAttribute Constructor
The name of the metric counter to be defined under the metric category name.
The sampling type of the sampled metric.
A displayable caption for the units this value represents, or null for unit-less values.

In This Topic
    SampledMetricValueAttribute Constructor
    In This Topic
    Map the current field, property, or method to a sampled metric as its own name, with a specified sampling type and unit caption.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal counterName As String, _
       ByVal samplingType As SamplingType, _
       ByVal unitCaption As String _
    )
    public SampledMetricValueAttribute( 
       string counterName,
       SamplingType samplingType,
       string unitCaption
    )

    Parameters

    counterName
    The name of the metric counter to be defined under the metric category name.
    samplingType
    The sampling type of the sampled metric.
    unitCaption
    A displayable caption for the units this value represents, or null for unit-less values.
    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