@Path(value="/usage")
@Produces(value="application/json")
@Consumes(value="application/json")
public interface UsageApi
Modifier and Type | Method and Description |
---|---|
UsageStatistics |
getApplicationUsage(java.lang.String applicationId,
java.lang.String startDate,
java.lang.String endDate) |
UsageStatistics |
getMachineUsage(java.lang.String machine,
java.lang.String startDate,
java.lang.String endDate) |
java.util.List<UsageStatistics> |
listApplicationsUsage(java.lang.String startDate,
java.lang.String endDate) |
java.util.List<UsageStatistics> |
listMachinesUsage(java.lang.String application,
java.lang.String startDate,
java.lang.String endDate) |
@GET @Path(value="/applications") java.util.List<UsageStatistics> listApplicationsUsage(@QueryParam(value="start") java.lang.String startDate, @QueryParam(value="end") java.lang.String endDate)
@GET @Path(value="/applications/{application}") UsageStatistics getApplicationUsage(@PathParam(value="application") java.lang.String applicationId, @QueryParam(value="start") java.lang.String startDate, @QueryParam(value="end") java.lang.String endDate)
@GET @Path(value="/machines") java.util.List<UsageStatistics> listMachinesUsage(@QueryParam(value="application") java.lang.String application, @QueryParam(value="start") java.lang.String startDate, @QueryParam(value="end") java.lang.String endDate)
@GET @Path(value="/machines/{machine}") UsageStatistics getMachineUsage(@PathParam(value="machine") java.lang.String machine, @QueryParam(value="start") java.lang.String startDate, @QueryParam(value="end") java.lang.String endDate)