Package org.rhq.modules.integrationTests.restApi.d

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


        int definitionId = createEmptyAlertDefinition(false);

        // Now add a condition
        try {

            AlertCondition alertCondition = new AlertCondition("AVAILABILITY", "AVAIL_GOES_UP");
            addConditionToDefinition(definitionId, alertCondition);

            // Retrieve the definition with the added condition
            AlertDefinition updatedDefinition =
            given()
View Full Code Here


        int definitionId = createEmptyAlertDefinition(false);

        // Now add a condition
        try {

            AlertCondition alertCondition = new AlertCondition("AVAIL_DURATION", "AVAIL_DURATION_NOT_UP");
            alertCondition.setOption("300"); // duration in seconds
            addConditionToDefinition(definitionId, alertCondition);

            // Retrieve the definition with the added condition
            AlertDefinition updatedDefinition =
            given()
View Full Code Here

        int definitionId = createEmptyAlertDefinition(false);

        // Now add a condition
        try {

            AlertCondition alertCondition = new AlertCondition("AVAIL_DURATION", "AVAIL_DURATION_DOWN");
            alertCondition.setOption("300 sec");
            given()
                .header(acceptJson)
                .contentType(ContentType.JSON)
                .body(alertCondition)
                .pathParam("defId",definitionId)
View Full Code Here

        int definitionId = createEmptyAlertDefinition(false);

        // Now add a condition
        try {

            AlertCondition alertCondition = new AlertCondition("EVENT", "DEBUG");
            alertCondition.setOption(".*lala.*"); // RegEx to match
            addConditionToDefinition(definitionId, alertCondition);

            // Retrieve the definition with the added condition
            AlertDefinition updatedDefinition =
            given()
View Full Code Here

        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);

            addConditionToDefinition(definitionId, alertCondition);

            // Retrieve the definition with the added condition
            AlertDefinition updatedDefinition =
View Full Code Here

        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

        int metricDefinitionId = -42;

        // 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

        int definitionId = createEmptyAlertDefinition(false);

        // Now add a condition
        try {

            AlertCondition alertCondition = new AlertCondition("DRIFT", "CHANGES");
            addConditionToDefinition(definitionId, alertCondition);

            // Retrieve the definition with the added condition
            AlertDefinition updatedDefinition =
            given()
View Full Code Here

        int definitionId = createEmptyAlertDefinition(false);

        // Now add a condition
        try {

            AlertCondition alertCondition = new AlertCondition("CONTROL", "CHANGES");
            alertCondition.setOption("SUCCESS");
            given()
                .header(acceptJson)
                .contentType(ContentType.JSON)
                .body(alertCondition)
                .pathParam("defId", definitionId)
View Full Code Here

        int definitionId = createEmptyAlertDefinition(false);

        // Now add a condition
        try {

            AlertCondition alertCondition = new AlertCondition("CONTROL", "CHANGES");
            alertCondition.setOption("Frobnitz");
            given()
                .header(acceptJson)
                .contentType(ContentType.JSON)
                .body(alertCondition)
                .pathParam("defId", definitionId)
View Full Code Here

TOP

Related Classes of org.rhq.modules.integrationTests.restApi.d.AlertCondition

Copyright © 2018 www.massapicom. 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.