Skip to content

Instantly share code, notes, and snippets.

@jamesmills
Created October 25, 2019 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesmills/c22c2a2e8a17c6fd07aaeb5756d4db8c to your computer and use it in GitHub Desktop.
Save jamesmills/c22c2a2e8a17c6fd07aaeb5756d4db8c to your computer and use it in GitHub Desktop.
$response = (new Client())->post('https://api.datadoghq.com/api/v1/series?api_key=' . config('core.datadog.api_key'),
[
RequestOptions::JSON => [
'series' => [[
'metric' => 'test.metric',
'points' => [
array(365),
array(13456789, 123)
],
// 'type' => 'rate',
// 'interval' => '10',
'host' => 'test.example.com',
'tags' => ['environment:test'],
]]
]
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment