Class StatResource
java.lang.Object
io.jans.configapi.core.rest.BaseResource
io.jans.configapi.rest.resource.auth.ConfigBaseResource
io.jans.configapi.rest.resource.auth.StatResource
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.jans.configapi.rest.resource.auth.ConfigBaseResource
getMaxCountMethods inherited from class io.jans.configapi.core.rest.BaseResource
checkNotEmpty, checkNotEmpty, checkNotNull, checkNotNull, checkNotNull, checkResourceNotNull, createSearchRequest, findRootError, getBadRequestException, getBadRequestException, getBadRequestException, getHttpHeaders, getHttpRequest, getInternalServerException, getInternalServerException, getMissingAttributeError, getNotAcceptableException, getNotFoundError, getNotFoundError, getUriInfo, throwBadRequestException, throwBadRequestException, throwBadRequestException, throwInternalServerException, throwInternalServerException, throwInternalServerException, throwInternalServerException, throwMissingAttributeError, throwNotFoundException, throwNotFoundException
-
Constructor Details
-
StatResource
public StatResource()
-
-
Method Details
-
getStatistics
@GET @Produces("application/json") public jakarta.ws.rs.core.Response getStatistics(@HeaderParam("Authorization") String authorization, @QueryParam("month") String month, @QueryParam("start_month") String startMonth, @QueryParam("end_month") String endMonth, @QueryParam("format") String format) Fetches basic server statistics for a specified month or month range.- Parameters:
authorization- the Authorization header value used to authenticate the requestmonth- month for which the stat report is requested; required if both start_month and end_month are absent (format: YYYYMM)startMonth- start month of the range for which the stat report is requested (format: YYYYMM)endMonth- end month of the range for which the stat report is requested (format: YYYYMM)format- report format; an empty value requests the default format- Returns:
- the JSON value of the "response" field containing the requested statistics
-