prometheus-net

Форк
0
34 строки · 1.1 Кб
1
namespace Prometheus;
2

3
public interface ICounter : ICollectorChild
4
{
5
    /// <summary>
6
    /// Increment a counter by 1.
7
    /// </summary>
8
    void 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>
18
    void 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>
29
    void Inc(double increment, Exemplar? exemplar);
30

31
    void IncTo(double targetValue);
32

33
    double Value { get; }
34
}
35

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.