use of com.emc.storageos.db.client.TimeSeriesMetadata in project coprhd-controller by CoprHD.
the class DbClientTest method testTimeSeriesMd.
@Test
public void testTimeSeriesMd() throws Exception {
TimeSeriesMetadata md = TypeMap.getTimeSeriesType(EventTimeSeries.class);
Assert.assertEquals(md.getName(), "EventTimeSeries");
BucketGranularity granularity = EventTimeSeries.class.getAnnotation(BucketGranularity.class);
Assert.assertEquals(md.getSupportedQueryGranularity().size(), 3);
Assert.assertArrayEquals(md.getSupportedQueryGranularity().toArray(), new TimeSeriesMetadata.TimeBucket[] { TimeSeriesMetadata.TimeBucket.SECOND, TimeSeriesMetadata.TimeBucket.MINUTE, TimeSeriesMetadata.TimeBucket.HOUR });
}
Aggregations