PHP code example of jonnx / datadog-client
1. Go to this page and download the library: Download jonnx/datadog-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jonnx / datadog-client example snippets
// Create and send event in one call
$client->event('My test event', 'Optional event title', array(
'alert_type' => Event::TYPE_ERROR
));
$client->metric('my.test.metric', array(
array(20),
array(13456789, 30),
array(40),
));