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

Add limits command #109

Closed
MartinKolarik opened this issue Jun 25, 2024 · 3 comments · Fixed by #131
Closed

Add limits command #109

MartinKolarik opened this issue Jun 25, 2024 · 3 comments · Fixed by #131

Comments

@MartinKolarik
Copy link
Member

MartinKolarik commented Jun 25, 2024

Must work with both persistent login (#108) and ENV var tokens. See jsdelivr/globalping#328 for the API endpoint and format (not live yet).

Authenticated user (get the username from the introspection endpoint):

$ globalping limits
Authentication: token (jimaek)

Creating measurements: 
 - 500 tests per hour
 - 150 consumed, 350 remaining
 - resets in 22 minutes

Reading measurements: 
 - 25000 requests per hour
 - 14650 consumed, 10350 remaining
 - resets in 22 minutes

Anonymous users:

$ globalping limits
Authentication: IP address

Creating measurements: 
 - 500 tests per hour
 - 150 consumed, 350 remaining
 - resets in 22 minutes

Credits:
 - 10480 credits remaining (may be used to create measurements above the hourly limits)
@MartinKolarik
Copy link
Member Author

MartinKolarik commented Sep 22, 2024

@radulucut
Copy link
Collaborator

@MartinKolarik reading limits are missing from the response. Also, the credits value is for authenticated users only, right?

@MartinKolarik
Copy link
Member Author

They will be added later in the same format, consider them optional. Credits only for auth, yes.

@MartinKolarik MartinKolarik linked a pull request Sep 23, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants