ARGO-4893 Issue during excluding metric egi.cloud.openstack-vm from fedcloud SITES #429
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We modified recomputations. Before calculating previous status
the dataset is passed from an CalcRecomputation operation that checks if the metric is in exclude period and changes it status
to exclude if yes.
Then the dataset wil be passed to the CalcPrevStatus operation where the previous status and timestamp are calculated.
With this way we simplify calculations .
--run.date: 2025-02-01
//we test if for a period extending today all the today data has EXCLUDED status
// exclude period: "start_time": "2025-02-01T00:00:00Z" - "end_time": "2025-02-02T00:00:00Z",
//the exclude period extends today , so all expected data should have EXCLUDED status. note tha
//the first elements should keep it's previous status MISSING as no previous data exist in dataset
--run.date: 2025-02-02
//we test if for a period extending today all the today data has EXCLUDED status and previous state is correctly
EXCLUDED as period extends today
//the initial dataset has also yesterday data to check if previous status is correctly calculated
// exclude period: "start_time": "2025-02-01T00:00:00Z" - "end_time": "2025-02-02T00:00:00Z",
//the exclude period extends today , so all expected data should have EXCLUDED status. note tha
//the first elements should have is previous status EXCLUDED as the exclude period includes yesterday