Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Agent.Metrics Namespace / EventMetric Class / Write Method / Write(Object,String) Method
The object to retrieve both metric values and definition from
The instance name to fall back on if a definition does not specify an instance name binding (may be null).

Write(Object,String) Method
Write event metric samples for all event metrics defined on the provided data object by attributes.
Syntax
'Declaration
 
Public Overloads Shared Sub Write( _
   ByVal metricData As Object, _
   ByVal fallbackInstanceName As String _
) 
 

Parameters

metricData
The object to retrieve both metric values and definition from
fallbackInstanceName
The instance name to fall back on if a definition does not specify an instance name binding (may be null).
Remarks
The provided user data object must be assignable to the bound type which defined this event metric via attributes.
Example
See the EventMetric Class Overview for an example.
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