Interface IMetricCollectorBuilder
- Namespace
- PushTechnology.ClientInterface.Client.Features.Metrics
- Assembly
- Diffusion.Client.dll
The common base interface for metric collector builders.
public interface IMetricCollectorBuilder
Methods
ExportsToPrometheus(bool)
Specifies whether the metric collector should export metrics to Prometheus or not.
IMetricCollectorBuilder ExportsToPrometheus(bool exportsToPrometheus)
Parameters
exportsToPrometheusboolTrue to export metrics to Prometheus.
Returns
- IMetricCollectorBuilder
This builder.
Remarks
The default is that metrics are not exported to Prometheus.
MaximumGroups(int)
Sets the maximum number of groups maintained by the metric collector.
IMetricCollectorBuilder MaximumGroups(int limit)
Parameters
limitintA positive integer.
Returns
- IMetricCollectorBuilder
This builder.
Remarks
By default, the number of groups is not limited.
Reset()
Resets the builder.
IMetricCollectorBuilder Reset()
Returns
- IMetricCollectorBuilder
This builder.