@Override
    public Object createExample() {
        MetricDto result = new MetricDto();
        Map<Long, Double> dps = new TreeMap<>();

        dps.put(System.currentTimeMillis(), 1.2);
        result.setDatapoints(dps);
        result.setDisplayName("A description of the metric");
        result.setMetric("metric");
        result.setScope("scope");

        Map<String, String> sampleTags = new HashMap<>();

        sampleTags.put("tagk", "tagv");
        result.setTags(sampleTags);
        result.setUnits("ms");
        return result;
    }
@ Override public Object createExample ( ) { MetricDto result = new MetricDto ( ) ; Map < Long , Double > dps = new TreeMap < > ( ) ; dps . put ( System . currentTimeMillis ( ) , 1.2 ) ; result . setDatapoints ( dps ) ; result . setDisplayName ( "A description of the metric" ) ; result . setMetric ( "metric" ) ; result . setScope ( "scope" ) ; Map < String , String > sampleTags = new HashMap < > ( ) ; sampleTags . put ( "tagk" , "tagv" ) ; result . setTags ( sampleTags ) ; result . setUnits ( "ms" ) ; return result ; }
~ Methods **************************************************************************************************************************************