Missing timestamp validity checks in get_metric_range_data
See original GitHub issueDescribe the bug
If a user accidentally passes an end_time that is before start_time ( like I did 😃 ), then the get_metric_range_data
function returns an empty list instead of throwing an error.
To Reproduce Steps to reproduce the behavior:
- Instantiate
PrometheusConnect
object - Using this object call the
get_metric_range_data
func with end_time < start_time - See empty list
Expected behavior
If the user were to make this timestamp switcharoo while using the custom_query_range
function, then the HTTP code 400 would returned with the message end timestamp must not be before start time
. So maybe something similar should happen for get_metric_range_data
as well?
Screenshots
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (11 by maintainers)
Top Results From Across the Web
Detecting missing timestamp - python - Stack Overflow
Timestamp increases by 5 seconds and notice that there are missing records between 23:02:02 & 23:06:32. Is there a simple way to detect...
Read more >tractography - MRtrix3 Community
But if the tck is missing a timestamp, then these checks can't take place. This could happen if your tck file (or the...
Read more >Invalid or missing timestamp in JWS request message
This error is due to the fact that the code marks each API request with a timestamp and validates this against the time...
Read more >TimestampToken (Digital Signature Services 5.11.1 API)
Checks if timestamp is signed by teh given certificate. protected SignatureValidity. checkIsSignedBy(PublicKey publicKey). Verifies if the current token has ...
Read more >TEST (Test Date/Time/Timestamp) - IBM
The TEST operation code allows users to test the validity of date, time, or timestamp fields prior to using them. For information on...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
please take it
@sesheta: Closing this issue.
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.