1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace ChaseConey\LaravelDatadogHelper; |
4
|
|
|
|
5
|
|
|
use Illuminate\Support\Facades\Facade; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* @see LaravelDatadogHelper |
9
|
|
|
* @see \Datadog\DogStatsd |
10
|
|
|
* |
11
|
|
|
* @method static void timing(string $stat, float $time, float $sampleRate = 1.0, array|string $tags = null) |
12
|
|
|
* @method static void microtiming(string $stat, float $time, float $sampleRate = 1.0, array|string $tags = null) |
13
|
|
|
* @method static void gauge(string $stat, float $value, float $sampleRate = 1.0, array|string $tags = null) |
14
|
|
|
* @method static void histogram(string $stat, float $value, float $sampleRate = 1.0, array|string $tags = null) |
15
|
|
|
* @method static void distribution(string $stat, float $value, float $sampleRate = 1.0, array|string $tags = null) |
16
|
|
|
* @method static void set(string $stat, float $value, float $sampleRate = 1.0, array|string $tags = null) |
17
|
|
|
* @method static void increment(string|array $stats, float $sampleRate = 1.0, array|string $tags = null, int $value = 1) |
18
|
|
|
* @method static void decrement(string|array $stats, float $sampleRate = 1.0, array|string $tags = null, int $value = -1) |
19
|
|
|
* @method static void updateStats(string|array $stats, int $delta = 1, float $sampleRate = 1.0, array|string $tags = null) |
20
|
|
|
* @method static void send(array $data, float $sampleRate = 1.0, array|string $tags = null) |
21
|
|
|
* @method static void service_check(string $name, int $status, array|string $tags = null, string $hostname = null, string $message = null, int $timestamp = null) |
22
|
|
|
* @method static void report($udp_message) |
23
|
|
|
* @method static void flush($udp_message) |
24
|
|
|
* @method static boolean event(string $title, array $values = []) |
25
|
|
|
*/ |
26
|
|
|
class Datadog extends Facade |
27
|
|
|
{ |
28
|
|
|
protected static function getFacadeAccessor() |
29
|
|
|
{ |
30
|
|
|
return 'datadog'; |
31
|
|
|
} |
32
|
|
|
} |
33
|
|
|
|