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

[Feature/SessionStats] Endpoint to fetch session data #26

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Alathreon
Copy link
Contributor

@Alathreon Alathreon commented May 21, 2024

Pull-request

Changes

  • Existing code
  • New feature

Closes Issue: NaN

Description

Add an endpoint to fetch the stats of the current sessions.
Exemple:

curl --request GET \
  --url http://localhost:8080/jshell/sessions
[
	{
		"id": "test",
		"timeSinceCreation": 17,
		"timeUntilExpiration": 1782,
		"totalEvalTime": 15,
		"doingOperation": false
	},
	{
		"id": "135178a3-e54f-4bc8-bbe1-2e626b4de50b",
		"timeSinceCreation": 12,
		"timeUntilExpiration": 14,
		"totalEvalTime": 2,
		"doingOperation": false
	}
]

@Alathreon Alathreon requested review from a team as code owners May 21, 2024 17:57
@Alathreon Alathreon changed the title [Feature/SessionStats] Endpoint pour récupérer les stats des sessions [Feature/SessionStats] Endpoint to fetch session data May 21, 2024
tj-wazei
tj-wazei previously approved these changes Aug 1, 2024
@Alathreon Alathreon added the enhancement New feature or request label Aug 1, 2024
@Alathreon Alathreon linked an issue Aug 1, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Endpoint to easily check the sessions.
2 participants