Skip to content

Commit

Permalink
CEXT-2009 Add New Relic support to aio CLI (#148)
Browse files Browse the repository at this point in the history
Co-authored-by: Shazron Abdullah <36107+shazron@users.noreply.github.com>
  • Loading branch information
gjmarques and shazron authored Jul 17, 2023
1 parent d6d065b commit e5c8fd2
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,16 @@ Set Log Forwarding to Splunk HEC
| index | <code>string</code> | index |
| hecToken | <code>string</code> | hec token |

Set Log Forwarding to New Relic

**Kind**: instance method of [<code>LogForwarding</code>](#LogForwarding)
**Returns**: <code>Promise.&lt;(\*\|undefined)&gt;</code> - response from set API

| Param | Type | Description |
| --- | --- | --- |
| baseURI | <code>string</code> | host |
| licenseKey | <code>string</code> | port |

<a name="LogForwarding+getSupportedDestinations"></a>

### logForwarding.getSupportedDestinations() ⇒ <code>Array.&lt;object&gt;</code>
Expand Down
14 changes: 14 additions & 0 deletions src/LogForwardingLocalDestinationsProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,20 @@ class LogForwardingLocalDestinationsProvider {
type: 'password'
}
]
},
new_relic: {
name: 'New Relic',
settings: [
{
name: 'base_uri',
message: 'base URI'
},
{
name: 'license_key',
message: 'license key',
type: 'password'
}
]
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion test/LogForwarding.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ test('get supported destinations', async () => {
[
{ value: 'adobe_io_runtime', name: 'Adobe I/O Runtime' },
{ value: 'azure_log_analytics', name: 'Azure Log Analytics' },
{ value: 'splunk_hec', name: 'Splunk HEC' }
{ value: 'splunk_hec', name: 'Splunk HEC' },
{ value: 'new_relic', name: 'New Relic' }
]
)
resolve()
Expand Down

0 comments on commit e5c8fd2

Please sign in to comment.