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