Skip to content

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

New issue

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

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

Already on GitHub? # to your account

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
@Alathreon Alathreon force-pushed the feature/SessionsStats branch from b8d540e to 497f7dc Compare May 21, 2024 19:28
tj-wazei
tj-wazei previously approved these changes Aug 1, 2024
@Alathreon Alathreon force-pushed the feature/SessionsStats branch from 497f7dc to b0b959a Compare August 1, 2024 20:07
@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
# for free to join this conversation on GitHub. Already have an account? # 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