Class MonitoringRecord
Represents a single monitoring record.
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 |
---|---|
DateTime |
EndpointId
Gets or sets the endpoint id.
Declaration
public int EndpointId { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
ErrorMessage
Gets the summary of validation errors populated by the call to Validate() method.
Declaration
public string ErrorMessage { get; }
Property Value
Type | Description |
---|---|
String |
ExchangeId
Gets or sets unique message exchange identifier.
Declaration
public string ExchangeId { get; set; }
Property Value
Type | Description |
---|---|
String |
ExtensionData
Gets or sets ExtensionDataObject that enables serialization roundtrips.
Declaration
public ExtensionDataObject ExtensionData { get; set; }
Property Value
Type | Description |
---|---|
ExtensionDataObject |
Id
Gets or sets this domain object's id.
Declaration
public long Id { get; set; }
Property Value
Type | Description |
---|---|
Int64 |
IsFault
Gets or sets the fault flag.
Declaration
public bool IsFault { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IsOutbound
Gets the flag indicating that message was recorded in an outbound endpoint.
Declaration
public bool IsOutbound { get; }
Property Value
Type | Description |
---|---|
Boolean |
NodeId
Gets or sets the node id.
Declaration
public int NodeId { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
RecordedMessage
Gets or sets the recorded message.
Declaration
public string RecordedMessage { get; set; }
Property Value
Type | Description |
---|---|
String |
RecordedMessageSize
Gets or sets the recorded message size.
Declaration
public long RecordedMessageSize { get; set; }
Property Value
Type | Description |
---|---|
Int64 |
RecordingDateTime
Gets or sets the recording date and time in UTC.
Declaration
public DateTime RecordingDateTime { get; set; }
Property Value
Type | Description |
---|---|
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 |
---|---|
String |
Updated
Gets this object's updated date and time.
Declaration
public DateTime? Updated { get; }
Property Value
Type | Description |
---|---|
Nullable<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 |
---|---|---|
String | exchangeId | Identifier of the message exchange this record belongs to. |
Int32 | nodeId | Identifier of the node that recorded the message. |
Int32 | endpointId | Identifier of the endpoint where message was recorded. |
RecordingPoints | recordingPoint | The place in the endpoint where message was recorded. |
Boolean | isFault | Flag indicating that message is SOAP fault. |
String | message | Message content. |
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 |
---|---|
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 |
---|---|
String | String that represents the current message record. |
Overrides
Validate()
Evaluates the state of this object.
Declaration
public bool Validate()
Returns
Type | Description |
---|---|
Boolean | True if state is valid; otherwise, false. |