Werk #16204: metrics: Fix Internal Server Error when decimal timestamps are provided

Component REST API
Title metrics: Fix Internal Server Error when decimal timestamps are provided
Date Nov 17, 2023
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 2.3.0b1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

Prior to this werk, when a timestamp contained decimal values the endpoint would return status 500 (Internal server error). This change fixes that and now it returns 400 (Bad Request) and a brief explanation of the error.

To the list of all Werks