public class NewRelicInfraApi extends NewRelicClient
Modifier and Type | Class and Description |
---|---|
static class |
NewRelicInfraApi.Builder
Builder to make NewRelicInfraApi construction easier.
|
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_HOST
The default hostname for New Relic Infrastructure.
|
DEFAULT_PORT, httpContext, provider
Constructor and Description |
---|
NewRelicInfraApi()
Default constructor.
|
NewRelicInfraApi(String hostname,
int port,
HttpClientProvider provider)
Constructor that takes a hostname, port and provider.
|
Modifier and Type | Method and Description |
---|---|
static NewRelicInfraApi.Builder |
builder()
Returns a builder for the NewRelicInfraApi.
|
InfraAlertConditionService |
infraAlertConditions()
Returns the operations related to infra alert conditions.
|
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 NewRelicInfraApi()
public NewRelicInfraApi(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 "infra-api.newrelic.com".
setHostname
in class NewRelicClient
hostname
- The name of the hostpublic InfraAlertConditionService infraAlertConditions()
public static NewRelicInfraApi.Builder builder()
Copyright © 2018. All rights reserved.