Examples of AlertCondition


Examples of org.rhq.modules.integrationTests.restApi.d.AlertCondition

        int metricDefinitionId = findAMetricDefinitionForResourceId(_platformId, "metric");

        // Now add a condition
        try {

            AlertCondition alertCondition = new AlertCondition("BASELINE");
            alertCondition.setOption("mean");
            alertCondition.setComparator("==");
            alertCondition.setThreshold(0.10); // %
            alertCondition.setMeasurementDefinition(metricDefinitionId);

            given()
                .header(acceptJson)
                .contentType(ContentType.JSON)
                .body(alertCondition)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.