DotNext.Net.Cluster by .NET Foundation and Contributors

<PackageReference Include="DotNext.Net.Cluster" Version="4.1.3" />

.NET API 528,856 bytes

 MetricsCollector

Contains a set of callbacks that can be used to report runtime metrics generated by Raft cluster node.

public virtual void MovedToCandidateState()

Reports that node becomes a candidate.

public virtual void MovedToFollowerState()

Reports that node becomes a follower.

public virtual void MovedToLeaderState()

Reports that node becomes a leader.

public virtual void ReportBroadcastTime(TimeSpan value)

Reports about broadcast time.

public virtual void ReportHeartbeat()

Reports that node receives a heartbeat from leader node.