Class HttpMetricsCollector
Contains a set of callbacks that can be used to report runtime metrics generated by HTTP-specific implementation of Raft cluster node.
Implements
Metrics.IClientMetricsCollector
Namespace: DotNext.Net.Cluster.Consensus.Raft.Http
Assembly: DotNext.AspNetCore.Cluster.dll
Syntax
public class HttpMetricsCollector : MetricsCollector, Metrics.IClientMetricsCollector
Remarks
You need to register singleton service of type
Methods
| Improve this Doc View SourceReportResponseTime(TimeSpan)
Reports about HTTP response time.
Declaration
public virtual void ReportResponseTime(TimeSpan value)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | value | The response time. |
Implements
Metrics.IClientMetricsCollector