Class MonitoringExtensions
Provides methods for writing or retrieving monitoring data.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Monitoring
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public static class MonitoringExtensions
  Methods
WriteMonitoringActivity(Message, Severity, String, String, Nullable<Int32>)
Writes an activity monitoring record associated with the provided message.
Declaration
public static bool WriteMonitoringActivity(this Message message, Severity severity, string activityMessage, string activityDetails, int? serviceVersionId)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Message | message | Message associated with the activity that needs to be recorded.  | 
      
| Severity | severity | Severity level of the log record.  | 
      
| String | activityMessage | Text message that needs to be recorded.  | 
      
| String | activityDetails | Optional data associated with the recorded activity.  | 
      
| Nullable<Int32> | serviceVersionId | Optional identifier of the service version.  | 
      
Returns
| Type | Description | 
|---|---|
| Boolean | Flag indicating that activity has been successfully recorded. If False then either monitoring subsystem has been disabled or provided message can not be associated with a monitoring transaction.  | 
      
WriteMonitoringTransactionProperty(Message, ServiceConfiguration, String, String)
Writes a monitoring transaction property associated with the provided message.
Declaration
public static bool WriteMonitoringTransactionProperty(this Message message, ServiceConfiguration serviceConfiguration, string name, string value)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Message | message | Message associated with the monitoring transaction which property needs to be recorded.  | 
      
| ServiceConfiguration | serviceConfiguration | Service configuration corresponding to the current virtual service.  | 
      
| String | name | Name of the property to be recorded (required).  | 
      
| String | value | Value of the property to be recorded (optional).  | 
      
Returns
| Type | Description | 
|---|---|
| Boolean | Flag indicating that property has been successfully recorded. If False then either monitoring subsystem has been disabled or provided message can not be associated with a monitoring transaction.  |