Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CEXT-2009 Add New Relic support to aio CLI #148

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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