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

SampledMetricValueAttribute Class
Define a specific sampled metric counter mapped from this field, property, or zero-argument method.
Syntax
'Declaration
 
<AttributeUsageAttribute(AttributeTargets.Field Or  _
    AttributeTargets.Method Or  _
    AttributeTargets.Property, 
   AllowMultiple=True, 
   Inherited=False)>
<SerializableAttribute()>
Public NotInheritable Class SampledMetricValueAttribute 
   Inherits System.Attribute
 
Remarks
By decorating a field, property, or method with this attribute you can define how it should be recorded as a sampled metric. The enclosing object must also have the SampledMetric attribute defined. More than one SampledMetricValue attribute may be applied to any field, property, or zero-argument method, provided that each specifies a counter name unique within the metric namespace and category name specified in the SampledMetric attribute on the enclosing object. If the counter name is not specified (or null), the name of the member is used as the counter name by default. For sampling types requiring a divisor, use the SampledMetricDivisor attribute (specifying the same counter name as this sampled metric) to designate another field, property, or method to provide it.
Inheritance Hierarchy

System.Object
   System.Attribute
      Gibraltar.Agent.Metrics.SampledMetricValueAttribute

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