Semantics and anomaly preserving sampling strategy for large-scale time series data