prometheus-net
34 строки · 1.1 Кб
1namespace Prometheus;2
3public interface ICounter : ICollectorChild4{
5/// <summary>6/// Increment a counter by 1.7/// </summary>8void Inc(double increment = 1.0);9
10/// <summary>11/// Increment a counter by 1.12/// </summary>13/// <param name="exemplar">14/// A set of labels representing an exemplar, created using Exemplar.From().15/// If null, the default exemplar provider associated with the metric is asked to provide an exemplar.16/// Pass Exemplar.None to explicitly record an observation without an exemplar.17/// </param>18void Inc(Exemplar? exemplar);19
20/// <summary>21/// Increment a counter.22/// </summary>23/// <param name="increment">The increment.</param>24/// <param name="exemplar">25/// A set of labels representing an exemplar, created using Exemplar.From().26/// If null, the default exemplar provider associated with the metric is asked to provide an exemplar.27/// Pass Exemplar.None to explicitly record an observation without an exemplar.28/// </param>29void Inc(double increment, Exemplar? exemplar);30
31void IncTo(double targetValue);32
33double Value { get; }34}
35