[WIP] Added trend analytics API with different time resolution steps