Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | public function makeRequest(array $payload) |
||
34 | { |
||
35 | return $this->curlService |
||
36 | ->to("https://insights-collector.newrelic.com/v1/accounts/{$this->newRelicConfig->getAccountId()}/events") |
||
37 | ->withContentType('application/json') |
||
38 | ->withHeader('X-Insert-Key:' . $this->newRelicConfig->getApiKey()) |
||
39 | ->withData($payload) |
||
40 | ->asJson() |
||
41 | ->post(); |
||
42 | } |
||
44 |