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 java.lang.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 java.lang.String
createOpenMetricsResponse(StatResponse statResponse)
javax.ws.rs.core.Response
stat(java.lang.String authorization, java.lang.String month, java.lang.String format)
javax.ws.rs.core.Response
statGet(java.lang.String authorization, java.lang.String month, java.lang.String format)
javax.ws.rs.core.Response
statPost(java.lang.String authorization, java.lang.String month, java.lang.String format)
-
-
-
Method Detail
-
createOpenMetricsResponse
public static java.lang.String createOpenMetricsResponse(StatResponse statResponse) throws java.io.IOException
- Throws:
java.io.IOException
-
statGet
@GET @Produces("application/json") public javax.ws.rs.core.Response statGet(@HeaderParam("Authorization") java.lang.String authorization, @QueryParam("month") java.lang.String month, @QueryParam("format") java.lang.String format)
-
statPost
@POST @Produces("application/json") public javax.ws.rs.core.Response statPost(@HeaderParam("Authorization") java.lang.String authorization, @FormParam("month") java.lang.String month, @FormParam("format") java.lang.String format)
-
stat
public javax.ws.rs.core.Response stat(java.lang.String authorization, java.lang.String month, java.lang.String format)
-
-