Class StorageStatsRest

java.lang.Object
org.duracloud.durastore.rest.BaseRest
org.duracloud.durastore.rest.StorageStatsRest

@Path("/report") @Component public class StorageStatsRest extends BaseRest
REST interface for the StorageStats
Author:
Daniel Bernstein Date: 2/25/2016
  • Constructor Details

  • Method Details

    • getSpaceStatsOverTime

      @Path("/space/{spaceID}") @GET @Produces("application/json") public javax.ws.rs.core.Response getSpaceStatsOverTime(@PathParam("spaceID") String spaceId, @QueryParam("storeID") String storeId, @QueryParam("start") String startMs, @QueryParam("end") String endMs, @QueryParam("groupBy") String groupBy)
    • getStoreStatsOverTime

      @Path("/store") @GET @Produces("application/json") public javax.ws.rs.core.Response getStoreStatsOverTime(@QueryParam("storeID") String storeId, @QueryParam("start") String startMs, @QueryParam("end") String endMs, @QueryParam("groupBy") String groupBy)
    • resolveEndDate

      protected Date resolveEndDate(String endMs)
    • resolveStartDate

      protected Date resolveStartDate(String startMs)
    • toDateFromMs

      protected Date toDateFromMs(String endMs) throws NumberFormatException
      Throws:
      NumberFormatException
    • getStorageStatsByDay

      @Path("/store/{date}") @GET @Produces("application/json") public javax.ws.rs.core.Response getStorageStatsByDay(@QueryParam("storeID") String storeId, @PathParam("date") String dateMs)
    • getStoreId

      protected String getStoreId(String storeId) throws NotFoundException
      Throws:
      NotFoundException