diff options
author | wiki <wiki@proton.parabola.nu> | 2016-08-02 21:10:30 +0100 |
---|---|---|
committer | wiki <wiki@proton.parabola.nu> | 2016-08-02 21:10:30 +0100 |
commit | d386934962c15a79703588812dc5815f32d70cbf (patch) | |
tree | 1251b086744a5305855c107eacbcf3e96005ab6e /StatsdDataInterface.php | |
parent | a5f917bbc55e295896b8084f6657eb8b6abaf8a8 (diff) |
files were sitting here on productionemulatorman/master
Diffstat (limited to 'StatsdDataInterface.php')
-rw-r--r-- | StatsdDataInterface.php | 47 |
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(); +} |