Function summary

  • Parameters

    Returns ((proto, key) => void)

      • (proto, key): void
      • Parameters

        • proto: any
        • key: string

        Returns void

    Example

    import { summary, Summary } from '@biorate/prometheus';

    class Test {
    @histogram({
    name: 'test_summary',
    help: 'Test summary',
    labelNames: ['label1', 'label2'],
    })
    protected summary: Summary;

    public metric() {
    this.summary.labels({ label1: 1, label2: 2 }).observe(10);
    }
    }

    const test = new Test();

    test.metric();

Generated using TypeDoc