Created
October 25, 2019 15:15
-
-
Save jamesmills/c22c2a2e8a17c6fd07aaeb5756d4db8c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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