summaryrefslogtreecommitdiff
path: root/src/MetricsInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/MetricsInterface.php')
-rw-r--r--src/MetricsInterface.php28
1 files changed, 16 insertions, 12 deletions
diff --git a/src/MetricsInterface.php b/src/MetricsInterface.php
index e0e2260a..ec2009b0 100644
--- a/src/MetricsInterface.php
+++ b/src/MetricsInterface.php
@@ -17,44 +17,48 @@ interface MetricsInterface
/**
* Add collector value. Fallback to appropriate method of related collector.
*
- * @param string $collector
- * @param float $value
- * @param array $labels
+ * @param string $collector
+ * @param float $value
+ * @param mixed[] $labels
*
* @throws MetricException
+ * @return void
*/
public function add(string $collector, float $value, array $labels = []);
/**
* Subtract the collector value, only for gauge collector.
*
- * @param string $collector
- * @param float $value
- * @param array $labels
+ * @param string $collector
+ * @param float $value
+ * @param mixed[] $labels
*
* @throws MetricException
+ * @return void
*/
public function sub(string $collector, float $value, array $labels = []);
/**
* Observe collector value, only for histogram and summary collectors.
*
- * @param string $collector
- * @param float $value
- * @param array $labels
+ * @param string $collector
+ * @param float $value
+ * @param mixed[] $labels
*
* @throws MetricException
+ * @return void
*/
public function observe(string $collector, float $value, array $labels = []);
/**
* Set collector value, only for gauge collector.
*
- * @param string $collector
- * @param float $value
- * @param array $labels
+ * @param string $collector
+ * @param float $value
+ * @param mixed[] $labels
*
* @throws MetricException
+ * @return void
*/
public function set(string $collector, float $value, array $labels = []);
}