Свойство | Type | Description | |
---|---|---|---|
$__server | |||
$__serverPort |
Méthode | Description | |
---|---|---|
configure ( $apiKey, $applicationKey, $datadogHost = 'https://app.datadoghq.com', $submitEventsOver = 'TCP', $localStatsdServer = 'localhost', $localStatsdPort = 8125, $curlVerifySslHost = 2, $curlVerifySslPeer = 1 ) | ||
decrement ( string | array $stats, float $sampleRate = 1, array $tags = null ) : boolean | Decrements one or more stats counters. | |
event ( string $title, array $vals = [] ) : null | Send an event to the Datadog HTTP api. Potentially slow, so avoid making many call in a row if you don't want to stall your app. | |
flush ( $udp_message ) | ||
gauge ( string $stat, float $value, float $sampleRate = 1, array $tags = null ) | Gauge | |
histogram ( string $stat, float $value, float $sampleRate = 1, array $tags = null ) | Histogram | |
increment ( string | array $stats, float $sampleRate = 1, array $tags = null ) : boolean | Increments one or more stats counters | |
microtiming ( string $stat, float $time, float $sampleRate = 1, array $tags = null ) | A convenient alias for the timing function when used with micro-timing | |
report ( $udp_message ) | ||
report_metric ( $udp_message ) | ||
send ( array $data, float $sampleRate = 1, array $tags = null ) : null | Squirt the metrics over UDP | |
service_check ( string $name, integer $status, array $tags = null, string $hostname = null, string $message = null, integer $timestamp = null ) : null | Send a custom service check status over UDP | |
set ( string $stat, float $value, float $sampleRate = 1, array $tags = null ) | Set | |
timing ( string $stat, float $time, float $sampleRate = 1, array $tags = null ) | Log timing information | |
updateStats ( string | array $stats, integer $delta = 1, float $sampleRate = 1, array $tags = null ) : boolean | Updates one or more stats counters by arbitrary amounts. |
Méthode | Description | |
---|---|---|
escape_sc_message ( $msg ) | ||
eventUdp ( array $vals ) : null | Formats $vals array into event for submission to Datadog via UDP |
public static configure ( $apiKey, $applicationKey, $datadogHost = 'https://app.datadoghq.com', $submitEventsOver = 'TCP', $localStatsdServer = 'localhost', $localStatsdPort = 8125, $curlVerifySslHost = 2, $curlVerifySslPeer = 1 ) |
public static service_check ( string $name, integer $status, array $tags = null, string $hostname = null, string $message = null, integer $timestamp = null ) : null | ||
$name | string | service check name |
$status | integer | service check status code (see static::OK, static::WARNING,...) |
$tags | array | Key Value array of Tag => Value, or single tag as string |
$hostname | string | hostname to associate with this service check status |
$message | string | message to associate with this service check status |
$timestamp | integer | timestamp for the service check status (defaults to now) |
Résultat | null |
public static timing ( string $stat, float $time, float $sampleRate = 1, array $tags = null ) | ||
$stat | string | The metric to in log timing info for. |
$time | float | The elapsed time (ms) to log |
$sampleRate | float | the rate (0-1) for sampling. |
$tags | array | Key Value array of Tag => Value, or single tag as string |
public static updateStats ( string | array $stats, integer $delta = 1, float $sampleRate = 1, array $tags = null ) : boolean | ||
$stats | string | array | The metric(s) to update. Should be either a string or array of metrics. |
$delta | integer | The amount to increment/decrement each metric by. |
$sampleRate | float | the rate (0-1) for sampling. |
$tags | array | Key Value array of Tag => Value, or single tag as string |
Résultat | boolean |