MediaWiki
master
|
Public Member Functions | |
__construct (array $config, MetricUtils $metricUtils) | |
render () | |
set (float $value, array $labels=[]) | |
validateLabels (array $labels=[]) | |
Validate provided labels. More... | |
Definition at line 31 of file GaugeMetric.php.
Wikimedia\Metrics\GaugeMetric::__construct | ( | array | $config, |
MetricUtils | $metricUtils | ||
) |
array | $config | associative array:
|
MetricUtils | $metricUtils |
Definition at line 53 of file GaugeMetric.php.
References Wikimedia\Metrics\MetricUtils\setTypeIndicator(), and Wikimedia\Metrics\MetricUtils\validateConfig().
Wikimedia\Metrics\GaugeMetric::render | ( | ) |
Definition at line 83 of file GaugeMetric.php.
Wikimedia\Metrics\GaugeMetric::set | ( | float | $value, |
array | $labels = [] |
||
) |
float | $value | |
string[] | $labels |
Definition at line 72 of file GaugeMetric.php.
References Wikimedia\Metrics\MetricsFactory\normalizeArray(), and Wikimedia\Metrics\GaugeMetric\validateLabels().
Wikimedia\Metrics\GaugeMetric::validateLabels | ( | array | $labels = [] | ) |
Validate provided labels.
string[] | $labels |
Definition at line 64 of file GaugeMetric.php.
Referenced by Wikimedia\Metrics\GaugeMetric\set().