Bayesian approach in the predictive maintenance policy