Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Agent.Metrics Namespace / EventMetricInstanceNameAttribute Class
Members

In This Topic
    EventMetricInstanceNameAttribute Class
    In This Topic
    Indicates which field, property, or method should be used to determine the instance name for the event metric.
    Syntax
    'Declaration
     
    
    <AttributeUsageAttribute(AttributeTargets.Field Or  _
        AttributeTargets.Method Or  _
        AttributeTargets.Property, 
       AllowMultiple=False, 
       Inherited=False)>
    <SerializableAttribute()>
    Public NotInheritable Class EventMetricInstanceNameAttribute 
       Inherits System.Attribute
    [AttributeUsage(AttributeTargets.Field | 
        AttributeTargets.Method | 
        AttributeTargets.Property, 
       AllowMultiple=false, 
       Inherited=false)]
    [Serializable()]
    public sealed class EventMetricInstanceNameAttribute : System.Attribute 
    Remarks
    The current object must also have the EventMetric attribute defined. Only one field, property, or method in an object can have this attribute defined. Whatever value is returned will be converted to a string to uniquely identify the metric, or a null value will select the default instance. If no item on an object has this attribute defined, the default event metric will be used unless an instance name is specified when sampling.
    Inheritance Hierarchy

    System.Object
       System.Attribute
          Gibraltar.Agent.Metrics.EventMetricInstanceNameAttribute

    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