@@ -19,6 +19,13 @@ discard block |
||
| 19 | 19 | $this->availableMetrics = []; |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | + /** |
|
| 23 | + * @param string $storagePrefix |
|
| 24 | + * @param string $metric |
|
| 25 | + * @param string $label |
|
| 26 | + * @param string $help |
|
| 27 | + * @param string $type |
|
| 28 | + */ |
|
| 22 | 29 | public function addAvailableMetric($storagePrefix, $metric, $label, $help, $type, $defaultValue) { |
| 23 | 30 | $this->availableMetrics[] = [ |
| 24 | 31 | 'storagePrefix' => $storagePrefix, |
@@ -36,6 +43,9 @@ discard block |
||
| 36 | 43 | |
| 37 | 44 | abstract public function storeMeasurement($prefix, $key, $value); |
| 38 | 45 | |
| 46 | + /** |
|
| 47 | + * @param string $prefix |
|
| 48 | + */ |
|
| 39 | 49 | abstract public function incrementMeasurement($prefix, $key); |
| 40 | 50 | |
| 41 | 51 | abstract public function getMeasurements($prefix, array $keys, $defaultValue = 'Nan'); |