added get metric statistic api