src/main/java/org/apache/hadoop/hdfs/server/namenode/analytics/web/NamenodeAnalyticsMethods.java
@GET
  @Path("/histograms")
  @Produces({MediaType.APPLICATION_JSON})
  public Response histograms() {
    try {
      before();
      return Response.ok(Helper.toJsonList(Histogram.values()), MediaType.APPLICATION_JSON).build();
    } catch (Exception ex) {
      return handleException(ex);
    } finally {
      after();
    }
  }
/**
   * HISTOGRAMS endpoint is meant to showcase the different types of histograms available in the
   * "&type=" parameter in JSON form.
   */
HISTOGRAMS endpoint is meant to showcase the different types of histograms available in the
"&type=" parameter in JSON form.
HISTOGRAMS endpoint is meant to showcase the different types of histograms available in the " &type = " parameter in JSON form .
@GET
  @Path("/histograms")
  @Produces({MediaType.APPLICATION_JSON})
  public Response histograms() {
    try {
      before();
      return Response.ok(Helper.toJsonList(Histogram.values()), MediaType.APPLICATION_JSON).build();
    } catch (Exception ex) {
      return handleException(ex);
    } finally {
      after();
    }
  }
@ GET @ Path ( "/histograms" ) @ Produces ( { MediaType . APPLICATION_JSON } ) public Response histograms ( ) { try { before ( ) ; return Response . ok ( Helper . toJsonList ( Histogram . values ( ) ) , MediaType . APPLICATION_JSON ) . build ( ) ; } catch ( Exception ex ) { return handleException ( ex ) ; } finally { after ( ) ; } }
HISTOGRAMS endpoint is meant to showcase the different types of histograms available in the
 "&type=" parameter in JSON form.
HISTOGRAMS endpoint is meant to showcase the different types of histograms available in the " &type = " parameter in JSON form .