mirror of
https://github.com/danog/better-prometheus.git
synced 2024-11-26 12:24:39 +01:00
Bump docs
This commit is contained in:
parent
f0eb82c76a
commit
74e19343be
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: "danog\\BetterPrometheus\\BetterCollectorRegistry: "
|
title: "danog\\BetterPrometheus\\BetterCollectorRegistry: A better collector registry."
|
||||||
description: ""
|
description: ""
|
||||||
|
|
||||||
---
|
---
|
||||||
@ -9,7 +9,7 @@ description: ""
|
|||||||
> Author: Daniil Gentili <daniil@daniil.it>
|
> Author: Daniil Gentili <daniil@daniil.it>
|
||||||
|
|
||||||
|
|
||||||
|
A better collector registry.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ A better prometheus histogram.
|
|||||||
## Method list:
|
## Method list:
|
||||||
* [`__construct(\Prometheus\Storage\Adapter $adapter, string $namespace, string $name, string $help, array<string, string> $labels = [], (non-empty-list<float>|null) $buckets = NULL)`](#__construct)
|
* [`__construct(\Prometheus\Storage\Adapter $adapter, string $namespace, string $name, string $help, array<string, string> $labels = [], (non-empty-list<float>|null) $buckets = NULL)`](#__construct)
|
||||||
* [`addLabels(array $labels): static`](#addLabels)
|
* [`addLabels(array $labels): static`](#addLabels)
|
||||||
* [`observe(double $value, array<string, string> $labels = []): void`](#observe)
|
* [`observe((double|int) $value, array<string, string> $labels = []): void`](#observe)
|
||||||
|
|
||||||
## Methods:
|
## Methods:
|
||||||
### <a name="__construct"></a> `__construct(\Prometheus\Storage\Adapter $adapter, string $namespace, string $name, string $help, array<string, string> $labels = [], (non-empty-list<float>|null) $buckets = NULL)`
|
### <a name="__construct"></a> `__construct(\Prometheus\Storage\Adapter $adapter, string $namespace, string $name, string $help, array<string, string> $labels = [], (non-empty-list<float>|null) $buckets = NULL)`
|
||||||
@ -63,14 +63,14 @@ Parameters:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
### <a name="observe"></a> `observe(double $value, array<string, string> $labels = []): void`
|
### <a name="observe"></a> `observe((double|int) $value, array<string, string> $labels = []): void`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
|
|
||||||
* `$value`: `double` e.g. 123
|
* `$value`: `(double|int)` e.g. 123
|
||||||
* `$labels`: `array<string, string>` e.g. ['status' => '201', 'opcode' => 'SOME_OP']
|
* `$labels`: `array<string, string>` e.g. ['status' => '201', 'opcode' => 'SOME_OP']
|
||||||
|
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ A better prometheus summary.
|
|||||||
## Method list:
|
## Method list:
|
||||||
* [`__construct(\Prometheus\Storage\Adapter $adapter, string $namespace, string $name, string $help, array<string, string> $labels = [], int $maxAgeSeconds = 600, ?non-empty-list<float> $quantiles = NULL)`](#__construct)
|
* [`__construct(\Prometheus\Storage\Adapter $adapter, string $namespace, string $name, string $help, array<string, string> $labels = [], int $maxAgeSeconds = 600, ?non-empty-list<float> $quantiles = NULL)`](#__construct)
|
||||||
* [`addLabels(array $labels): static`](#addLabels)
|
* [`addLabels(array $labels): static`](#addLabels)
|
||||||
* [`observe(double $value, array<string, string> $labels = []): void`](#observe)
|
* [`observe((double|int) $value, array<string, string> $labels = []): void`](#observe)
|
||||||
|
|
||||||
## Methods:
|
## Methods:
|
||||||
### <a name="__construct"></a> `__construct(\Prometheus\Storage\Adapter $adapter, string $namespace, string $name, string $help, array<string, string> $labels = [], int $maxAgeSeconds = 600, ?non-empty-list<float> $quantiles = NULL)`
|
### <a name="__construct"></a> `__construct(\Prometheus\Storage\Adapter $adapter, string $namespace, string $name, string $help, array<string, string> $labels = [], int $maxAgeSeconds = 600, ?non-empty-list<float> $quantiles = NULL)`
|
||||||
@ -66,14 +66,14 @@ Parameters:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
### <a name="observe"></a> `observe(double $value, array<string, string> $labels = []): void`
|
### <a name="observe"></a> `observe((double|int) $value, array<string, string> $labels = []): void`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
|
|
||||||
* `$value`: `double` e.g. 123
|
* `$value`: `(double|int)` e.g. 123
|
||||||
* `$labels`: `array<string, string>` e.g. ['status' => '404', 'opcode' => 'SOME_OP']
|
* `$labels`: `array<string, string>` e.g. ['status' => '404', 'opcode' => 'SOME_OP']
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ A better Prometheus library for PHP applications
|
|||||||
* [\danog\BetterPrometheus\BetterCollector: A better prometheus collector.](danog/BetterPrometheus/BetterCollector.md)
|
* [\danog\BetterPrometheus\BetterCollector: A better prometheus collector.](danog/BetterPrometheus/BetterCollector.md)
|
||||||
|
|
||||||
## Classes
|
## Classes
|
||||||
* [\danog\BetterPrometheus\BetterCollectorRegistry](danog/BetterPrometheus/BetterCollectorRegistry.md)
|
* [\danog\BetterPrometheus\BetterCollectorRegistry: A better collector registry.](danog/BetterPrometheus/BetterCollectorRegistry.md)
|
||||||
* [\danog\BetterPrometheus\BetterCounter: A better prometheus counter.](danog/BetterPrometheus/BetterCounter.md)
|
* [\danog\BetterPrometheus\BetterCounter: A better prometheus counter.](danog/BetterPrometheus/BetterCounter.md)
|
||||||
* [\danog\BetterPrometheus\BetterGauge: A better prometheus gauge.](danog/BetterPrometheus/BetterGauge.md)
|
* [\danog\BetterPrometheus\BetterGauge: A better prometheus gauge.](danog/BetterPrometheus/BetterGauge.md)
|
||||||
* [\danog\BetterPrometheus\BetterHistogram: A better prometheus histogram.](danog/BetterPrometheus/BetterHistogram.md)
|
* [\danog\BetterPrometheus\BetterHistogram: A better prometheus histogram.](danog/BetterPrometheus/BetterHistogram.md)
|
||||||
|
Loading…
Reference in New Issue
Block a user