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

feat: add cutoff param in active-nodes and active-clients api #88

Merged
merged 1 commit into from
Dec 9, 2023

Conversation

alessandromazza98
Copy link
Contributor

@alessandromazza98 alessandromazza98 commented Dec 9, 2023

Now everyone can add a query parameter in the active-nodes and active-clients api so that it choose the cutoff parameter on its own.

Default is one day.

Example:

curl "http://0.0.0.0:3030/active-nodes?cutoff=100"

NOTE: the cutoff is in days so here in this example I'm asking for nodes active in the last 100 days.

@alessandromazza98 alessandromazza98 merged commit 5cf53d1 into main Dec 9, 2023
3 checks passed
@alessandromazza98 alessandromazza98 deleted the ale/update-api-server branch December 9, 2023 16:21
@alessandromazza98 alessandromazza98 changed the title feat: add cutoff param in active-nodes api feat: add cutoff param in active-nodes and active-clients api Dec 9, 2023
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.

None yet

1 participant