summaryrefslogtreecommitdiff
path: root/StatsdDataInterface.php
blob: d7b07a80027b6839275b7210b87ae4a28e891366 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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();
}