Module: check_mk
Branch: master
Commit: dc83877e6110a66705a46543c238a5431ad9ee3b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=dc83877e6110a6…
Author: Óscar Nájera <on(a)mathias-kettner.de>
Date: Tue Apr 2 17:50:04 2019 +0200
Isolate calculation of data for prediction
- Determination of time windows happens in local time and in isolation from
the livestatus query. Tests are moved in time to evaluate this.
- Once unix timestamps are defined livestatus is queried.
- Fix Integration test for predictive levels
- New test just on retrieval and up-sampling
- Add new time-zoned tests
CMK-1761
Change-Id: I8610ac1e4179c574fd585e6702707841d8a2fdab
---
cmk/utils/prediction.py | 3 +-
cmk_base/prediction.py | 62 ++++++--------
.../cmk_base/test-files/America/New_York/everyday | 1 +
.../cmk_base/test-files/{ => Europe/Berlin}/26 | 2 +-
.../test-files/{ => Europe/Berlin}/26.info | 0
.../cmk_base/test-files/Europe/Berlin/everyday | 1 +
.../test-files/{ => Europe/Berlin}/everyday.info | 0
.../test-files/{ => Europe/Berlin}/thursday | 2 +-
.../test-files/{ => Europe/Berlin}/thursday.info | 0
tests/integration/cmk_base/test-files/UTC/sunday | 1 +
tests/integration/cmk_base/test-files/everyday | 1 -
.../cmk_base/test_services_prediction.py | 98 ++++++++++++++++++----
12 files changed, 115 insertions(+), 56 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=dc83877e61…