|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jenkinsci.plugins.newrelicnotifier.api.NewRelicClientImpl
public class NewRelicClientImpl
REST client implementation for the New Relic API.
| Constructor Summary | |
|---|---|
NewRelicClientImpl()
|
|
| Method Summary | |
|---|---|
String |
getApiEndpoint()
Get API Endpoint URL for looking up credentials. |
List<Application> |
getApplications(String apiKey)
Get the list of applications available to record deployment notifications for. |
boolean |
sendNotification(String apiKey,
String applicationId,
String description,
String revision,
String changelog,
String user)
Submit deployment notification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NewRelicClientImpl()
| Method Detail |
|---|
public List<Application> getApplications(String apiKey)
throws IOException
getApplications in interface NewRelicClientapiKey - New Relic API key
IOException
public boolean sendNotification(String apiKey,
String applicationId,
String description,
String revision,
String changelog,
String user)
throws IOException
sendNotification in interface NewRelicClientapiKey - 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 deployment
IOExceptionpublic String getApiEndpoint()
getApiEndpoint in interface NewRelicClient
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||