@Override
  public ObjectNode execute(final HttpServletRequest request) throws Exception {

    // get cluster object
    Cluster cluster = repository.getCluster();

    // json object to be sent as response
    ObjectNode responseJSON = mapper.createObjectNode();
    // cluster's GC Pauses trend added to json response object

    ArrayNode pauses = mapper.createArrayNode();
    for (Object obj : cluster.getStatisticTrend(Cluster.CLUSTER_STAT_GARBAGE_COLLECTION)) {
      if (obj instanceof Number) {
        pauses.add(((Number) obj).longValue());
      }
    }
    responseJSON.put("currentGCPauses", cluster.getGarbageCollectionCount());
    responseJSON.set("gCPausesTrend", pauses);
    // Send json response
    return responseJSON;
  }
Class ClusterGCPausesService

This class contains implementations of getting Cluster's GC Pauses (JVM Pauses) Details and its
trend over the time.

@since GemFire version 7.5
geode-pulse/src/main/java/org/apache/geode/tools/pulse/internal/service/ClusterGCPausesService.java