Loupe - Log - Monitor - Resolve
Gibraltar.Monitor Namespace / MetricDefinition Class / MetricDefinition Constructor
The definitions dictionary this definition is a part of
The unique metric type
The name of the category with which this definition is associated.
The name of the definition within the category.
The type of data sampling done for this metric.

In This Topic
    MetricDefinition Constructor
    In This Topic
    Create a new metric definition.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal definitions As MetricDefinitionCollection, _
       ByVal metricType As String, _
       ByVal categoryName As String, _
       ByVal counterName As String, _
       ByVal sampleType As SampleType _
    )
    public MetricDefinition( 
       MetricDefinitionCollection definitions,
       string metricType,
       string categoryName,
       string counterName,
       SampleType sampleType
    )

    Parameters

    definitions
    The definitions dictionary this definition is a part of
    metricType
    The unique metric type
    categoryName
    The name of the category with which this definition is associated.
    counterName
    The name of the definition within the category.
    sampleType
    The type of data sampling done for this metric.
    Remarks
    At any one time there should only be one metric definition with a given combination of metric type, category, and counter name. These values together are used to correlate metrics between sessions. The metric definition will not be automatically added to the provided collection.
    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