@Path(value="/report") @Component public class StorageStatsRest extends BaseRest
APP_NAME, APPLICATION_XML, CONTENT_MIMETYPE_HEADER, COPY_SOURCE_HEADER, COPY_SOURCE_STORE_HEADER, DEFAULT_MIME, HEADER_PREFIX, HTML, SPACE_ACL_HEADER, TEXT_PLAIN, XML| Constructor and Description |
|---|
StorageStatsRest(StorageStatsResource resource,
StorageProviderFactory storageProviderFactory) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getSpaceStatsOverTime(String spaceId,
String storeId,
String startMs,
String endMs,
String groupBy) |
javax.ws.rs.core.Response |
getStorageStatsByDay(String storeId,
String dateMs) |
protected String |
getStoreId(String storeId) |
javax.ws.rs.core.Response |
getStoreStatsOverTime(String storeId,
String startMs,
String endMs,
String groupBy) |
protected Date |
resolveEndDate(String endMs) |
protected Date |
resolveStartDate(String startMs) |
protected Date |
toDateFromMs(String endMs) |
getAccountId, getSpaceACLs, getSubdomain, getUserProperties, getUserProperties, responseBad, responseBad, responseBad, responseBadRequest, responseNotFound, responseNotFound, responseOk, responseOk, responseOk, responseOkStream, responseOkXml, responseOkXmlStream@Autowired public StorageStatsRest(StorageStatsResource resource, StorageProviderFactory storageProviderFactory)
@Path(value="/space/{spaceID}")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response getSpaceStatsOverTime(@PathParam(value="spaceID")
String spaceId,
@QueryParam(value="storeID")
String storeId,
@QueryParam(value="start")
String startMs,
@QueryParam(value="end")
String endMs,
@QueryParam(value="groupBy")
String groupBy)
@Path(value="/store")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response getStoreStatsOverTime(@QueryParam(value="storeID")
String storeId,
@QueryParam(value="start")
String startMs,
@QueryParam(value="end")
String endMs,
@QueryParam(value="groupBy")
String groupBy)
protected Date toDateFromMs(String endMs) throws NumberFormatException
NumberFormatException@Path(value="/store/{date}")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response getStorageStatsByDay(@QueryParam(value="storeID")
String storeId,
@PathParam(value="date")
String dateMs)
protected String getStoreId(String storeId) throws NotFoundException
NotFoundExceptionCopyright © 2009–2018 DuraSpace. All rights reserved.