summaryrefslogtreecommitdiff
path: root/StatsdDataInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'StatsdDataInterface.php')
-rw-r--r--StatsdDataInterface.php47
1 files changed, 47 insertions, 0 deletions
diff --git a/StatsdDataInterface.php b/StatsdDataInterface.php
new file mode 100644
index 00000000..d7b07a80
--- /dev/null
+++ b/StatsdDataInterface.php
@@ -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();
+}