Package io.jans.as.server.ws.rs.stat
Class StatWS
- java.lang.Object
-
- io.jans.as.server.ws.rs.stat.StatWS
-
@ApplicationScoped @Path("/internal/stat") public class StatWS extends Object
Provides server with basic statistic.https://github.com/GluuFederation/oxAuth/issues/1512 https://github.com/GluuFederation/oxAuth/issues/1321
- Author:
- Yuriy Zabrovarnyy
-
-
Constructor Summary
Constructors Constructor Description StatWS()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
createOpenMetricsResponse(StatResponse statResponse)
jakarta.ws.rs.core.Response
stat(String authorization, String monthsParam, String startMonth, String endMonth, String format)
jakarta.ws.rs.core.Response
statGet(String authorization, String months, String startMonth, String endMonth, String format)
jakarta.ws.rs.core.Response
statPost(String authorization, String months, String startMonth, String endMonth, String format)
-
-
-
Method Detail
-
createOpenMetricsResponse
public static String createOpenMetricsResponse(StatResponse statResponse) throws IOException
- Throws:
IOException
-
statGet
@GET @Produces("application/json") public jakarta.ws.rs.core.Response statGet(@HeaderParam("Authorization") String authorization, @QueryParam("month") String months, @QueryParam("start-month") String startMonth, @QueryParam("end-month") String endMonth, @QueryParam("format") String format)
-
statPost
@POST @Produces("application/json") public jakarta.ws.rs.core.Response statPost(@HeaderParam("Authorization") String authorization, @FormParam("month") String months, @FormParam("start-month") String startMonth, @FormParam("end-month") String endMonth, @FormParam("format") String format)
-
-