Package com.dianping.cat.message.internal

Examples of com.dianping.cat.message.internal.DefaultMetric.addData()


      DefaultMetric durationMetric = new DefaultMetric("", "/shenzhen");

      durationMetric.setTimestamp(m_timestamp + i * MINITE);
      durationMetric.setStatus("T");
      durationMetric.addData("10");

      t.addChild(durationMetric);
    }

    t.complete();
 
View Full Code Here


      String metricData = helper.read(ctx, TAB);

      helper.read(ctx, LF); // get rid of line feed
      metric.setTimestamp(m_dateHelper.parse(timestamp));
      metric.setStatus(metricStatus);
      metric.addData(metricData);

      if (parent != null) {
        parent.addChild(metric);
        return parent;
      } else {
View Full Code Here

  private Metric newMetric(String type, String name, long timestamp, String status, String data) {
    DefaultMetric metric = new DefaultMetric(type, name);

    metric.setStatus(status);
    metric.addData(data);
    metric.setTimestamp(timestamp);
    return metric;
  }

  private Heartbeat newHeartbeat(String type, String name, long timestamp, String status, String data) {
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.