Class MonitoringRecord
Represents a single monitoring record.
Inheritance
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class MonitoringRecord : IValidator, IExtensibleDataObject
Constructors
MonitoringRecord()
Initializes a new instance of MonitoringRecord object.
Declaration
public MonitoringRecord()
Properties
Created
Gets this object's created date and time.
Declaration
public DateTime Created { get; }
Property Value
| Type | Description |
|---|---|
| System.DateTime |
EndpointId
Gets or sets the endpoint id.
Declaration
public int EndpointId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
ErrorMessage
Gets the summary of validation errors populated by the call to Validate() method.
Declaration
public string ErrorMessage { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
ExchangeId
Gets or sets unique message exchange identifier.
Declaration
public string ExchangeId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
ExtensionData
Gets or sets System.Runtime.Serialization.ExtensionDataObject that enables serialization roundtrips.
Declaration
public ExtensionDataObject ExtensionData { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Runtime.Serialization.ExtensionDataObject |
Id
Gets or sets this domain object's id.
Declaration
public long Id { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int64 |
IsFault
Gets or sets the fault flag.
Declaration
public bool IsFault { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsOutbound
Gets the flag indicating that message was recorded in an outbound endpoint.
Declaration
public bool IsOutbound { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsRequest
Gets flag indicating that recorded content belongs to a request message.
Declaration
public bool IsRequest { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
NodeId
Gets or sets the node id.
Declaration
public int NodeId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
RecordedMessage
Gets or sets the recorded message.
Declaration
public string RecordedMessage { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
RecordedMessageSize
Gets or sets the recorded message size.
Declaration
public long RecordedMessageSize { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int64 |
RecordingDateTime
Gets or sets the recording date and time in UTC.
Declaration
public DateTime RecordingDateTime { get; set; }
Property Value
| Type | Description |
|---|---|
| System.DateTime |
RecordingPoint
Gets or sets the point where message was recorded.
Declaration
public RecordingPoints RecordingPoint { get; set; }
Property Value
| Type | Description |
|---|---|
| RecordingPoints |
TransportData
Gets or sets recorded transport level properties (like HTTP headers, context properties, etc).
Declaration
public string TransportData { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Updated
Gets this object's updated date and time.
Declaration
public DateTime? Updated { get; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.DateTime> |
Methods
Create(String, Int32, Int32, RecordingPoints, Boolean, String, String)
Creates new monitoring record populated with provided data.
Declaration
public static MonitoringRecord Create(string exchangeId, int nodeId, int endpointId, RecordingPoints recordingPoint, bool isFault, string message, string transportData)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | exchangeId | Identifier of the message exchange this record belongs to. |
| System.Int32 | nodeId | Identifier of the node that recorded the message. |
| System.Int32 | endpointId | Identifier of the endpoint where message was recorded. |
| RecordingPoints | recordingPoint | The place in the endpoint where message was recorded. |
| System.Boolean | isFault | Flag indicating that message is SOAP fault. |
| System.String | message | Message content. |
| System.String | transportData | Optional transport headers (like HTTP headers). |
Returns
| Type | Description |
|---|---|
| MonitoringRecord | Monitoring record populated with provided data. |
GetSize()
Calculates and returns approximate size of the serialized to XML instance.
Declaration
public int GetSize()
Returns
| Type | Description |
|---|---|
| System.Int32 | Approximate size of the serialized to XML instance. |
ToString()
Returns a string that represents the current message record.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String | String that represents the current message record. |
Overrides
Validate()
Evaluates the state of this object.
Declaration
public bool Validate()
Returns
| Type | Description |
|---|---|
| System.Boolean | True if state is valid; otherwise, false. |