-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature/SessionStats] Endpoint to fetch session data
- Loading branch information
Showing
4 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
JShellAPI/src/main/java/org/togetherjava/jshellapi/dto/sessionstats/SessionStats.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.togetherjava.jshellapi.dto.sessionstats; | ||
|
||
/** | ||
* Represents the stats of a session. | ||
* | ||
* @param id the id of this session | ||
* @param timeSinceCreation the time in seconds since the creation of this session | ||
* @param timeUntilExpiration the time in seconds until the expiration of this session | ||
* @param totalEvalTime the time spent evaluating code | ||
* @param doingOperation if the session is currently evaluating some code | ||
*/ | ||
public record SessionStats( | ||
String id, | ||
long timeSinceCreation, | ||
long timeUntilExpiration, | ||
long totalEvalTime, | ||
boolean doingOperation) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters