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, int?)
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. |
| int? | serviceVersionId | Optional identifier of the service version. |
Returns
| Type | Description |
|---|---|
| bool | 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 |
|---|---|
| bool | 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. |