public interface NewRelicClient
Modifier and Type | Method and Description |
---|---|
String |
getApiEndpoint()
Get API Endpoint URL for looking up credentials.
|
String |
getApiEndpoint(boolean european) |
List<Application> |
getApplications(String apiKey)
Get the list of applications available to record deployment notifications for.
|
void |
sendNotification(String apiKey,
String applicationId,
String description,
String revision,
String changelog,
String user,
boolean european)
Submit deployment notification
|
void |
sendNotificationV2(String apiKey,
String changelog,
String commit,
String deepLink,
String deploymentType,
String description,
String entityGuid,
String groupId,
String timestamp,
String user,
String version,
boolean european,
TaskListener listener)
Submit deployment notification
|
List<Application> getApplications(String apiKey) throws IOException
apiKey
- New Relic API keyIOException
- when HttpClient is not able to be closedvoid sendNotification(String apiKey, String applicationId, String description, String revision, String changelog, String user, boolean european) throws IOException
apiKey
- New Relic API keyapplicationId
- Application to register deployment fordescription
- Text annotation for the deploymentrevision
- The revision number from your source control systemchangelog
- A list of changes for this deploymentuser
- The name of the user/process that triggered this deploymentIOException
- when HttpClient is not able to be closed or unexpected status code receivedString getApiEndpoint()
String getApiEndpoint(boolean european)
void sendNotificationV2(String apiKey, String changelog, String commit, String deepLink, String deploymentType, String description, String entityGuid, String groupId, String timestamp, String user, String version, boolean european, TaskListener listener) throws IOException
apiKey
- New Relic API keychangelog
- A list of changes for this deploymentcommit
- A commit hash for the deploymentdeepLink
- A deep link for the deploymentdeploymentType
- A deployment type for the deploymentdescription
- Text annotation for the deploymententityGuid
- An entity GUID to identify the application for Nerdgraph deployment markersgroupId
- A group id for the deploymenttimestamp
- A timestamp for the deploymentuser
- The name of the user/process that triggered this deploymentversion
- A version for the deploymentIOException
- when HttpClient is not able to be closed or unexpected status code receivedCopyright © 2016–2023. All rights reserved.