public class NewRelicInsightsApi extends NewRelicClient
Modifier and Type | Class and Description |
---|---|
static class |
NewRelicInsightsApi.Builder
Builder to make NewRelicInsightsApi construction easier.
|
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_HOST
The default hostname for New Relic Insights.
|
DEFAULT_PORT, httpContext, provider
Constructor and Description |
---|
NewRelicInsightsApi()
Default constructor.
|
NewRelicInsightsApi(String hostname,
int port,
HttpClientProvider provider)
Constructor that takes a hostname, port and provider.
|
Modifier and Type | Method and Description |
---|---|
static NewRelicInsightsApi.Builder |
builder()
Returns a builder for the NewRelicInsightsApi.
|
QueryService |
queries()
Returns the operations related to Insights queries.
|
void |
setHostname(String hostname)
Sets the name of the host to connect to.
|
checkInitialize, getHttpContext, getUriPrefix, handleErrors, initialize, setHandleErrors, setHttpClientProvider, setPort
public static final String DEFAULT_HOST
public NewRelicInsightsApi()
public NewRelicInsightsApi(String hostname, int port, HttpClientProvider provider)
hostname
- The hostname of the serverport
- The port of the serverprovider
- The HTTP client providerpublic void setHostname(String hostname)
The default hostname is "insights-api.newrelic.com".
setHostname
in class NewRelicClient
hostname
- The name of the hostpublic QueryService queries()
public static NewRelicInsightsApi.Builder builder()
Copyright © 2018. All rights reserved.