package org.rhq.enterprise.server.rest.reporting; import javax.ejb.Local; import javax.servlet.http.HttpServletRequest; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.QueryParam; import javax.ws.rs.core.Context; import javax.ws.rs.core.StreamingOutput; import com.wordnik.swagger.annotations.Api; import com.wordnik.swagger.annotations.ApiOperation; import org.jboss.resteasy.annotations.GZIP; import org.rhq.core.domain.auth.Subject; @Path("/recentDrift") @Local @Api(basePath="http://localhost:7080/coregui/reports", value = "The recent drift report") public interface RecentDriftLocal { @GZIP @GET @Produces({"text/csv"}) @ApiOperation(value = "Export the Recent drift data as CSV") StreamingOutput recentDrift( @QueryParam("categories") String categories, @QueryParam("snapshot") Integer snapshot, @QueryParam("path") String path, @QueryParam("definition") String definitionName, @QueryParam("startTime") Long startTime, @QueryParam("endTime") Long endTime, @Context HttpServletRequest request); StreamingOutput recentDriftInternal( String categories, Integer snapshot, String path, String definitionName, Long startTime, Long endTime, HttpServletRequest request, Subject user); }