Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Monitor Namespace / EventMetric Class / EventMetric Constructor / EventMetric Constructor(MetricDefinitionCollection,String,String,String,String)
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 unique name of this instance within the metric's collection.

In This Topic
    EventMetric Constructor(MetricDefinitionCollection,String,String,String,String)
    In This Topic
    Creates a new event metric object from the metric definition looked up with the provided key information.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal definitions As MetricDefinitionCollection, _
       ByVal metricTypeName As String, _
       ByVal categoryName As String, _
       ByVal counterName As String, _
       ByVal instanceName As String _
    )
    public EventMetric( 
       MetricDefinitionCollection definitions,
       string metricTypeName,
       string categoryName,
       string counterName,
       string instanceName
    )

    Parameters

    definitions
    The definitions dictionary this definition is a part of
    metricTypeName
    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.
    instanceName
    The unique name of this instance within the metric's collection.
    Remarks
    The metric definition must already exist or an exception will be raised.
    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