Class 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)  
      jakarta.ws.rs.core.Response stat​(java.lang.String authorization, java.lang.String monthsParam, java.lang.String startMonth, java.lang.String endMonth, java.lang.String format)  
      jakarta.ws.rs.core.Response statGet​(java.lang.String authorization, java.lang.String months, java.lang.String startMonth, java.lang.String endMonth, java.lang.String format)  
      jakarta.ws.rs.core.Response statPost​(java.lang.String authorization, java.lang.String months, java.lang.String startMonth, java.lang.String endMonth, java.lang.String format)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StatWS

        public StatWS()
    • 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 jakarta.ws.rs.core.Response statGet​(@HeaderParam("Authorization")
                                                   java.lang.String authorization,
                                                   @QueryParam("month")
                                                   java.lang.String months,
                                                   @QueryParam("start-month")
                                                   java.lang.String startMonth,
                                                   @QueryParam("end-month")
                                                   java.lang.String endMonth,
                                                   @QueryParam("format")
                                                   java.lang.String format)
      • statPost

        @POST
        @Produces("application/json")
        public jakarta.ws.rs.core.Response statPost​(@HeaderParam("Authorization")
                                                    java.lang.String authorization,
                                                    @FormParam("month")
                                                    java.lang.String months,
                                                    @FormParam("start-month")
                                                    java.lang.String startMonth,
                                                    @FormParam("end-month")
                                                    java.lang.String endMonth,
                                                    @FormParam("format")
                                                    java.lang.String format)
      • stat

        public jakarta.ws.rs.core.Response stat​(java.lang.String authorization,
                                                java.lang.String monthsParam,
                                                java.lang.String startMonth,
                                                java.lang.String endMonth,
                                                java.lang.String format)