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

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


    @Test
    public void testPostGetRawData2() throws Exception {

        long now = System.currentTimeMillis();

        Datapoint dataPoint = new Datapoint();
        dataPoint.setMetric(scheduleName);
        dataPoint.setTimestamp(now);
        dataPoint.setValue(1.5);
        List<Datapoint> points = new ArrayList<Datapoint>(1);
        points.add(dataPoint);

        given()
            .header(acceptJson)
View Full Code Here


    @Test
    public void testPostRawData2Reject() throws Exception {

        long now = System.currentTimeMillis();

        Datapoint dataPoint = new Datapoint();
        dataPoint.setMetric(scheduleName+"foo");
        dataPoint.setTimestamp(now);
        dataPoint.setValue(1.5);
        List<Datapoint> points = new ArrayList<Datapoint>(1);
        points.add(dataPoint);

        given()
            .header(acceptJson)
View Full Code Here

TOP

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

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.