Examples of ReportHelper


Examples of com.errplane.util.ReportHelper

    }

    // example
    // {"a":"962cdc9b-15e7-4b25-9a0d-24a45cfc6bc1","d":"app4you2lovestaging","o":"t","w":[{"n":"some_aggregate","p":[{"c":"","d":null,"v":30.091186058528706}]}]}

    ReportHelper rh = new ReportHelper(name, reportType, ReportHelper.ReportType.UDP, database, api);
    rh.setReportValue(value);
    rh.setContext(context);
    rh.setDimensions(dimensions);
    reportQueue.add(rh);
    reportCount.addAndGet(1);

    return true;
  }
View Full Code Here

Examples of com.errplane.util.ReportHelper

    if (!reportQueue.isEmpty() && (errplaneUrl != null)) {
      int bytesWritten = 0;
      HTTPPostHelper postHelper = new HTTPPostHelper();
      try {
        while (!reportQueue.isEmpty() && (numRemoved < 200)) {
          ReportHelper rh = reportQueue.remove();
          numRemoved++;
          String rptBody = rh.getReportBody();
          bytesWritten += rptBody.length() + 1;
          OutputStream os = postHelper.getOutputStream(errplaneUrl, bytesWritten);
          os.write(rptBody.getBytes());
          os.write('\n');
          if (!postHelper.sendPost(bytesWritten)) {
View Full Code Here

Examples of com.errplane.util.ReportHelper

  public static ExceptionData getExceptionData(String c, String a, String u) {
    return new ExceptionData(c, a, u);
  }

  private static void addReportHelper(String name, double val, String context, Map<String, String> dimensions) {
    ReportHelper rh = new ReportHelper(name);
    rh.setReportValue(val);
    rh.setContext(context);
    rh.setDimensions(dimensions);
    reportQueue.add(rh);
    reportCount.addAndGet(1);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.