Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: All node metrics were returned by default #547

Merged
merged 3 commits into from
Jan 24, 2024
Merged

Conversation

hoh
Copy link
Member

@hoh hoh commented Jan 24, 2024

This causes a lot of data to be returned in the case of old nodes and is usually unnecessary.

Solution: Default to limiting the query to the last 2 weeks of data, or to 2 weeks before the specified date of last data.

This also renames start_date -> start_timestamp and end_date -> end_timestamp to prevent confusion since these fields are expected to be timestamps and note datetime or ISO 8601.

Related to #528

@hoh hoh requested a review from nesitor January 24, 2024 10:26
@hoh hoh force-pushed the hoh-metrics-limit-date-range branch from 04a4afd to ca50dc1 Compare January 24, 2024 10:27
Copy link
Member

@MHHukiewitz MHHukiewitz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hoh hoh force-pushed the hoh-metrics-limit-date-range branch 2 times, most recently from 8993ffe to 872574c Compare January 24, 2024 10:49
@nesitor
Copy link
Member

nesitor commented Jan 24, 2024

Please, can you amend the last commits to just avoid to have 3 different commits with the same name?

This causes a lot of data to be returned in the case of old nodes and is usually unnecessary.

Solution: Default to limiting the query to the last 2 weeks of data, or to 2 weeks before the specified date of last data.
@hoh hoh force-pushed the hoh-metrics-limit-date-range branch from 367b2a5 to 963850f Compare January 24, 2024 13:57
@hoh hoh merged commit cad2d9c into dev Jan 24, 2024
2 checks passed
@hoh hoh deleted the hoh-metrics-limit-date-range branch January 24, 2024 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants