
com.ocadotechnology.newrelic.apiclient.ServersApi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of newrelic-api-client Show documentation
Show all versions of newrelic-api-client Show documentation
NewRelic Alerts Configurator can be used to configure NewRelic alerts for your application. Instead of defining alerts through UI you can define them in code. It allows you to automatize alerts configuration, easily recover them in case of wipe out and have full history of changes in your version control system.
package com.ocadotechnology.newrelic.apiclient;
import com.ocadotechnology.newrelic.apiclient.model.servers.Server;
import java.util.Optional;
public interface ServersApi {
/**
* Gets {@link Server} object using its name.
*
* @param serverName name of the server registered in NewRelic
* @return Optional containing {@link Server} object, or empty if server not found
*/
Optional getByName(String serverName);
/**
* Gets {@link Server} object using its id.
*
* @param serverId id of the server registered in NewRelic
* @return found {@link Server}
*/
Server getById(int serverId);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy