public class NewRelicPartnerApi extends NewRelicClient
Modifier and Type | Class and Description |
---|---|
static class |
NewRelicPartnerApi.Builder
Builder to make NewRelicPartnerApi construction easier.
|
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_HOST
The default hostname for New Relic Partner API.
|
DEFAULT_PORT, httpContext, provider
Constructor and Description |
---|
NewRelicPartnerApi()
Default constructor.
|
NewRelicPartnerApi(String hostname,
int port,
HttpClientProvider provider)
Constructor that takes a hostname, port and provider.
|
Modifier and Type | Method and Description |
---|---|
PartnerAccountService |
accounts()
Returns the operations related to Partner accounts.
|
static NewRelicPartnerApi.Builder |
builder()
Returns a builder for the NewRelicPartnerApi.
|
String |
getUriPrefix()
Returns the uri prefix for resources used by the client.
|
void |
setHostname(String hostname)
Sets the name of the host to connect to.
|
PartnerSubscriptionService |
subscriptions()
Returns the operations related to Partner subscriptions.
|
PartnerUserService |
users()
Returns the operations related to Partner users.
|
checkInitialize, getHttpContext, handleErrors, initialize, setHandleErrors, setHttpClientProvider, setPort
public static final String DEFAULT_HOST
public NewRelicPartnerApi()
public NewRelicPartnerApi(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 "rpm.newrelic.com".
setHostname
in class NewRelicClient
hostname
- The name of the hostpublic String getUriPrefix()
Defaults to "/api" for Partner API.
getUriPrefix
in class NewRelicClient
public PartnerAccountService accounts()
public PartnerUserService users()
public PartnerSubscriptionService subscriptions()
public static NewRelicPartnerApi.Builder builder()
Copyright © 2018. All rights reserved.