Search in sources :

Example 1 with TimeSeriesMetadata

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 });
}
Also used : BucketGranularity(com.emc.storageos.db.client.model.BucketGranularity) TimeSeriesMetadata(com.emc.storageos.db.client.TimeSeriesMetadata) Test(org.junit.Test)

Aggregations

TimeSeriesMetadata (com.emc.storageos.db.client.TimeSeriesMetadata)1 BucketGranularity (com.emc.storageos.db.client.model.BucketGranularity)1 Test (org.junit.Test)1