Package com.dianping.cat.report.page

Examples of com.dianping.cat.report.page.JsonBuilder$TimestampTypeAdapter


            .getJsonString());
    } else if (queryType.equalsIgnoreCase("disk")) {
      List<LineChart> diskInfo = getDiskInfo(graphData, start, size);

      model.setDisks(diskInfo.size());
      model.setDiskHistoryGraph(new JsonBuilder().toJson(diskInfo));
    } else if (queryType.equalsIgnoreCase("cat")) {
      model.setCatMessageProducedGraph(getGraphItem("Cat Message Produced (Count) / Minute", "CatMessageProduced",
            start, size, graphData).getJsonString());
      model.setCatMessageOverflowGraph(getGraphItem("Cat Message Overflow (Count) / Minute", "CatMessageOverflow",
            start, size, graphData).getJsonString());
View Full Code Here


  public Map<Integer, Item> getCities() {
    return m_cities;
  }

  public String getCityInfo() {
    return new JsonBuilder().toJson(m_citiyInfos);
  }
View Full Code Here

        items = new ArrayList<Code>();
        maps.put(item.getId(), items);
      }
      items.addAll(item.getCodes().values());
    }
    return new JsonBuilder().toJson(maps);
  }
View Full Code Here

        items = new ArrayList<PatternItem>();
        maps.put(item.getGroup(), items);
      }
      items.add(item);
    }
    return new JsonBuilder().toJson(maps);
  }
View Full Code Here

    modification.setUserName(userName);
    modification.setAccountName(accountName);
    modification.setActionName(payload.getAction().getName());
    modification.setDate(new Date());
    modification.setArgument(new JsonBuilder().toJson(payload));

    try {
      m_configModificationDao.insert(modification);
    } catch (Exception ex) {
      Cat.logError(ex);
View Full Code Here

      if (StringUtils.isNotEmpty(cmdbDomain)) {
        set.add(cmdbDomain);
      }
    }
    return new JsonBuilder().toJson(project2Domains);
  }
View Full Code Here

      item.setNumber(transaction.getTotalCount()).setTitle(transaction.getId());
      items.add(item);
    }

    chart.addItems(items);
    model.setPieChart(new JsonBuilder().toJson(chart));
  }
View Full Code Here

      show.setSortType(payload.getSort());
      show.visitStateReport(report);
      model.setState(show);
      model.setReport(report);
    } else {
      model.setGraph(new JsonBuilder().toJson(item));
    }
    m_jspViewer.view(ctx, model);
  }
View Full Code Here

  public Map<String, List<City>> getCities() {
    return m_cities;
  }

  public String getCityInfo() {
    return new JsonBuilder().toJson(m_cities);
  }
View Full Code Here

        items = new ArrayList<PatternItem>();
        maps.put(item.getGroup(), items);
      }
      items.add(item);
    }
    return new JsonBuilder().toJson(maps);
  }
View Full Code Here

TOP

Related Classes of com.dianping.cat.report.page.JsonBuilder$TimestampTypeAdapter

Copyright © 2018 www.massapicom. 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.