Class MonitoringActivity
Represents a single monitoring activity.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
[DataContract(Namespace = "http://schemas.nevatech.com/sentinet/2011/02", Name = "Activity")]
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
[DataMember(Name = "Time")]
public DateTime ActivityDateTime { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
ActivityDetails
Gets or sets the activity details (optional).
Declaration
[DataMember(Name = "Details", EmitDefaultValue = false)]
public string ActivityDetails { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ActivityMessage
Gets or sets the activity message.
Declaration
[DataMember(Name = "Message")]
public string ActivityMessage { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Created
Gets this object's created date and time.
Declaration
[DataMember(EmitDefaultValue = false)]
public DateTime Created { get; }
Property Value
| Type | Description |
|---|---|
| DateTime |
EndpointId
Gets or sets the endpoint id (optional).
Declaration
[DataMember(Name = "EpId", EmitDefaultValue = false)]
public int? EndpointId { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
EndpointName
Gets the endpoint name.
Declaration
[DataMember(EmitDefaultValue = false)]
public string EndpointName { get; }
Property Value
| Type | Description |
|---|---|
| string |
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 (optional).
Declaration
[DataMember(Name = "ExchId", EmitDefaultValue = false)]
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
[DataMember(EmitDefaultValue = false)]
public long Id { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
IsTraceMessage
Gets flag indicating that activity contains a trace message.
Declaration
public bool IsTraceMessage { get; }
Property Value
| Type | Description |
|---|---|
| bool |
NodeId
Gets or sets the node id.
Declaration
[DataMember]
public int NodeId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
NodeInstanceId
Gets or sets identifier of the node instance that reported this activity.
Declaration
[DataMember(Name = "InId")]
public int NodeInstanceId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
NodeInstanceName
Gets the node instance name.
Declaration
[DataMember(EmitDefaultValue = false)]
public string NodeInstanceName { get; }
Property Value
| Type | Description |
|---|---|
| string |
NodeName
Gets the node friendly name.
Declaration
[DataMember(EmitDefaultValue = false)]
public string NodeName { get; }
Property Value
| Type | Description |
|---|---|
| string |
ServiceVersionId
Gets or sets the service version id (optional).
Declaration
[DataMember(Name = "SvcId", EmitDefaultValue = false)]
public int? ServiceVersionId { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
ServiceVersionName
Gets the service version friendly name.
Declaration
[DataMember(EmitDefaultValue = false)]
public string ServiceVersionName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Severity
Gets or sets the monitoring activity severity level.
Declaration
[DataMember]
public Severity Severity { get; set; }
Property Value
| Type | Description |
|---|---|
| Severity |
TransactionId
Gets or sets the transaction id (optional).
Declaration
[DataMember(Name = "TranId", EmitDefaultValue = false)]
public Guid? TransactionId { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid? |
Updated
Gets this object's updated date and time.
Declaration
[DataMember(EmitDefaultValue = false)]
public DateTime? Updated { get; }
Property Value
| Type | Description |
|---|---|
| DateTime? |
Methods
GetSize()
Calculates and returns approximate size of the serialized to XML instance.
Declaration
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
public int GetSize()
Returns
| Type | Description |
|---|---|
| int | 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 |
|---|---|
| string | String that represents the current monitoring activity. |
Overrides
Validate()
Evaluates the state of this object.
Declaration
public bool Validate()
Returns
| Type | Description |
|---|---|
| bool | True if state is valid; otherwise, false. |