Constant is define to 1h in api #328
Answered
by
demeringo
damienfernandes
asked this question in
Q&A
-
Hello, Why the constant is define to 1h in api ? see code here Thanks in advance |
Beta Was this translation helpful? Give feedback.
Answered by
demeringo
Sep 7, 2023
Replies: 2 comments
-
The rationale behind this hardcoded value was that I initialy only expected to produce metrics for one hour of use (and that it eased the question of units when displaying results in a dashboard ;-) You are right, this could accept a parameter (like in CLI mode). |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
demeringo
-
Change merged in #338 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The rationale behind this hardcoded value was that I initialy only expected to produce metrics for one hour of use (and that it eased the question of units when displaying results in a dashboard ;-)
You are right, this could accept a parameter (like in CLI mode).