cal.set( Calendar.SECOND, 0 );
cal.set( Calendar.MILLISECOND, 0 );
Date d = cal.getTime();
Set<Metric> metrics = EnumSet.allOf( Metric.class );
AdminGetMetricsResponse result = fb.admin_getMetrics( metrics, d, d, Metric.PERIOD_DAY );
Metrics r = result.getMetrics().get( 0 );
System.out.println( "getApiCalls:" + r.getApiCalls() );
System.out.println( "getUniqueApiCalls:" + r.getUniqueApiCalls() );
System.out.println( "getCanvasFbmlRenderTimeAvg:" + r.getCanvasFbmlRenderTimeAvg() );
System.out.println( "getCanvasHttpRequestTimeAvg:" + r.getCanvasHttpRequestTimeAvg() );