|
MediaWiki REL1_39
|
Public Member Functions | |
| __construct (array $config, MetricUtils $metricUtils) | |
| increment (array $labels=[]) | |
| incrementBy (int $value, array $labels=[]) | |
| render () | |
| validateLabels (array $labels=[]) | |
| Validate provided labels. | |
Definition at line 31 of file CounterMetric.php.
| Wikimedia\Metrics\CounterMetric::__construct | ( | array | $config, |
| MetricUtils | $metricUtils ) |
| array | $config | associative array:
|
| MetricUtils | $metricUtils |
Definition at line 53 of file CounterMetric.php.
References Wikimedia\Metrics\MetricUtils\setTypeIndicator(), and Wikimedia\Metrics\MetricUtils\validateConfig().
| Wikimedia\Metrics\CounterMetric::increment | ( | array | $labels = [] | ) |
| string[] | $labels |
Definition at line 71 of file CounterMetric.php.
| Wikimedia\Metrics\CounterMetric::incrementBy | ( | int | $value, |
| array | $labels = [] ) |
| int | $value | |
| string[] | $labels |
Definition at line 79 of file CounterMetric.php.
| Wikimedia\Metrics\CounterMetric::render | ( | ) |
Definition at line 90 of file CounterMetric.php.
| Wikimedia\Metrics\CounterMetric::validateLabels | ( | array | $labels = [] | ) |
Validate provided labels.
| string[] | $labels |
Definition at line 64 of file CounterMetric.php.