Schedule a baseline forecast on Planning Analytics Local
Use these commands when scheduling a baseline forecast on Planning Analytics Local.
Procedure
-
To run the baseline endpoint:
curl --location --request POST 'http://<paw_local>/<baseline_url>' --header 'Authorization: Basic base64(<username>:<password>)'
When SSL is configured, pass the certificates with the
curl
command (recommended) or use the-k
option to disable it. Once a baseline forecast is started/ the status of the baseline asset changes to running. After the forecast is complete, it goes back to ready. While a forecast is running on a baseline asset, another forecast cannot be started unless the first one is complete and the asset returns to ready status. - To check the baseline status endpoint:
curl 'http:// <paw_local> /api/v0/predict/api/v1/BaselineStatus/<baselineID> ' --header 'Authorization: Basic base64(<username>:<password>)'
- If a baseline forecast gets stuck while running, you can reset the status back to ready:
curl --location --request POST 'http://<paw_local>/api/v0/predict/api/v1/ResetBaseline/<baselineID>' --header 'Authorization: Basic base64(<username>:<password>)'