]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blobdiff - vendor/liuggio/statsd-php-client/src/Liuggio/StatsdClient/Entity/StatsdDataInterface.php
MediaWiki 1.30.2
[autoinstallsdev/mediawiki.git] / vendor / liuggio / statsd-php-client / src / Liuggio / StatsdClient / Entity / StatsdDataInterface.php
diff --git a/vendor/liuggio/statsd-php-client/src/Liuggio/StatsdClient/Entity/StatsdDataInterface.php b/vendor/liuggio/statsd-php-client/src/Liuggio/StatsdClient/Entity/StatsdDataInterface.php
new file mode 100755 (executable)
index 0000000..d7b07a8
--- /dev/null
@@ -0,0 +1,47 @@
+<?php
+
+namespace Liuggio\StatsdClient\Entity;
+
+interface StatsdDataInterface
+{
+    CONST STATSD_METRIC_TIMING = 'ms';
+    CONST STATSD_METRIC_GAUGE  = 'g';
+    CONST STATSD_METRIC_SET    = 's';
+    CONST STATSD_METRIC_COUNT  = 'c';
+
+    /**
+     * @abstract
+     * @return string
+     */
+    function getKey();
+
+    /**
+     * @abstract
+     * @return mixed
+     */
+    function getValue();
+
+    /**
+     * @abstract
+     * @return string
+     */
+    function getMetric();
+
+    /**
+     * @abstract
+     * @return string
+     */
+    function getMessage();
+
+    /**
+     * @abstract
+     * @return float
+     */
+    function getSampleRate();
+
+    /**
+     * @abstract
+     * @return string
+     */
+    function __toString();
+}