
com.ocadotechnology.newrelic.apiclient.AlertsConditionsApi 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.conditions.AlertsCondition;
import java.util.List;
public interface AlertsConditionsApi {
/**
* Lists Alerts Conditions for the given policy.
*
* @param policyId id of the policy containing alerts conditions
* @return list of all existing {@link AlertsCondition} from the given policy
*/
List list(int policyId);
/**
* Creates Alerts Condition instance within specified policy.
*
* @param policyId id of the policy to be updated
* @param condition condition definition to be created
* @return created {@link AlertsCondition}
*/
AlertsCondition create(int policyId, AlertsCondition condition);
/**
* Updates Alerts Condition definition.
*
* @param conditionId id of the condition to be updated
* @param condition condition definition to be updated
* @return created {@link AlertsCondition}
*/
AlertsCondition update(int conditionId, AlertsCondition condition);
/**
* Deletes Alerts Condition.
*
* @param conditionId id of the condition to be updated
* @return deleted {@link AlertsCondition}
*/
AlertsCondition delete(int conditionId);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy