Package com.skymobi.monitor.model

Examples of com.skymobi.monitor.model.MetricValue


        String[] patten=new String[]{"M"};
        long m7 = DateUtils.parseDate("7", patten).getTime();
        long m8 = DateUtils.parseDate("8", patten).getTime();
        long m9 = DateUtils.parseDate("9", patten).getTime();
        List<MetricValue> metricValues1= Lists.newArrayList(new MetricValue("pay",2, m8) );
        List<MetricValue> metricValues2= Lists.newArrayList(new MetricValue("request",10,m7),new MetricValue("request",12,m8),new MetricValue("request",13,m9) );
        List<MetricValue> metricValues3= Lists.newArrayList();
        List<List<MetricValue>> lists = Lists.newArrayList(metricValues1, metricValues2,metricValues3);
        List<List> chartRows = ChartUtil.format(lists);
         Assert.assertEquals(4,chartRows.size());
        //time ,pay,request
View Full Code Here

TOP

Related Classes of com.skymobi.monitor.model.MetricValue

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.