1 | import { Meter } from './Meter';
|
2 | import { BatchObservableCallback, Counter, Histogram, MetricOptions, ObservableCallback, ObservableCounter, ObservableGauge, ObservableUpDownCounter, UpDownCounter, MetricAttributes, Observable } from './Metric';
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | export declare class NoopMeter implements Meter {
|
8 | constructor();
|
9 | /**
|
10 | * @see {@link Meter.createHistogram}
|
11 | */
|
12 | createHistogram(_name: string, _options?: MetricOptions): Histogram;
|
13 | |
14 |
|
15 |
|
16 | createCounter(_name: string, _options?: MetricOptions): Counter;
|
17 | |
18 |
|
19 |
|
20 | createUpDownCounter(_name: string, _options?: MetricOptions): UpDownCounter;
|
21 | |
22 |
|
23 |
|
24 | createObservableGauge(_name: string, _options?: MetricOptions): ObservableGauge;
|
25 | |
26 |
|
27 |
|
28 | createObservableCounter(_name: string, _options?: MetricOptions): ObservableCounter;
|
29 | |
30 |
|
31 |
|
32 | createObservableUpDownCounter(_name: string, _options?: MetricOptions): ObservableUpDownCounter;
|
33 | |
34 |
|
35 |
|
36 | addBatchObservableCallback(_callback: BatchObservableCallback, _observables: Observable[]): void;
|
37 | |
38 |
|
39 |
|
40 | removeBatchObservableCallback(_callback: BatchObservableCallback): void;
|
41 | }
|
42 | export declare class NoopMetric {
|
43 | }
|
44 | export declare class NoopCounterMetric extends NoopMetric implements Counter {
|
45 | add(_value: number, _attributes: MetricAttributes): void;
|
46 | }
|
47 | export declare class NoopUpDownCounterMetric extends NoopMetric implements UpDownCounter {
|
48 | add(_value: number, _attributes: MetricAttributes): void;
|
49 | }
|
50 | export declare class NoopHistogramMetric extends NoopMetric implements Histogram {
|
51 | record(_value: number, _attributes: MetricAttributes): void;
|
52 | }
|
53 | export declare class NoopObservableMetric {
|
54 | addCallback(_callback: ObservableCallback): void;
|
55 | removeCallback(_callback: ObservableCallback): void;
|
56 | }
|
57 | export declare class NoopObservableCounterMetric extends NoopObservableMetric implements ObservableCounter {
|
58 | }
|
59 | export declare class NoopObservableGaugeMetric extends NoopObservableMetric implements ObservableGauge {
|
60 | }
|
61 | export declare class NoopObservableUpDownCounterMetric extends NoopObservableMetric implements ObservableUpDownCounter {
|
62 | }
|
63 | export declare const NOOP_METER: NoopMeter;
|
64 | export declare const NOOP_COUNTER_METRIC: NoopCounterMetric;
|
65 | export declare const NOOP_HISTOGRAM_METRIC: NoopHistogramMetric;
|
66 | export declare const NOOP_UP_DOWN_COUNTER_METRIC: NoopUpDownCounterMetric;
|
67 | export declare const NOOP_OBSERVABLE_COUNTER_METRIC: NoopObservableCounterMetric;
|
68 | export declare const NOOP_OBSERVABLE_GAUGE_METRIC: NoopObservableGaugeMetric;
|
69 | export declare const NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC: NoopObservableUpDownCounterMetric;
|
70 |
|
71 |
|
72 |
|
73 | export declare function createNoopMeter(): Meter;
|
74 |
|
\ | No newline at end of file |