Example #1
0
  private void buildTransactionNameGraph(
      Model model, TransactionReport report, String type, String name, String ip) {
    TransactionType t = report.findOrCreateMachine(ip).findOrCreateType(type);
    TransactionName transactionName = t.findOrCreateName(name);
    transformTo60MinuteData(transactionName);

    if (transactionName != null) {
      String graph1 =
          m_builder.build(
              new DurationPayload(
                  "Duration Distribution", "Duration (ms)", "Count", transactionName));
      String graph2 =
          m_builder.build(new HitPayload("Hits Over Time", "Time (min)", "Count", transactionName));
      String graph3 =
          m_builder.build(
              new AverageTimePayload(
                  "Average Duration Over Time",
                  "Time (min)",
                  "Average Duration (ms)",
                  transactionName));
      String graph4 =
          m_builder.build(
              new FailurePayload("Failures Over Time", "Time (min)", "Count", transactionName));

      model.setGraph1(graph1);
      model.setGraph2(graph2);
      model.setGraph3(graph3);
      model.setGraph4(graph4);
    }
  }
Example #2
0
  private void showHourlyGraphs(Model model, Payload payload) {
    TransactionName name = getTransactionName(payload);

    if (name == null) {
      return;
    }

    String graph1 =
        m_builder.build(
            new DurationPayload("Duration Distribution", "Duration (ms)", "Count", name));
    String graph2 = m_builder.build(new HitPayload("Hits Over Time", "Time (min)", "Count", name));
    String graph3 =
        m_builder.build(
            new AverageTimePayload(
                "Average Duration Over Time", "Time (min)", "Average Duration (ms)", name));
    String graph4 =
        m_builder.build(new FailurePayload("Failures Over Time", "Time (min)", "Count", name));

    model.setGraph1(graph1);
    model.setGraph2(graph2);
    model.setGraph3(graph3);
    model.setGraph4(graph4);
  }