MediaWiki REL1_39
|
Public Member Functions | |
__construct (array $config, MetricUtils $metricUtils) | |
observe (float $value, array $labels=[]) | |
render () | |
validateLabels (array $labels=[]) | |
Validate provided labels. | |
Definition at line 32 of file TimingMetric.php.
Wikimedia\Metrics\TimingMetric::__construct | ( | array | $config, |
MetricUtils | $metricUtils ) |
array | $config | associative array:
|
MetricUtils | $metricUtils |
Definition at line 54 of file TimingMetric.php.
References Wikimedia\Metrics\MetricUtils\setTypeIndicator(), and Wikimedia\Metrics\MetricUtils\validateConfig().
Wikimedia\Metrics\TimingMetric::observe | ( | float | $value, |
array | $labels = [] ) |
float | $value | |
string[] | $labels |
Definition at line 73 of file TimingMetric.php.
Wikimedia\Metrics\TimingMetric::render | ( | ) |
Definition at line 84 of file TimingMetric.php.
Wikimedia\Metrics\TimingMetric::validateLabels | ( | array | $labels = [] | ) |
Validate provided labels.
string[] | $labels |
Definition at line 65 of file TimingMetric.php.