Class NodeStatusResponse
NodeStatus contains the information about a node status
Inheritance
Implements
Inherited Members
Namespace: Algorand.V2.Model
Assembly: Algorand.dll
Syntax
[DataContract]
public class NodeStatusResponse : IEquatable<NodeStatusResponse>, IValidatableObject
Constructors
| Improve this Doc View SourceNodeStatusResponse()
Initializes a new instance of the NodeStatusResponse class.
Declaration
[JsonConstructor]
protected NodeStatusResponse()
NodeStatusResponse(Nullable<Int64>, Nullable<Int64>, String, String, Nullable<Int64>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int64>, String, String, Nullable<Int64>, Nullable<Int64>, Nullable<Int64>, Nullable<Int64>)
Initializes a new instance of the NodeStatusResponse class.
Declaration
public NodeStatusResponse(long? catchupTime = default(long? ), long? lastRound = default(long? ), string lastVersion = null, string nextVersion = null, long? nextVersionRound = default(long? ), bool? nextVersionSupported = default(bool? ), bool? stoppedAtUnsupportedRound = default(bool? ), long? timeSinceLastRound = default(long? ), string lastCatchpoint = null, string catchpoint = null, long? catchpointTotalAccounts = default(long? ), long? catchpointProcessedAccounts = default(long? ), long? catchpointTotalBlocks = default(long? ), long? catchpointAcquiredBlocks = default(long? ))
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Int64> | catchupTime | CatchupTime in nanoseconds (required). |
System.Nullable<System.Int64> | lastRound | LastRound indicates the last round seen (required). |
System.String | lastVersion | LastVersion indicates the last consensus version supported (required). |
System.String | nextVersion | NextVersion of consensus protocol to use (required). |
System.Nullable<System.Int64> | nextVersionRound | NextVersionRound is the round at which the next consensus version will apply (required). |
System.Nullable<System.Boolean> | nextVersionSupported | NextVersionSupported indicates whether the next consensus version is supported by this node (required). |
System.Nullable<System.Boolean> | stoppedAtUnsupportedRound | StoppedAtUnsupportedRound indicates that the node does not support the new rounds and has stopped making progress (required). |
System.Nullable<System.Int64> | timeSinceLastRound | TimeSinceLastRound in nanoseconds (required). |
System.String | lastCatchpoint | The last catchpoint seen by the node. |
System.String | catchpoint | The current catchpoint that is being caught up to. |
System.Nullable<System.Int64> | catchpointTotalAccounts | The total number of accounts included in the current catchpoint. |
System.Nullable<System.Int64> | catchpointProcessedAccounts | The number of account from the current catchpoint that have been processed so far as part of the catchup. |
System.Nullable<System.Int64> | catchpointTotalBlocks | The total number of blocks that are required to complete the current catchpoint catchup. |
System.Nullable<System.Int64> | catchpointAcquiredBlocks | The number of blocks that have already been obtained by the node as part of the catchup. |
Properties
| Improve this Doc View SourceCatchpoint
The current catchpoint that is being caught up to
Declaration
[DataMember(Name = "catchpoint", EmitDefaultValue = false)]
public string Catchpoint { get; set; }
Property Value
Type | Description |
---|---|
System.String | The current catchpoint that is being caught up to |
CatchpointAcquiredBlocks
The number of blocks that have already been obtained by the node as part of the catchup
Declaration
[DataMember(Name = "catchpoint-acquired-blocks", EmitDefaultValue = false)]
public long? CatchpointAcquiredBlocks { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> | The number of blocks that have already been obtained by the node as part of the catchup |
CatchpointProcessedAccounts
The number of account from the current catchpoint that have been processed so far as part of the catchup
Declaration
[DataMember(Name = "catchpoint-processed-accounts", EmitDefaultValue = false)]
public long? CatchpointProcessedAccounts { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> | The number of account from the current catchpoint that have been processed so far as part of the catchup |
CatchpointTotalAccounts
The total number of accounts included in the current catchpoint
Declaration
[DataMember(Name = "catchpoint-total-accounts", EmitDefaultValue = false)]
public long? CatchpointTotalAccounts { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> | The total number of accounts included in the current catchpoint |
CatchpointTotalBlocks
The total number of blocks that are required to complete the current catchpoint catchup
Declaration
[DataMember(Name = "catchpoint-total-blocks", EmitDefaultValue = false)]
public long? CatchpointTotalBlocks { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> | The total number of blocks that are required to complete the current catchpoint catchup |
CatchupTime
CatchupTime in nanoseconds
Declaration
[DataMember(Name = "catchup-time", EmitDefaultValue = false)]
public long? CatchupTime { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> | CatchupTime in nanoseconds |
LastCatchpoint
The last catchpoint seen by the node
Declaration
[DataMember(Name = "last-catchpoint", EmitDefaultValue = false)]
public string LastCatchpoint { get; set; }
Property Value
Type | Description |
---|---|
System.String | The last catchpoint seen by the node |
LastRound
LastRound indicates the last round seen
Declaration
[DataMember(Name = "last-round", EmitDefaultValue = false)]
public long? LastRound { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> | LastRound indicates the last round seen |
LastVersion
LastVersion indicates the last consensus version supported
Declaration
[DataMember(Name = "last-version", EmitDefaultValue = false)]
public string LastVersion { get; set; }
Property Value
Type | Description |
---|---|
System.String | LastVersion indicates the last consensus version supported |
NextVersion
NextVersion of consensus protocol to use
Declaration
[DataMember(Name = "next-version", EmitDefaultValue = false)]
public string NextVersion { get; set; }
Property Value
Type | Description |
---|---|
System.String | NextVersion of consensus protocol to use |
NextVersionRound
NextVersionRound is the round at which the next consensus version will apply
Declaration
[DataMember(Name = "next-version-round", EmitDefaultValue = false)]
public long? NextVersionRound { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> | NextVersionRound is the round at which the next consensus version will apply |
NextVersionSupported
NextVersionSupported indicates whether the next consensus version is supported by this node
Declaration
[DataMember(Name = "next-version-supported", EmitDefaultValue = false)]
public bool? NextVersionSupported { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> | NextVersionSupported indicates whether the next consensus version is supported by this node |
StoppedAtUnsupportedRound
StoppedAtUnsupportedRound indicates that the node does not support the new rounds and has stopped making progress
Declaration
[DataMember(Name = "stopped-at-unsupported-round", EmitDefaultValue = false)]
public bool? StoppedAtUnsupportedRound { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> | StoppedAtUnsupportedRound indicates that the node does not support the new rounds and has stopped making progress |
TimeSinceLastRound
TimeSinceLastRound in nanoseconds
Declaration
[DataMember(Name = "time-since-last-round", EmitDefaultValue = false)]
public long? TimeSinceLastRound { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> | TimeSinceLastRound in nanoseconds |
Methods
| Improve this Doc View SourceEquals(NodeStatusResponse)
Returns true if NodeStatusResponse instances are equal
Declaration
public bool Equals(NodeStatusResponse input)
Parameters
Type | Name | Description |
---|---|---|
NodeStatusResponse | input | Instance of NodeStatusResponse to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
System.Object | input | Object to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Overrides
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
Overrides
ToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceIValidatableObject.Validate(ValidationContext)
To validate all properties of the instance
Declaration
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.DataAnnotations.ValidationContext | validationContext | Validation context |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> | Validation Result |