A hybrid cloud-to-edge predictive maintenance platform