Efficacy of Foundational Model in the time series application of anomaly detection and prediction