Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Agent.Metrics Namespace / SampledMetricDefinition Class / Write Method / Write(Object,String) Method
A user data object defining sampled metrics by attributes on itself or its interfaces or any inherited type.
The instance name to fall back on if a given definition does not specify an instance name binding (may be null).

Write(Object,String) Method
Sample every sampled metric defined by SampledMetric and SampledMetricValue attributes on the provided data object at any interface or inheritance level.
Syntax
'Declaration
 
Public Overloads Shared Sub Write( _
   ByVal metricData As Object, _
   ByVal fallbackInstanceName As String _
) 
 

Parameters

metricData
A user data object defining sampled metrics by attributes on itself or its interfaces or any inherited type.
fallbackInstanceName
The instance name to fall back on if a given definition does not specify an instance name binding (may be null).
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