NoopMeter
in package
implements
Meter
FinalYes
Tags
Table of Contents
Interfaces
Methods
- __construct() : mixed
- counter() : Counter
- histogram() : Histogram
- observableGauge() : ObservableGauge
- upDownCounter() : UpDownCounter
Methods
__construct()
public
__construct([Counter $counter = new NoopCounter() ][, UpDownCounter $upDownCounter = new NoopUpDownCounter() ][, Histogram $histogram = new NoopHistogram() ][, ObservableGauge $observableGauge = new NoopObservableGauge() ]) : mixed
Parameters
- $counter : Counter = new NoopCounter()
- $upDownCounter : UpDownCounter = new NoopUpDownCounter()
- $histogram : Histogram = new NoopHistogram()
- $observableGauge : ObservableGauge = new NoopObservableGauge()
counter()
public
counter(string $name[, string $unit = '' ][, string $description = '' ]) : Counter
Parameters
- $name : string
- $unit : string = ''
- $description : string = ''
Return values
Counterhistogram()
public
histogram(string $name[, string $unit = '' ][, string $description = '' ]) : Histogram
Parameters
- $name : string
- $unit : string = ''
- $description : string = ''
Return values
HistogramobservableGauge()
public
observableGauge(string $name, callable $callback[, string $unit = '' ][, string $description = '' ]) : ObservableGauge
Parameters
- $name : string
- $callback : callable
- $unit : string = ''
- $description : string = ''
Return values
ObservableGaugeupDownCounter()
public
upDownCounter(string $name[, string $unit = '' ][, string $description = '' ]) : UpDownCounter
Parameters
- $name : string
- $unit : string = ''
- $description : string = ''