Class MonitoringActivity
Represents a single monitoring activity.
Inheritance
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class MonitoringActivity : IValidator, IExtensibleDataObject
Constructors
MonitoringActivity()
Initializes a new instance of MonitoringActivity object.
Declaration
public MonitoringActivity()
Properties
ActivityDateTime
Gets or sets the monitoring activity date and time in UTC.
Declaration
public DateTime ActivityDateTime { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
ActivityDetails
Gets or sets the activity details (optional).
Declaration
public string ActivityDetails { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ActivityMessage
Gets or sets the activity message.
Declaration
public string ActivityMessage { get; set; }
Property Value
Type | Description |
---|---|
System.String |
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 (optional).
Declaration
public int? EndpointId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
EndpointName
Gets the endpoint name.
Declaration
public string EndpointName { get; }
Property Value
Type | Description |
---|---|
System.String |
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 (optional).
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 |
IsTraceMessage
Gets flag indicating that activity contains a trace message.
Declaration
public bool IsTraceMessage { 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 |
NodeInstanceId
Gets or sets identifier of the node instance that reported this activity.
Declaration
public int NodeInstanceId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
NodeInstanceName
Gets the node instance name.
Declaration
public string NodeInstanceName { get; }
Property Value
Type | Description |
---|---|
System.String |
NodeName
Gets the node friendly name.
Declaration
public string NodeName { get; }
Property Value
Type | Description |
---|---|
System.String |
ServiceVersionId
Gets or sets the service version id (optional).
Declaration
public int? ServiceVersionId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
ServiceVersionName
Gets the service version friendly name.
Declaration
public string ServiceVersionName { get; }
Property Value
Type | Description |
---|---|
System.String |
Severity
Gets or sets the monitoring activity severity level.
Declaration
public Severity Severity { get; set; }
Property Value
Type | Description |
---|---|
Severity |
TransactionId
Gets or sets the transaction id (optional).
Declaration
public Guid? TransactionId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Guid> |
Updated
Gets this object's updated date and time.
Declaration
public DateTime? Updated { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
Methods
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 monitoring activity.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String that represents the current monitoring activity. |
Overrides
Validate()
Evaluates the state of this object.
Declaration
public bool Validate()
Returns
Type | Description |
---|---|
System.Boolean | True if state is valid; otherwise, false. |